Skip to content

Instantly share code, notes, and snippets.

Avatar

Joerg Hochwald jhochwald

View GitHub Profile
@jhochwald
jhochwald / TweakSafeLinksPolicy.ps1
Created Sep 10, 2020
Tweak SafeLinksPolicy for Teams Room Devices
View TweakSafeLinksPolicy.ps1
# Get your active SafeLinks Policy/Policies
Get-SafeLinksPolicy | Where-Object -FilterScript {
$_.IsEnabled -eq $true
} | Select-Object -ExpandProperty Identity
# I use the default policy in this example
$SafeLinksPolicyIdentity = 'Recommended safe links policy'
# A list of URLs to exclude from rewriting
$DoNotRewriteUrls = @(
@jhochwald
jhochwald / Connect-AzDeviceLogin.ps1
Last active Aug 17, 2020
Speeds up the interactive login for Az PowerShell by opening the DeviceLogin page and then alt-tabs back to the PowerShell Window
View Connect-AzDeviceLogin.ps1
#requires -Version 2.0 -Modules Az.Accounts
function Connect-AzDeviceLogin
{
<#
.SYNOPSIS
Speeds up the interactive login for Az PowerShell
.DESCRIPTION
Speeds up the interactive login for Az PowerShell by opening the DeviceLogin page and then alt-tabs back to the PowerShell Window
@jhochwald
jhochwald / Set-QoSForMicrosoftTeamsRoomDevices.ps1
Last active Aug 27, 2020
Apply Network Quality of Service (QoS) settings for Microsoft Teams Room Devices.
View Set-QoSForMicrosoftTeamsRoomDevices.ps1
#requires -RunAsAdministrator
#requires -Version 3.0 -Modules NetQos
<#
.SYNOPSIS
Apply QoS Settings for Microsoft Teams Room Devices
.DESCRIPTION
Apply Network Quality of Service (QoS) settings for Microsoft Teams Room Devices.
I use this script to deploy the QoS settings to MTR devices via Intune.
@jhochwald
jhochwald / start-Parallels.sh
Created Jul 28, 2020
Helpper to start Parallels on the latest Big Sur Beta
View start-Parallels.sh
#!/usr/bin/env bash
###
# Description: Helpper to start Parallels on the latest Big Sur Beta
# File: ~/OneDrive/bin/start-Parallels
# Autor: Joerg Hochwald
# License: Freeware
###
# Load some defaults
. /etc/bashrc
@jhochwald
jhochwald / ConditionalAccessNamedLocationToolingForGraph.ps1
Created May 23, 2020
pdate a Conditional access named location with the new external (public) IP address
View ConditionalAccessNamedLocationToolingForGraph.ps1
#requires -Version 3.0
<#
.SYNOPSIS
Update a Conditional access named location with the new external (public) IP address
.DESCRIPTION
Update a Conditional access named location with the new external (public) IP address.
Since my router disconnects from time to time, this was something I needed badly!
.EXAMPLE
@jhochwald
jhochwald / enable-AttendanceListMicrosoftTeams.ps1
Created May 18, 2020
Enable the Attendance List in Microsoft Teams
View enable-AttendanceListMicrosoftTeams.ps1
# Get all Teams Meeting Policies
Get-CsTeamsMeetingPolicy | Select-Object -ExpandProperty Identity
# Get all Teams Meeting Policies, exclude all TAG Policies (You can not modify them with Get-CsTeamsMeetingPolicy)
Get-CsTeamsMeetingPolicy | Where-Object -FilterScript {
$_.Identity -notlike 'Tag:*'
} | Select-Object -ExpandProperty Identity
# Modify the Global Policy
Set-CsTeamsMeetingPolicy -Identity Global -AllowEngagementReport Enabled
@jhochwald
jhochwald / Approve-CASMailboxSettings.ps1
Created Apr 21, 2020
Remove the access to Outlook for all Mailboxes in an Microsoft Office 365 Tenant
View Approve-CASMailboxSettings.ps1
#requires -Version 3.0
<#
.SYNOPSIS
Remove the access to Outlook for all Mailboxes in an Microsoft Office 365 Tenant
.DESCRIPTION
Remove the access to Outlook for all Mailboxes in an Microsoft Office 365 Tenant
It will remove access to OWA (Outlook Web Application), Exchange Active Sync (EAS), Outlook App and Outlook (part of the Office Suite).
@jhochwald
jhochwald / Set-AzureADNamingPolicyForOffice365Groups.ps1
Last active Apr 20, 2020
Create of modify a Azure AD Naming Policy for Office 365 Groups
View Set-AzureADNamingPolicyForOffice365Groups.ps1
#requires -Version 3.0 -Modules AzureADPreview
<#
.SYNOPSIS
Create or modify a Azure AD Naming Policy for Office 365 Groups
.DESCRIPTION
Create or modify a Azure AD Naming Policy for Office 365 Groups, these groups (a/k/a Unified Groups) are the base for Microsoft Teams and other Microsoft 365 services.
.PARAMETER BlockedWordsFile
@jhochwald
jhochwald / bootstrap-Office365Tenant.ps1
Last active Mar 8, 2020
Bootstrap a Office 365 Tenant, applies some of the enabling Technology best practice settings, mostly related to security and Exchange Online.
View bootstrap-Office365Tenant.ps1
#requires -Version 2.0
<#
.SYNOPSIS
Bootstrap a Office 365 Tenant
.DESCRIPTION
Bootstrap a Office 365 Tenant
It Applies some of the enabling Technology best practice settings, mostly related to security and Exchange Online.
@jhochwald
jhochwald / ReplaceDomainForAllUnifiedGroups.ps1
Created Jan 31, 2020
Replace the Domain for all UnifiedGroups (and Microsoft Teams) Primary SMTP Address
View ReplaceDomainForAllUnifiedGroups.ps1
<#
.SYNOPSIS
Replace the Domain for all UnifiedGroups (and Microsoft Teams) Primary SMTP Address
.DESCRIPTION
Replace the Domain for all UnifiedGroups (and Microsoft Teams) Primary SMTP Address
.PARAMETER OldDomain
The old Domain (e.g. contoso.com)
You can’t perform that action at this time.