Skip to content

Instantly share code, notes, and snippets.

Joerg Hochwald jhochwald

View GitHub Profile
@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)
@jhochwald
jhochwald / Get-bdcMicrosoftTeamsReporting.ps1
Created Jan 29, 2020
Get a Report for all Microsoft Teams Teams
View Get-bdcMicrosoftTeamsReporting.ps1
function Get-bdcMicrosoftTeamsReporting
{
<#
.SYNOPSIS
Get a Report for all Microsoft Teams Teams
.DESCRIPTION
Get a Report for all Microsoft Teams Teams
.PARAMETER Connect
@jhochwald
jhochwald / Invoke-mtrDisableModernAuthentication.ps1
Created Jan 28, 2020
Disable Modern Authentication for a Microsoft Teams Room Device Account
View Invoke-mtrDisableModernAuthentication.ps1
function Invoke-mtrDisableModernAuthentication
{
<#
.SYNOPSIS
Disable Modern Authentication for a Microsoft Teams Room Device Account
.DESCRIPTION
Disable Modern Authentication for a Microsoft Teams Room Device Account
It dsables it in Exchange Online and Skype for Business Online. It also configures the tenant to do so, if needed.
@jhochwald
jhochwald / New-MtrConfigrationFile.ps1
Last active Jan 23, 2020
Generate a Microsoft Teams Room (MTR) System configuration file
View New-MtrConfigrationFile.ps1
function New-MtrConfigrationFile
{
<#
.SYNOPSIS
Generate a Microsoft Teams Room (MTR) System configuration file
.DESCRIPTION
Generate a Microsoft Teams Room (MTR) System configuration file
.PARAMETER AutoScreenShare
@jhochwald
jhochwald / SetupTeamsRoom.ps1
Last active Jan 19, 2020
Create and setup a Microsoft Teams Room Device in Microsoft Office 365
View SetupTeamsRoom.ps1
<#
.SYNOPSIS
Create a Microsoft Teams Room Device in Office 365
.DESCRIPTION
Create and setup a Microsoft Teams Room Device in Microsoft Office 365
.NOTES
Review the variable here.
You can’t perform that action at this time.