diff --git a/.github/workflows/Unit Tests.yml b/.github/workflows/Unit Tests.yml index 89d723175f..3e90e305ce 100644 --- a/.github/workflows/Unit Tests.yml +++ b/.github/workflows/Unit Tests.yml @@ -5,7 +5,7 @@ jobs: # This workflow contains a single job called "build" UnitTests: # The type of runner that the job will run on - runs-on: self-hosted + runs-on: windows-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index d2d3145d4a..1ab60c5672 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Change log for Microsoft365DSC +# 1.20.1223.1 + +* SPOHubSite + * Changed Export logic to make the url parameterized + * Updated Get method to prevent throwing an exception + when the specified site doesn't exist +* SPOSite + * Updated logic to not process the HubUrl parameter + when this is equal to the Url parameter. + * Updated export logic to not export the HubUrl + parameter when this is equal to the Url parameter. + * Fixed issue with incorrectly applying the LocaleId +* SPOSiteAuditSettings + * Changed Export logic to make the url parameterized +* SPOSiteGroup + * Changed Export logic to make the url parameterized + * Updated logic to output more explainable troubleshooting + messages +* M365DscReverse + * Added the GlobalAccount Parameter to the example + that is outputted after using the Export GUI + # 1.20.1216.1 * AADConditionalAccessPolicy diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.psm1 index a82168480c..29eb543ace 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.psm1 @@ -18,8 +18,8 @@ function Get-TargetResource $Enabled, [Parameter()] - [System.String] - $ExceptIfRecipientDomainIs, + [System.String[]] + $ExceptIfRecipientDomainIs = @(), [Parameter()] [System.String[]] @@ -38,8 +38,8 @@ function Get-TargetResource $Priority, [Parameter()] - [System.String] - $RecipientDomainIs, + [System.String[]] + $RecipientDomainIs = @(), [Parameter()] [System.String[]] @@ -181,8 +181,8 @@ function Set-TargetResource $Enabled, [Parameter()] - [System.String] - $ExceptIfRecipientDomainIs, + [System.String[]] + $ExceptIfRecipientDomainIs = @(), [Parameter()] [System.String[]] @@ -201,8 +201,8 @@ function Set-TargetResource $Priority, [Parameter()] - [System.String] - $RecipientDomainIs, + [System.String[]] + $RecipientDomainIs = @(), [Parameter()] [System.String[]] @@ -302,8 +302,8 @@ function Test-TargetResource $Enabled, [Parameter()] - [System.String] - $ExceptIfRecipientDomainIs, + [System.String[]] + $ExceptIfRecipientDomainIs = @(), [Parameter()] [System.String[]] @@ -322,8 +322,8 @@ function Test-TargetResource $Priority, [Parameter()] - [System.String] - $RecipientDomainIs, + [System.String[]] + $RecipientDomainIs = @(), [Parameter()] [System.String[]] diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.schema.mof index f1cf219fd8..a1bbbebfef 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOMalwareFilterRule/MSFT_EXOMalwareFilterRule.schema.mof @@ -5,12 +5,12 @@ class MSFT_EXOMalwareFilterRule : OMI_BaseResource [Key, Description("The Identity parameter specifies the EXO resource you want to modify.")] String Identity; [Write, Description("The Comments parameter specifies informative comments for the rule, such as what the rule is used for or how it has changed over time. The length of the comment can't exceed 1024 characters.")] String Comments; [Write, Description("The Enabled parameter enables or disables the malware filter rule. Valid input for this parameter is $true or $false. The default value is $true.")] Boolean Enabled; - [Write, Description("The ExceptIfRecipientDomainIs parameter specifies an exception that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.")] String ExceptIfRecipientDomainIs; + [Write, Description("The ExceptIfRecipientDomainIs parameter specifies an exception that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.")] String ExceptIfRecipientDomainIs[]; [Write, Description("The ExceptIfSentTo parameter specifies an exception that looks for recipients in messages. You can use any value that uniquely identifies the recipient.")] String ExceptIfSentTo[]; [Write, Description("The ExceptIfSentToMemberOf parameter specifies an exception that looks for messages sent to members of groups. You can use any value that uniquely identifies the group.")] String ExceptIfSentToMemberOf[]; [Write, Description("The MalwareFilterPolicy parameter specifies the malware filter policy to apply to messages that match the conditions defined by this malware filter rule.")] String MalwareFilterPolicy; [Write, Description("The Priority parameter specifies a priority value for the rule that determines the order of rule processing. A lower integer value indicates a higher priority, the value 0 is the highest priority, and rules can't have the same priority value.")] String Priority; - [Write, Description("The RecipientDomainIs parameter specifies a condition that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.")] String RecipientDomainIs; + [Write, Description("The RecipientDomainIs parameter specifies a condition that looks for recipients with email address in the specified domains. You can specify multiple domains separated by commas.")] String RecipientDomainIs[]; [Write, Description("The SentTo parameter specifies a condition that looks for recipients in messages. You can use any value that uniquely identifies the recipient.")] String SentTo[]; [Write, Description("The SentToMemberOf parameter specifies a condition that looks for messages sent to members of distribution groups, dynamic distribution groups, or mail-enabled security groups. You can use any value that uniquely identifies the group.")] String SentToMemberOf[]; [Write, Description("Specifies if the Malware Filter Rule should exist."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.psm1 index 2b07a035f5..383bfbbfc3 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.psm1 @@ -32,6 +32,10 @@ function Get-TargetResource [Boolean] $EnableForInternalSenders, + [Parameter()] + [Boolean] + $EnableSafeLinksForTeams = $false, + [Parameter()] [Boolean] $IsEnabled, @@ -127,6 +131,7 @@ function Get-TargetResource DoNotRewriteUrls = $SafeLinksPolicy.DoNotRewriteUrls DoNotTrackUserClicks = $SafeLinksPolicy.DoNotTrackUserClicks EnableForInternalSenders = $SafeLinksPolicy.EnableForInternalSenders + EnableSafeLinksForTeams = $SafeLinksPolicy.EnableSafeLinksForTeams IsEnabled = $SafeLinksPolicy.IsEnabled ScanUrls = $SafeLinksPolicy.ScanUrls Ensure = 'Present' @@ -197,6 +202,10 @@ function Set-TargetResource [Boolean] $EnableForInternalSenders, + [Parameter()] + [Boolean] + $EnableSafeLinksForTeams = $false, + [Parameter()] [Boolean] $IsEnabled, @@ -311,6 +320,10 @@ function Test-TargetResource [Boolean] $EnableForInternalSenders, + [Parameter()] + [Boolean] + $EnableSafeLinksForTeams = $false, + [Parameter()] [Boolean] $IsEnabled, diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.schema.mof index 6dd569cff7..458dc9cd7f 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.schema.mof +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/MSFT_EXOSafeLinksPolicy.schema.mof @@ -9,6 +9,7 @@ class MSFT_EXOSafeLinksPolicy : OMI_BaseResource [Write, Description("The DoNotRewriteUrls parameter specifies a URL that's skipped by Safe Links scanning. You can specify multiple values separated by commas.")] String DoNotRewriteUrls[]; [Write, Description("The DoNotTrackUserClicks parameter specifies whether to track user clicks related to links in email messages. Valid values are: $true: User clicks aren't tracked. This is the default value. $false: User clicks are tracked.")] Boolean DoNotTrackUserClicks; [Write, Description("EnableForInternalSenders $true or $false")] Boolean EnableForInternalSenders; + [Write, Description("The EnableSafeLinksForTeams parameter specifies whether Safe Links is enabled for Microsoft Teams. Valid values are: $true: Safe Links is enabled for Teams. If a protected user clicks a malicious link in a Teams conversation, group chat, or from channels, a warning page will appear in the default web browser. $false: Safe Links isn't enabled for Teams. This is the default value.")] Boolean EnableSafeLinksForTeams; [Write, Description("This parameter specifies whether the rule or policy is enabled. ")] Boolean IsEnabled; [Write, Description("The ScanUrls parameter specifies whether to enable or disable the scanning of links in email messages. Valid values are: $true: Scanning links in email messages is enabled. $false: Scanning links in email messages is disabled. This is the default value.")] Boolean ScanUrls; [Write, Description("Credentials of the Exchange Global Admin"), EmbeddedInstance("MSFT_Credential")] string GlobalAdminAccount; diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/readme.md b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/readme.md index de52da7d35..bd29d9ec1d 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/readme.md +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_EXOSafeLinksPolicy/readme.md @@ -69,6 +69,15 @@ EnableForInternalSenders - Description: This parameter specifies whether the policy is enabled for internal senders. $true or $false +EnableSafeLinksForTeams + +- Required: No +- Description: The EnableSafeLinksForTeams parameter specifies whether Safe Links + is enabled for Microsoft Teams. Valid values are: + $true: Safe Links is enabled for Teams. If a protected user clicks a malicious link in + a Teams conversation, group chat, or from channels, a warning page will appear in the default web browser. + $false: Safe Links isn't enabled for Teams. This is the default value. + IsEnabled - Required: No diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOApp/MSFT_SPOApp.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOApp/MSFT_SPOApp.psm1 index dbdcdac5dc..8bd9ab55d0 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOApp/MSFT_SPOApp.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOApp/MSFT_SPOApp.psm1 @@ -376,7 +376,7 @@ function Export-TargetResource $Results = Get-TargetResource @Params $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results - $dscContent = Get-M365DSCExportContentForResource -ResourceName $ResourceName ` + $dscContent += Get-M365DSCExportContentForResource -ResourceName $ResourceName ` -ConnectionMode $ConnectionMode ` -ModulePath $PSScriptRoot ` -Results $Results ` diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOHubSite/MSFT_SPOHubSite.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOHubSite/MSFT_SPOHubSite.psm1 index 98fe75e593..95aec4e547 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOHubSite/MSFT_SPOHubSite.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOHubSite/MSFT_SPOHubSite.psm1 @@ -82,7 +82,7 @@ function Get-TargetResource try { Write-Verbose -Message "Getting hub site collection $Url" - $site = Get-PnPTenantSite -Url $Url + $site = Get-PnPTenantSite -Url $Url -ErrorAction SilentlyContinue if ($null -eq $site) { Write-Verbose -Message "The specified Site Collection doesn't already exist." @@ -580,6 +580,22 @@ function Export-TargetResource $i = 1 Write-Host "`r`n" -NoNewline + $principal = "" # Principal represents the "NetBios" name of the tenant (e.g. the M365DSC part of M365DSC.onmicrosoft.com) + if ($null -ne $GlobalAdminAccount -and $GlobalAdminAccount.UserName.Contains("@")) + { + $organization = $GlobalAdminAccount.UserName.Split("@")[1] + + if ($organization.IndexOf(".") -gt 0) + { + $principal = $organization.Split(".")[0] + } + } + else + { + $organization = $TenantId + $principal = $organization.Split(".")[0] + } + $dscContent = '' foreach ($hub in $hubSites) { @@ -598,11 +614,21 @@ function Export-TargetResource $Results = Get-TargetResource @Params $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results - $dscContent += Get-M365DSCExportContentForResource -ResourceName $ResourceName ` + $partialContent = Get-M365DSCExportContentForResource -ResourceName $ResourceName ` -ConnectionMode $ConnectionMode ` -ModulePath $PSScriptRoot ` -Results $Results ` -GlobalAdminAccount $GlobalAdminAccount + + # Make the Url parameterized + if ($partialContent.ToLower().Contains($organization.ToLower()) -or ` + $partialContent.ToLower().Contains($principal.ToLower())) + { + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '.sharepoint.com/'), "https://`$(`$OrganizationName.Split('.')[0]).sharepoint.com/" + $partialContent = $partialContent -ireplace [regex]::Escape("@" + $organization), "@`$(`$OrganizationName)" + } + $dscContent += $partialContent + Write-Host $Global:M365DSCEmojiGreenCheckMark $i++ } diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSite/MSFT_SPOSite.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSite/MSFT_SPOSite.psm1 index cf3b3cdf5b..7c9d5813a5 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSite/MSFT_SPOSite.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSite/MSFT_SPOSite.psm1 @@ -454,28 +454,13 @@ function Set-TargetResource $ConnectionMode = New-M365DSCConnection -Platform 'PnP' ` -InboundParameters $PSBoundParameters - $ConnectionParams = @{ - GlobalAdminAccount = $GlobalAdminAccount - ApplicationId = $ApplicationId - TenantId = $TenantId - CertificatePath = $CertificatePath - CertificatePassword = $CertificatePassword - CertificateThumbprint = $CertificateThumbprint - } - $CurrentValues = Get-TargetResource @PSBoundParameters - $CurrentParameters = $PSBoundParameters - $CurrentParameters.Remove("Ensure") | Out-Null - $CurrentParameters.Remove("GlobalAdminAccount") | Out-Null - $CurrentParameters.Remove("ApplicationId") | Out-Null - $CurrentParameters.Remove("TenantId") | Out-Null - $CurrentParameters.Remove("CertificatePath") | Out-Null - $CurrentParameters.Remove("CertificatePassword") | Out-Null - $CurrentParameters.Remove("CertificateThumbprint") | Out-Null $context = Get-PnPContext if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent') { + Write-Verbose -Message "Site {$Url} doesn't exist. Creating it." + $CreationParams = @{ Title = $Title Url = $Url @@ -484,26 +469,46 @@ function Set-TargetResource Lcid = $LocaleID TimeZone = $TimeZoneID } - Write-Verbose -Message "Site {$Url} doesn't exist. Creating it." - New-PnPTenantSite @CreationParams | Out-Null - $site = $null - $circuitBreaker = 0 - do + $supportedLanguages = (Get-PnPAvailableLanguage).Lcid + if ($supportedLanguages -notcontains $CreationParams.Lcid) { - Write-Verbose -Message "Waiting for another 15 seconds for site to be ready." - Start-Sleep -Seconds 15 - try - { - $site = Get-PnPTenantSite -Url $Url -ErrorAction Stop - } - catch + Write-Verbose -Message ("Specified LocaleId {$($CreationParams.Lcid)} " + ` + "is not supported. Creating the site collection in English {1033}") + $CreationParams.Lcid = 1033 + } + + try + { + New-PnPTenantSite @CreationParams -ErrorAction Stop | Out-Null + + $site = $null + $circuitBreaker = 0 + do { - $site = @{Status = 'Creating' } - } - $circuitBreaker++ - } while ($site.Status -eq 'Creating' -and $circuitBreaker -lt 20) - Write-Verbose -Message "Site {$url} has been successfully created and is {$($site.Status)}." + Write-Verbose -Message "Waiting for another 15 seconds for site to be ready." + Start-Sleep -Seconds 15 + try + { + $site = Get-PnPTenantSite -Url $Url -ErrorAction Stop + } + catch + { + $site = @{Status = 'Creating' } + } + $circuitBreaker++ + } while ($site.Status -eq 'Creating' -and $circuitBreaker -lt 20) + + Write-Verbose -Message "Site {$url} has been successfully created and is {$($site.Status)}." + } + catch + { + $Message = "Creation of the site $($Url) failed: $($_.Exception.Message)" + Add-M365DSCEvent -Message $Message -EntryType 'Error' ` + -EventID 1 -Source $($MyInvocation.MyCommand.Source) ` + -TenantId $tenantIdValue + throw $Message + } } elseif ($Ensure -eq "Absent" -and $CurrentValues.Ensure -eq 'Present') { @@ -553,6 +558,24 @@ function Set-TargetResource Set-PnPTenantSite @UpdateParams -ErrorAction Stop $site = Get-PnPTenantSite $Url + + if (-not [System.String]::IsNullOrEmpty($LocaleId) -and ` + $PSBoundParameters.LocaleId -ne $site.Lcid) + { + Write-Verbose -Message "Updating LocaleId of RootWeb to $($PSBoundParameters.LocaleId)" + $ConnectionMode = New-M365DSCConnection -Platform 'PnP' ` + -InboundParameters $PSBoundParameters ` + -Url $Url + + $web = Get-PnPWeb + $ctx = Get-PnPContext + $ctx.Load($web.RegionalSettings) + $ctx.ExecuteQuery() + $web.RegionalSettings.LocaleId = $PSBoundParameters.LocaleId + $web.Update() + $ctx.ExecuteQuery() + } + #region Ad-Hoc properties if (-not [System.String]::IsNullOrEmpty($DenyAddAndCustomizePages)) { @@ -607,29 +630,37 @@ function Set-TargetResource Write-Verbose -Message "Settings Updated" if ($PSBoundParameters.ContainsKey("HubUrl")) { - if ([System.String]::IsNullOrEmpty($HubUrl)) + if ($PSBoundParameters.HubUrl.TrimEnd("/") -ne $PSBoundParameters.Url.TrimEnd("/")) { - if ($site.HubSiteId -ne "00000000-0000-0000-0000-000000000000") + if ([System.String]::IsNullOrEmpty($HubUrl)) { - Write-Verbose -Message "Removing Hub Site Association for {$Url}" - Remove-PnPHubSiteAssociation -Site $Url + if ($site.HubSiteId -ne "00000000-0000-0000-0000-000000000000") + { + Write-Verbose -Message "Removing Hub Site Association for {$Url}" + Remove-PnPHubSiteAssociation -Site $Url + } + } + else + { + $hubSite = Get-PnPHubSite -Identity $HubUrl + + if ($null -eq $hubSite) + { + throw ("Specified HubUrl ($HubUrl) is not a Hub site. Make sure you " + ` + "have promoted that to a Hub site first.") + } + + if ($site.HubSiteId -ne $hubSite.Id) + { + Write-Verbose -Message "Adding Hub Association on {$HubUrl} for site {$Url}" + Add-PnPHubSiteAssociation -Site $Url -HubSite $HubUrl + } } } else { - $hubSite = Get-PnPHubSite -Identity $HubUrl - - if ($null -eq $hubSite) - { - throw ("Specified HubUrl ($HubUrl) is not a Hub site. Make sure you " + ` - "have promoted that to a Hub site first.") - } - - if ($site.HubSiteId -ne $hubSite.Id) - { - Write-Verbose -Message "Adding Hub Association on {$HubUrl} for site {$Url}" - Add-PnPHubSiteAssociation -Site $Url -HubSite $HubUrl - } + Write-Verbose -Message ("Ignoring the HubUrl parameter because it is equal to " + ` + "the site collection Url") } } } @@ -924,6 +955,15 @@ function Export-TargetResource { $Results.Remove("SharingBlockedDomainList") | Out-Null } + # Removing the HubUrl parameter if the value is equal to the Url parameter. + # This to prevent issues if the site col has just been created and not yet + # configured as a hubsite. + if ([System.String]::IsNullOrEmpty($Results.HubUrl) -or ` + ($Results.Url.TrimEnd("/") -eq $Results.HubUrl.TrimEnd("/"))) + { + $Results.Remove("HubUrl") | Out-Null + } + $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteAuditSettings/MSFT_SPOSiteAuditSettings.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteAuditSettings/MSFT_SPOSiteAuditSettings.psm1 index e55570ccf9..387cd53385 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteAuditSettings/MSFT_SPOSiteAuditSettings.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteAuditSettings/MSFT_SPOSiteAuditSettings.psm1 @@ -92,7 +92,7 @@ function Get-TargetResource { $tenantIdValue = $GlobalAdminAccount.UserName.Split('@')[1] } - Add-M365DSCEvent -Message $_ -EntryType 'Error' ` + Add-M365DSCEvent -Message ($_ + " {Site Collection: $Url}") -EntryType 'Error' ` -EventID 1 -Source $($MyInvocation.MyCommand.Source) ` -TenantId $tenantIdValue } @@ -281,6 +281,23 @@ function Export-TargetResource $i = 1 Write-Host "`r`n" -NoNewline + + $principal = "" # Principal represents the "NetBios" name of the tenant (e.g. the M365DSC part of M365DSC.onmicrosoft.com) + if ($null -ne $GlobalAdminAccount -and $GlobalAdminAccount.UserName.Contains("@")) + { + $organization = $GlobalAdminAccount.UserName.Split("@")[1] + + if ($organization.IndexOf(".") -gt 0) + { + $principal = $organization.Split(".")[0] + } + } + else + { + $organization = $TenantId + $principal = $organization.Split(".")[0] + } + $dscContent = "" foreach ($site in $sites) { @@ -307,11 +324,20 @@ function Export-TargetResource } $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results - $dscContent += Get-M365DSCExportContentForResource -ResourceName $ResourceName ` + $partialContent = Get-M365DSCExportContentForResource -ResourceName $ResourceName ` -ConnectionMode $ConnectionMode ` -ModulePath $PSScriptRoot ` -Results $Results ` -GlobalAdminAccount $GlobalAdminAccount + + # Make the Url parameterized + if ($partialContent.ToLower().Contains($organization.ToLower()) -or ` + $partialContent.ToLower().Contains($principal.ToLower())) + { + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '.sharepoint.com/'), "https://`$(`$OrganizationName.Split('.')[0]).sharepoint.com/" + } + $dscContent += $partialContent + Write-Host $Global:M365DSCEmojiGreenCheckMark } catch @@ -320,6 +346,12 @@ function Export-TargetResource } $i++ } + + if ($i -eq 1) + { + Write-Host "" + } + return $dscContent } catch diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteGroup/MSFT_SPOSiteGroup.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteGroup/MSFT_SPOSiteGroup.psm1 index a75c7d1628..54625868d2 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteGroup/MSFT_SPOSiteGroup.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOSiteGroup/MSFT_SPOSiteGroup.psm1 @@ -456,6 +456,23 @@ function Export-TargetResource $sites = Get-PnPTenantSite -ErrorAction Stop $i = 1 + + $principal = "" # Principal represents the "NetBios" name of the tenant (e.g. the M365DSC part of M365DSC.onmicrosoft.com) + if ($null -ne $GlobalAdminAccount -and $GlobalAdminAccount.UserName.Contains("@")) + { + $organization = $GlobalAdminAccount.UserName.Split("@")[1] + + if ($organization.IndexOf(".") -gt 0) + { + $principal = $organization.Split(".")[0] + } + } + else + { + $organization = $TenantId + $principal = $organization.Split(".")[0] + } + $dscContent = "" Write-Host "`r`n" -NoNewline foreach ($site in $sites) @@ -468,20 +485,13 @@ function Export-TargetResource $ConnectionMode = New-M365DSCConnection -Platform 'PNP' ` -InboundParameters $PSBoundParameters ` -Url $site.Url - $siteGroups = Get-PnPGroup + $siteGroups = Get-PnPGroup -ErrorAction Stop } catch { - $message = $Error[0].Exception.Message - if ($null -ne $message) - { - Write-Warning -Message $message - } - else - { - Write-Verbose -Message "Could not retrieve sitegroups for site $($site.Url)" - } + Write-Warning -Message "Could not retrieve sitegroups for site $($site.Url): $($_.Exception.Message)" } + $j = 1 foreach ($siteGroup in $siteGroups) { @@ -512,11 +522,21 @@ function Export-TargetResource { $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results - $dscContent += Get-M365DSCExportContentForResource -ResourceName $ResourceName ` + $partialContent = Get-M365DSCExportContentForResource -ResourceName $ResourceName ` -ConnectionMode $ConnectionMode ` -ModulePath $PSScriptRoot ` -Results $Results ` -GlobalAdminAccount $GlobalAdminAccount + + # Make the Url parameterized + if ($partialContent.ToLower().Contains($organization.ToLower()) -or ` + $partialContent.ToLower().Contains($principal.ToLower())) + { + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '.sharepoint.com/'), "https://`$(`$OrganizationName.Split('.')[0]).sharepoint.com/" + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '-my.sharepoint.com/'), "https://`$(`$OrganizationName.Split('.')[0])-my.sharepoint.com/" + $partialContent = $partialContent -ireplace [regex]::Escape("@" + $organization), "@`$(`$OrganizationName)" + } + $dscContent += $partialContent } } catch @@ -529,12 +549,20 @@ function Export-TargetResource $i++ } + + if ($i -eq 1) + { + Write-Host "" + } + return $dscContent } catch { try { + Write-Warning -Message "Cannot access {$($siteGroup.Title)}" + Write-Verbose -Message $_ $tenantIdValue = "" if (-not [System.String]::IsNullOrEmpty($TenantId)) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOStorageEntity/MSFT_SPOStorageEntity.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOStorageEntity/MSFT_SPOStorageEntity.psm1 index 2887273b50..6d85bc43fd 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_SPOStorageEntity/MSFT_SPOStorageEntity.psm1 +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_SPOStorageEntity/MSFT_SPOStorageEntity.psm1 @@ -427,14 +427,30 @@ function Export-TargetResource $Results = Get-TargetResource @Params $Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode ` -Results $Results - $dscContent += Get-M365DSCExportContentForResource -ResourceName $ResourceName ` + $partialContent = Get-M365DSCExportContentForResource -ResourceName $ResourceName ` -ConnectionMode $ConnectionMode ` -ModulePath $PSScriptRoot ` -Results $Results ` -GlobalAdminAccount $GlobalAdminAccount + + # Make the Url parameterized + if ($partialContent.ToLower().Contains($organization.ToLower()) -or ` + $partialContent.ToLower().Contains($principal.ToLower())) + { + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '.sharepoint.com'), "https://`$(`$OrganizationName.Split('.')[0]).sharepoint.com" + $partialContent = $partialContent -ireplace [regex]::Escape('https://' + $principal + '-admin.sharepoint.com'), "https://`$(`$OrganizationName.Split('.')[0])-admin.sharepoint.com" + } + $dscContent += $partialContent + $i++ Write-Host $Global:M365DSCEmojiGreenCheckmark } + + if ($i -eq 1) + { + Write-Host "" + } + return $dscContent } catch diff --git a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 index 7dbedc084b..d5bc651020 100644 --- a/Modules/Microsoft365DSC/Microsoft365DSC.psd1 +++ b/Modules/Microsoft365DSC/Microsoft365DSC.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2020-12-16 +# Generated on: 2020-12-23 @{ @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. - ModuleVersion = '1.20.1216.1' + ModuleVersion = '1.20.1223.1' # Supported PSEditions # CompatiblePSEditions = @() @@ -180,15 +180,25 @@ IconUri = 'https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/Dependencies/Images/Logo.png?raw=true' # ReleaseNotes of this module - ReleaseNotes = "* AADConditionalAccessPolicy - * Initial Release; - * EXOSafeLinksRule - * Fixed typo in a try/catch clause; - * O365User - * Added support for removing existing users with - Ensure = 'Absent'; - * TeamsChannelTab - * Initial Release;" + ReleaseNotes = "* SPOHubSite + * Changed Export logic to make the url parameterized + * Updated Get method to prevent throwing an exception + when the specified site doesn't exist + * SPOSite + * Updated logic to not process the HubUrl parameter + when this is equal to the Url parameter. + * Updated export logic to not export the HubUrl + parameter when this is equal to the Url parameter. + * Fixed issue with incorrectly applying the LocaleId + * SPOSiteAuditSettings + * Changed Export logic to make the url parameterized + * SPOSiteGroup + * Changed Export logic to make the url parameterized + * Updated logic to output more explainable troubleshooting + messages + * M365DscReverse + * Added the GlobalAccount Parameter to the example + that is outputted after using the Export GUI" # Flag to indicate whether the module requires explicit user acceptance for install/update # RequireLicenseAcceptance = $false diff --git a/Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1 index a4817d6061..9b6e35d64b 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCReverse.psm1 @@ -194,7 +194,7 @@ function Start-M365DSCConfigurationExtract { $Components = $Components.Substring(0, $Components.Length - 1) } - $unattendedCommand += $Components + ")" + $unattendedCommand += $Components + ") -GlobalAdminAccount (Get-Credential)" Write-Host "[INFO]" -NoNewline -ForegroundColor Cyan Write-Host " You can perform an equivalent unattended Export operation by running the following command:" -ForegroundColor Gray Write-Host $unattendedCommand -ForegroundColor Blue diff --git a/Modules/Microsoft365DSC/Modules/M365DSCStubsUtility.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCStubsUtility.psm1 index 3b0d3842a1..f4b6a50e4d 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCStubsUtility.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCStubsUtility.psm1 @@ -167,6 +167,10 @@ function New-M365DSCStubFiles { $ParamType = "System.Boolean" } + elseif ($ParamType.StartsWith("System.Collections.Generic.List``1[Microsoft.Open.MSGraph.Model.")) + { + $ParamType = "System.Object[]" + } $StubContent += " [$ParamType]`r`n" $StubContent += " `$$($param.Name),`r`n`r`n" } diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.EXOMalwareFilterRule.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.EXOMalwareFilterRule.Tests.ps1 index 36dcd23306..43cb01f8fe 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.EXOMalwareFilterRule.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.EXOMalwareFilterRule.Tests.ps1 @@ -2,14 +2,14 @@ param( ) $M365DSCTestFolder = Join-Path -Path $PSScriptRoot ` - -ChildPath "..\..\Unit" ` - -Resolve + -ChildPath "..\..\Unit" ` + -Resolve $CmdletModule = (Join-Path -Path $M365DSCTestFolder ` - -ChildPath "\Stubs\Microsoft365.psm1" ` - -Resolve) + -ChildPath "\Stubs\Microsoft365.psm1" ` + -Resolve) $GenericStubPath = (Join-Path -Path $M365DSCTestFolder ` - -ChildPath "\Stubs\Generic.psm1" ` - -Resolve) + -ChildPath "\Stubs\Generic.psm1" ` + -Resolve) Import-Module -Name (Join-Path -Path $M365DSCTestFolder ` -ChildPath "\UnitTestHelper.psm1" ` -Resolve) @@ -147,13 +147,13 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Comments = 'This is a test rule' Enabled = $true ExceptIfRecipientDomainIs = 'firma.de' - ExceptIfSentTo = @('claus@contoso.com', 'sara@contoso.org') - ExceptIfSentToMemberOf = @('Testgroup1', 'testgroup2') + ExceptIfSentTo = 'claus@contoso.com' + ExceptIfSentToMemberOf = 'Testgroup1' MalwareFilterPolicy = 'Policy1' Priority = '1' RecipientDomainIs = 'contoso.com' - SentTo = @('will@contoso.com', 'bernadette@contoso.org') - SentToMemberOf = @('Testgroup3', 'testgroup4') + SentTo = 'will@contoso.com' + SentToMemberOf = 'Testgroup3' } Mock -CommandName Get-MalwareFilterRule -MockWith { @@ -164,13 +164,13 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Comments = 'This is a test rule' Enabled = $true ExceptIfRecipientDomainIs = 'firma.de' - ExceptIfSentTo = @('clausi@contoso.com', 'sara@contoso.org') - ExceptIfSentToMemberOf = @('Testgroup3', 'testgroup4') + ExceptIfSentTo = 'clausi@contoso.com' + ExceptIfSentToMemberOf = 'Testgroup1' MalwareFilterPolicy = 'Policy1' Priority = '2' RecipientDomainIs = 'contoso.com' - SentTo = @('will@contoso.com', 'bernadette@contoso.org') - SentToMemberOf = @('Testgroup3', 'testgroup4') + SentTo = 'will@contoso.com' + SentToMemberOf = 'Testgroup3' } } diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.SPOSite.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.SPOSite.Tests.ps1 index 83bf810cb2..1e556c67b2 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.SPOSite.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.SPOSite.Tests.ps1 @@ -2,14 +2,14 @@ param( ) $M365DSCTestFolder = Join-Path -Path $PSScriptRoot ` - -ChildPath "..\..\Unit" ` - -Resolve + -ChildPath "..\..\Unit" ` + -Resolve $CmdletModule = (Join-Path -Path $M365DSCTestFolder ` - -ChildPath "\Stubs\Microsoft365.psm1" ` - -Resolve) + -ChildPath "\Stubs\Microsoft365.psm1" ` + -Resolve) $GenericStubPath = (Join-Path -Path $M365DSCTestFolder ` - -ChildPath "\Stubs\Generic.psm1" ` - -Resolve) + -ChildPath "\Stubs\Generic.psm1" ` + -Resolve) Import-Module -Name (Join-Path -Path $M365DSCTestFolder ` -ChildPath "\UnitTestHelper.psm1" ` -Resolve) @@ -22,14 +22,19 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { BeforeAll { $secpasswd = ConvertTo-SecureString "test@password1" -AsPlainText -Force - $GlobalAdminAccount = New-Object System.Management.Automation.PSCredential ("tenantadmin", $secpasswd) + $GlobalAdminAccount = New-Object System.Management.Automation.PSCredential ("tenantadmin@contoso.onmicrosoft.com", $secpasswd) Mock -CommandName Update-M365DSCExportAuthenticationResults -MockWith { - return @{} + return $Results } Mock -CommandName Get-M365DSCExportContentForResource -MockWith { - + return @" + SPOSite Test + { + Url = https://contoso.sharepoint.com + } +"@ } Mock -CommandName Set-PnPTenantSite -MockWith { @@ -48,10 +53,22 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Mock -CommandName Get-PnPContext -MockWith { $context = @{} | Add-Member -MemberType ScriptMethod -Name ExecuteQuery -Value { + } -PassThru | Add-Member -MemberType ScriptMethod -Name Load -Value { } -PassThru return $context } + + Mock -CommandName Get-PnPWeb -MockWith { + $returnval = @{ + RegionalSettings = @{ + LocaleId = 1033 + } + } | Add-Member -MemberType ScriptMethod -Name Update -Value { + } -PassThru + + return $returnval + } } # Test contexts @@ -91,7 +108,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { { $site = @{ Url = "https://contoso.sharepoint.com/sites/TestSite" - }| Add-Member -MemberType ScriptMethod -Name Update -Value { + } | Add-Member -MemberType ScriptMethod -Name Update -Value { } -PassThru return $site @@ -197,7 +214,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Title = "CommNik"; Template = "STS#3"; HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" - }| Add-Member -MemberType ScriptMethod -Name Update -Value { + } | Add-Member -MemberType ScriptMethod -Name Update -Value { } -PassThru return $site @@ -289,7 +306,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Title = "CommNik"; Template = "SITEPAGEPUBLISHING#0"; HubUrl = "https://contoso.sharepoint.com/sites/hub" - }| Add-Member -MemberType ScriptMethod -Name Update -Value { + } | Add-Member -MemberType ScriptMethod -Name Update -Value { } -PassThru return $site @@ -384,8 +401,8 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { StorageWarningLevel = 25574400; Title = "CommNik"; Template = "SITEPAGEPUBLISHING#0"; - HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" - }| Add-Member -MemberType ScriptMethod -Name Update -Value { + HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" + } | Add-Member -MemberType ScriptMethod -Name Update -Value { } -PassThru return $site @@ -480,7 +497,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { StorageWarningLevel = 25574400; Title = "CommNik"; Template = "SITEPAGEPUBLISHING#0"; - HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" + HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" } | Add-Member -MemberType ScriptMethod -Name Update -Value { } -PassThru @@ -569,7 +586,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { StorageWarningLevel = 25574400; Title = "CommNik"; Template = "SITEPAGEPUBLISHING#0"; - HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" + HubSiteId = "fcc3c848-6d2f-4821-a56c-980eea7990c5" } } } diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsChannelTab.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsChannelTab.Tests.ps1 index dac256e9ff..600b991e76 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsChannelTab.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.TeamsChannelTab.Tests.ps1 @@ -307,6 +307,12 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { } } + Mock -CommandName Get-MgTeamChannelTab -MockWith { + return @{ + DisplayName = "General" + } + } + Mock -CommandName Get-M365DSCTeamChannelTab -MockWith { return @{ id = "12345-12345-12345-12345-12345" diff --git a/Tests/Unit/Stubs/Generic.psm1 b/Tests/Unit/Stubs/Generic.psm1 index 1ef3f7ef52..cf8f76d3e6 100644 --- a/Tests/Unit/Stubs/Generic.psm1 +++ b/Tests/Unit/Stubs/Generic.psm1 @@ -405,62 +405,6 @@ function New-SafeAttachmentPolicy ) } -function Set-MalwareFilterRule -{ - [CmdletBinding()] - [OutputType([System.Collections.Hashtable])] - param - ( - [Parameter(Mandatory = $true)] - [System.String] - $Identity, - - [Parameter()] - [System.String] - $Comments, - - [Parameter()] - [System.Boolean] - $Enabled, - - [Parameter()] - [System.String] - $ExceptIfRecipientDomainIs, - - [Parameter()] - [System.String[]] - $ExceptIfSentTo = @(), - - [Parameter()] - [System.String[]] - $ExceptIfSentToMemberOf = @(), - - [Parameter()] - [System.String] - $MalwareFilterPolicy, - - [Parameter()] - [System.String] - $Priority, - - [Parameter()] - [System.String] - $RecipientDomainIs, - - [Parameter()] - [System.String[]] - $SentTo = @(), - - [Parameter()] - [System.String[]] - $SentToMemberOf = @(), - - [Parameter()] - [System.Boolean] - $Confirm = $false - ) -} - function New-SafeAttachmentRule diff --git a/Tests/Unit/Stubs/Microsoft365.psm1 b/Tests/Unit/Stubs/Microsoft365.psm1 index 523374351f..232916c6ca 100644 --- a/Tests/Unit/Stubs/Microsoft365.psm1 +++ b/Tests/Unit/Stubs/Microsoft365.psm1 @@ -1198,6 +1198,15 @@ function Get-AzureADMSGroupLifecyclePolicy $Id ) } +function Get-AzureADMSGroupPermissionGrant +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + $Id + ) +} function Get-AzureADMSIdentityProvider { [CmdletBinding()] @@ -2439,7 +2448,7 @@ function New-AzureADMSApplication [CmdletBinding()] param( [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AddIn]] + [System.Object[]] $AddIns, [Parameter()] @@ -2451,7 +2460,7 @@ function New-AzureADMSApplication $DisplayName, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RequiredResourceAccess]] + [System.Object[]] $RequiredResourceAccess, [Parameter()] @@ -2471,7 +2480,7 @@ function New-AzureADMSApplication $TokenEncryptionKeyId, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + [System.Object[]] $KeyCredentials, [Parameter()] @@ -2495,7 +2504,7 @@ function New-AzureADMSApplication $IsDeviceOnlyAuthSupported, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PreAuthorizedApplication]] + [System.Object[]] $PreAuthorizedApplications, [Parameter()] @@ -2515,11 +2524,11 @@ function New-AzureADMSApplication $InformationalUrl, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PasswordCredential]] + [System.Object[]] $PasswordCredentials, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AppRole]] + [System.Object[]] $AppRoles ) } @@ -2633,7 +2642,7 @@ function New-AzureADMSFeatureRolloutPolicy $DisplayName, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.MsDirectoryObject]] + [System.Object[]] $AppliesTo, [Parameter()] @@ -2794,11 +2803,11 @@ function New-AzureADMSNamedLocationPolicy $IsTrusted, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.IpRange]] + [System.Object[]] $IpRanges, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.CountriesAndRegion]] + [System.Object[]] $CountriesAndRegions, [Parameter()] @@ -2885,6 +2894,10 @@ function New-AzureADMSRoleAssignment { [CmdletBinding()] param( + [Parameter()] + [System.String] + $DirectoryScopeId, + [Parameter()] [System.String] $RoleDefinitionId, @@ -2915,20 +2928,24 @@ function New-AzureADMSRoleDefinition $Version, [Parameter()] - [System.String[]] + [System.Object[]] $RolePermissions, + [Parameter()] + [System.Object[]] + $InheritsPermissionsFrom, + + [Parameter()] + [System.String] + $Description, + [Parameter()] [System.Boolean] $IsEnabled, [Parameter()] [System.String[]] - $ResourceScopes, - - [Parameter()] - [System.String] - $Description + $ResourceScopes ) } function New-AzureADMSTrustFrameworkPolicy @@ -2982,7 +2999,7 @@ function New-AzureADPolicy $Type, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + [System.Object[]] $KeyCredentials, [Parameter()] @@ -4610,7 +4627,7 @@ function Set-AzureADMSApplication [CmdletBinding()] param( [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AddIn]] + [System.Object[]] $AddIns, [Parameter()] @@ -4622,7 +4639,7 @@ function Set-AzureADMSApplication $DisplayName, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RequiredResourceAccess]] + [System.Object[]] $RequiredResourceAccess, [Parameter()] @@ -4642,7 +4659,7 @@ function Set-AzureADMSApplication $TokenEncryptionKeyId, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + [System.Object[]] $KeyCredentials, [Parameter()] @@ -4662,7 +4679,7 @@ function Set-AzureADMSApplication $IsDeviceOnlyAuthSupported, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PreAuthorizedApplication]] + [System.Object[]] $PreAuthorizedApplications, [Parameter()] @@ -4690,11 +4707,11 @@ function Set-AzureADMSApplication $InformationalUrl, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PasswordCredential]] + [System.Object[]] $PasswordCredentials, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AppRole]] + [System.Object[]] $AppRoles ) } @@ -4807,7 +4824,7 @@ function Set-AzureADMSFeatureRolloutPolicy $DisplayName, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.MsDirectoryObject]] + [System.Object[]] $AppliesTo, [Parameter()] @@ -4947,7 +4964,7 @@ function Set-AzureADMSNamedLocationPolicy $IsTrusted, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.CountriesAndRegion]] + [System.Object[]] $CountriesAndRegions, [Parameter()] @@ -4955,7 +4972,7 @@ function Set-AzureADMSNamedLocationPolicy $PolicyId, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.IpRange]] + [System.Object[]] $IpRanges ) } @@ -5072,11 +5089,11 @@ function Set-AzureADMSPrivilegedRoleSetting [CmdletBinding()] param( [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AzureADMSPrivilegedRuleSetting]] + [System.Object[]] $AdminEligibleSettings, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AzureADMSPrivilegedRuleSetting]] + [System.Object[]] $AdminMemberSettings, [Parameter()] @@ -5084,7 +5101,7 @@ function Set-AzureADMSPrivilegedRoleSetting $ResourceId, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AzureADMSPrivilegedRuleSetting]] + [System.Object[]] $UserEligibleSettings, [Parameter()] @@ -5096,7 +5113,7 @@ function Set-AzureADMSPrivilegedRoleSetting $RoleDefinitionId, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AzureADMSPrivilegedRuleSetting]] + [System.Object[]] $UserMemberSettings, [Parameter()] @@ -5121,9 +5138,17 @@ function Set-AzureADMSRoleDefinition $Version, [Parameter()] - [System.String[]] + [System.Object[]] $RolePermissions, + [Parameter()] + [System.Object[]] + $InheritsPermissionsFrom, + + [Parameter()] + [System.String] + $Description, + [Parameter()] [System.Boolean] $IsEnabled, @@ -5132,10 +5157,6 @@ function Set-AzureADMSRoleDefinition [System.String[]] $ResourceScopes, - [Parameter()] - [System.String] - $Description, - [Parameter()] [System.String] $Id @@ -5204,7 +5225,7 @@ function Set-AzureADPolicy $Type, [Parameter()] - [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + [System.Object[]] $KeyCredentials, [Parameter()] @@ -5638,10 +5659,6 @@ function Add-MailboxFolderPermission [System.Object] $SharingPermissionFlags, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $GroupMailbox, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -7063,6 +7080,10 @@ function Export-TransportRuleCollection { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $Format, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -9516,6 +9537,71 @@ function Get-EvaluationModeReport $AsJob ) } +function Get-EvaluationModeReportSeries +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $StartDate, + + [Parameter()] + [System.Object] + $Page, + + [Parameter()] + [System.Object] + $EventSubType, + + [Parameter()] + [System.Object] + $IsScanAndDrop, + + [Parameter()] + [System.Object] + $EndDate, + + [Parameter()] + [System.Object] + $PageSize, + + [Parameter()] + [System.Object] + $AggregateBy, + + [Parameter()] + [System.Object] + $GroupByFields, + + [Parameter()] + [System.Object] + $Domain, + + [Parameter()] + [System.Object] + $EventType, + + [Parameter()] + [System.Object] + $IsComplexRouted, + + [Parameter()] + [System.Object] + $IsEvaluationMode, + + [Parameter()] + [System.Object] + $ProbeTag, + + [Parameter()] + [System.Object] + $ConnectorIds, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Get-EventsFromEmailConfiguration { [CmdletBinding()] @@ -10175,6 +10261,36 @@ function Get-LogonStatistics $AsJob ) } +function Get-M365DataAtRestEncryptionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-M365DataAtRestEncryptionPolicyAssignment +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Get-Mailbox { [CmdletBinding()] @@ -15847,10 +15963,6 @@ function New-AntiPhishPolicy [System.Object] $ExcludedDomains, - [Parameter()] - [System.Object] - $EnableAntiSpoofEnforcement, - [Parameter()] [System.Object] $TargetedDomainActionRecipients, @@ -16305,23 +16417,23 @@ function New-ClientAccessRule [Parameter()] [System.Object] - $Priority, + $AnyOfProtocols, [Parameter()] [System.Object] - $ExceptUsernameMatchesAnyOfPatterns, + $Priority, [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, + [System.Object] + $ExceptUsernameMatchesAnyOfPatterns, [Parameter()] [System.Object] $AnyOfAuthenticationTypes, [Parameter()] - [System.Object] - $AnyOfProtocols, + [System.Management.Automation.SwitchParameter] + $Confirm, [Parameter()] [System.Object] @@ -17838,6 +17950,39 @@ function New-JournalRule $AsJob ) } +function New-M365DataAtRestEncryptionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Object] + $Name, + + [Parameter()] + [System.Object] + $AzureKeyIDs, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Enabled, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function New-Mailbox { [CmdletBinding()] @@ -20477,6 +20622,10 @@ function New-SafeLinksPolicy { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $EnableOrganizationBranding, + [Parameter()] [System.Object] $ExcludedUrls, @@ -20491,7 +20640,7 @@ function New-SafeLinksPolicy [Parameter()] [System.Object] - $WhiteListedUrls, + $UseTranslatedNotificationText, [Parameter()] [System.Object] @@ -20511,7 +20660,7 @@ function New-SafeLinksPolicy [Parameter()] [System.Object] - $ScanUrls, + $WhiteListedUrls, [Parameter()] [System.Object] @@ -20529,10 +20678,18 @@ function New-SafeLinksPolicy [System.Object] $DoNotAllowClickThrough, + [Parameter()] + [System.Object] + $CustomNotificationText, + [Parameter()] [System.Object] $DeliverMessageAfterScan, + [Parameter()] + [System.Object] + $ScanUrls, + [Parameter()] [System.Object] $IsEnabled, @@ -22951,10 +23108,6 @@ function Remove-MailboxFolderPermission { [CmdletBinding()] param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $GroupMailbox, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -24597,13 +24750,17 @@ function Set-AcceptedDomain { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $OutboundOnly, + [Parameter()] [System.Object] $EnableNego2Authentication, [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, + [System.Object] + $CanHaveCloudCache, [Parameter()] [System.Object] @@ -24614,12 +24771,12 @@ function Set-AcceptedDomain $DomainType, [Parameter()] - [System.Object] - $MatchSubDomains, + [System.Management.Automation.SwitchParameter] + $Confirm, [Parameter()] [System.Object] - $OutboundOnly, + $MatchSubDomains, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -24976,8 +25133,8 @@ function Set-AntiPhishPolicy [CmdletBinding()] param( [Parameter()] - [System.Management.Automation.SwitchParameter] - $MakeDefault, + [System.Object] + $EnableMailboxIntelligenceProtection, [Parameter()] [System.Object] @@ -25013,7 +25170,7 @@ function Set-AntiPhishPolicy [Parameter()] [System.Object] - $EnableOrganizationDomainsProtection, + $TargetedUsersToProtect, [Parameter()] [System.Object] @@ -25029,7 +25186,7 @@ function Set-AntiPhishPolicy [Parameter()] [System.Object] - $EnableAntiSpoofEnforcement, + $PolicyTag, [Parameter()] [System.Object] @@ -25055,10 +25212,6 @@ function Set-AntiPhishPolicy [System.Object] $AuthenticationFailAction, - [Parameter()] - [System.Object] - $TargetedUsersToProtect, - [Parameter()] [System.Object] $TargetedUserProtectionAction, @@ -25067,6 +25220,10 @@ function Set-AntiPhishPolicy [System.Object] $MailboxIntelligenceProtectionActionRecipients, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $MakeDefault, + [Parameter()] [System.Object] $EnableSimilarDomainsSafetyTips, @@ -25081,16 +25238,12 @@ function Set-AntiPhishPolicy [Parameter()] [System.Object] - $PolicyTag, + $EnableOrganizationDomainsProtection, [Parameter()] [System.Object] $EnableUnusualCharactersSafetyTips, - [Parameter()] - [System.Object] - $EnableMailboxIntelligenceProtection, - [Parameter()] [System.Object] $TargetedUserActionRecipients, @@ -25462,7 +25615,7 @@ function Set-CalendarProcessing [Parameter()] [System.Object] - $AllowDistributionGroup, + $BookingType, [Parameter()] [System.Object] @@ -25472,10 +25625,6 @@ function Set-CalendarProcessing [System.Management.Automation.SwitchParameter] $Confirm, - [Parameter()] - [System.Object] - $MaximumDurationInMinutes, - [Parameter()] [System.Object] $Identity, @@ -25488,10 +25637,6 @@ function Set-CalendarProcessing [System.Object] $DeleteNonCalendarItems, - [Parameter()] - [System.Object] - $EnforceAdjacencyAsOverlap, - [Parameter()] [System.Object] $DeleteComments, @@ -25512,10 +25657,6 @@ function Set-CalendarProcessing [System.Object] $EnforceCapacity, - [Parameter()] - [System.Object] - $AutoRSVPConfiguration, - [Parameter()] [System.Management.Automation.SwitchParameter] $IgnoreDefaultScope, @@ -25528,10 +25669,6 @@ function Set-CalendarProcessing [System.Object] $AllRequestInPolicy, - [Parameter()] - [System.Object] - $AllowMultipleResources, - [Parameter()] [System.Object] $BookInPolicy, @@ -25582,7 +25719,7 @@ function Set-CalendarProcessing [Parameter()] [System.Object] - $BookingType, + $MaximumDurationInMinutes, [Parameter()] [System.Object] @@ -28314,6 +28451,60 @@ function Set-LinkedUser $AsJob ) } +function Set-M365DataAtRestEncryptionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Name, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Refresh, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Object] + $Enabled, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Set-M365DataAtRestEncryptionPolicyAssignment +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $DataEncryptionPolicy, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Set-Mailbox { [CmdletBinding()] @@ -31602,7 +31793,7 @@ function Set-OrganizationConfig [Parameter()] [System.Object] - $DefaultPublicFolderMovedItemRetention, + $DefaultMinutesToReduceShortEventsBy, [Parameter()] [System.Object] @@ -31660,6 +31851,10 @@ function Set-OrganizationConfig [System.Object] $BookingsNotesEntryRestricted, + [Parameter()] + [System.Object] + $ShortenEventScopeDefault, + [Parameter()] [System.Object] $AuditDisabled, @@ -31668,13 +31863,17 @@ function Set-OrganizationConfig [System.Object] $IsAgendaMailEnabled, + [Parameter()] + [System.Object] + $FindTimeOnlineMeetingOptionDisabled, + [Parameter()] [System.Object] $EwsEnabled, [Parameter()] [System.Object] - $PerTenantSwitchToESTSEnabled, + $FindTimeAttendeeAuthenticationEnabled, [Parameter()] [System.Object] @@ -31756,6 +31955,10 @@ function Set-OrganizationConfig [System.Management.Automation.SwitchParameter] $Confirm, + [Parameter()] + [System.Object] + $DefaultPublicFolderMovedItemRetention, + [Parameter()] [System.Object] $DistributionGroupDefaultOU, @@ -31808,10 +32011,18 @@ function Set-OrganizationConfig [System.Object] $MatchSenderOrganizerProperties, + [Parameter()] + [System.Object] + $DefaultMinutesToReduceLongEventsBy, + [Parameter()] [System.Object] $IPListBlocked, + [Parameter()] + [System.Object] + $SendFromAliasEnabled, + [Parameter()] [System.Object] $AutodiscoverPartialDirSync, @@ -31824,6 +32035,10 @@ function Set-OrganizationConfig [System.Object] $ConnectorsEnabledForSharepoint, + [Parameter()] + [System.Object] + $PerTenantSwitchToESTSEnabled, + [Parameter()] [System.Object] $ConnectorsEnabled, @@ -31852,6 +32067,10 @@ function Set-OrganizationConfig [System.Object] $ByteEncoderTypeFor7BitCharsets, + [Parameter()] + [System.Object] + $FindTimeAutoScheduleDisabled, + [Parameter()] [System.Object] $DefaultPublicFolderIssueWarningQuota, @@ -32140,6 +32359,10 @@ function Set-OwaMailboxPolicy [System.Object] $ExplicitLogonEnabled, + [Parameter()] + [System.Object] + $ShowOnlineArchiveEnabled, + [Parameter()] [System.Object] $WebPartsFrameOptionsType, @@ -32664,10 +32887,6 @@ function Set-Place [System.Object] $GeoCoordinates, - [Parameter()] - [System.Object] - $SpaceType, - [Parameter()] [System.Management.Automation.SwitchParameter] $AsJob @@ -33575,6 +33794,10 @@ function Set-SafeLinksPolicy { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $EnableOrganizationBranding, + [Parameter()] [System.Object] $Identity, @@ -33593,7 +33816,7 @@ function Set-SafeLinksPolicy [Parameter()] [System.Object] - $WhiteListedUrls, + $UseTranslatedNotificationText, [Parameter()] [System.Object] @@ -33609,7 +33832,7 @@ function Set-SafeLinksPolicy [Parameter()] [System.Object] - $ScanUrls, + $WhiteListedUrls, [Parameter()] [System.Object] @@ -33623,10 +33846,18 @@ function Set-SafeLinksPolicy [System.Object] $DoNotAllowClickThrough, + [Parameter()] + [System.Object] + $CustomNotificationText, + [Parameter()] [System.Object] $DeliverMessageAfterScan, + [Parameter()] + [System.Object] + $ScanUrls, + [Parameter()] [System.Object] $IsEnabled, @@ -36281,6 +36512,10 @@ function Set-User [System.Object] $PostalCode, + [Parameter()] + [System.Object] + $CanHaveCloudCache, + [Parameter()] [System.Management.Automation.SwitchParameter] $AsJob @@ -36784,6 +37019,27 @@ function Test-ClientAccessRule $AsJob ) } +function Test-DatabaseEvent +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Counter, + + [Parameter()] + [System.Object] + $AssistantName, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Test-DataClassification { [CmdletBinding()] @@ -36864,6 +37120,27 @@ function Test-IRMConfiguration $AsJob ) } +function Test-M365DataAtRestEncryptionPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Test-MailboxAssistant { [CmdletBinding()] @@ -36974,6 +37251,10 @@ function Test-MigrationServerAvailability [System.Object] $RemoteServer, + [Parameter()] + [System.Object] + $Partition, + [Parameter()] [System.Object] $MailboxPermission, @@ -101424,7 +101705,11 @@ function Add-PnPField [Parameter()] [System.String] - $InternalName + $InternalName, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AddToAllContentTypes ) } function Add-PnPFieldFromXml @@ -102180,10 +102465,6 @@ function Add-PnPSiteScript [System.String] $Description, - [Parameter()] - [System.String] - $Content, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -102192,6 +102473,10 @@ function Add-PnPSiteScript [System.String] $Title, + [Parameter()] + [System.String] + $Content, + [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] $Connection @@ -103450,10 +103735,6 @@ function Copy-PnPFile [System.String] $SourceUrl, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $SkipSourceFolderName, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -103470,6 +103751,10 @@ function Copy-PnPFile [PnP.PowerShell.Commands.Base.PnPConnection] $Connection, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $SkipSourceFolderName, + [Parameter()] [System.Management.Automation.SwitchParameter] $OverwriteIfAlreadyExists, @@ -103491,10 +103776,6 @@ function Copy-PnPItemProxy [System.Management.Automation.SwitchParameter] $PassThru, - [Parameter()] - [System.String] - $Destination, - [Parameter()] [System.Management.Automation.PSCredential] $Credential, @@ -103507,6 +103788,10 @@ function Copy-PnPItemProxy [System.Management.Automation.SwitchParameter] $Confirm, + [Parameter()] + [System.String] + $Destination, + [Parameter()] [System.String] $Filter, @@ -105740,14 +106025,6 @@ function Get-PnPSiteScriptFromWeb [System.Management.Automation.SwitchParameter] $IncludeTheme, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $IncludeLinksToExportedItems, - [Parameter()] [System.Management.Automation.SwitchParameter] $IncludeBranding, @@ -105760,10 +106037,18 @@ function Get-PnPSiteScriptFromWeb [System.String] $Url, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + [Parameter()] [System.Management.Automation.SwitchParameter] $IncludeAll, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $IncludeLinksToExportedItems, + [Parameter()] [System.Management.Automation.SwitchParameter] $IncludeSiteExternalSharingCapability @@ -105836,6 +106121,10 @@ function Get-PnPSubWebs [PnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] $Web, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $IncludeRootWeb, + [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] $Identity, @@ -106175,6 +106464,10 @@ function Get-PnPTenantTemplate { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.String] $Out, @@ -106197,11 +106490,7 @@ function Get-PnPTenantTemplate [Parameter()] [System.Management.Automation.SwitchParameter] - $AsInstance, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $AsInstance ) } function Get-PnPTenantTheme @@ -106754,6 +107043,10 @@ function Import-PnPTaxonomy [System.Management.Automation.SwitchParameter] $Confirm, + [Parameter()] + [System.String] + $TermStoreName, + [Parameter()] [System.String[]] $Terms, @@ -106772,11 +107065,7 @@ function Import-PnPTaxonomy [Parameter()] [System.Int32] - $Lcid, - - [Parameter()] - [System.String] - $TermStoreName + $Lcid ) } function Import-PnPTermGroupFromXml @@ -107244,10 +107533,6 @@ function Move-PnPFile [System.String] $TargetUrl, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] $Web, @@ -107264,6 +107549,10 @@ function Move-PnPFile [System.Management.Automation.SwitchParameter] $AllowSchemaMismatch, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + [Parameter()] [System.String] $ServerRelativeUrl, @@ -107314,10 +107603,6 @@ function Move-PnPItemProxy [System.Management.Automation.SwitchParameter] $PassThru, - [Parameter()] - [System.String] - $Destination, - [Parameter()] [System.Management.Automation.PSCredential] $Credential, @@ -107326,6 +107611,10 @@ function Move-PnPItemProxy [System.Management.Automation.SwitchParameter] $Confirm, + [Parameter()] + [System.String] + $Destination, + [Parameter()] [System.String] $Filter, @@ -107355,6 +107644,10 @@ function Move-PnPListItemToRecycleBin { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -107373,11 +107666,7 @@ function Move-PnPListItemToRecycleBin [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.ListPipeBind] - $List, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $List ) } function Move-PnPRecycleBinItem @@ -108519,6 +108808,10 @@ function Remove-PnPApplicationCustomizer { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.GuidPipeBind] $ClientSideComponentId, @@ -108541,11 +108834,7 @@ function Remove-PnPApplicationCustomizer [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPClientSideComponent @@ -108661,6 +108950,10 @@ function Remove-PnPCustomAction { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -108679,11 +108972,7 @@ function Remove-PnPCustomAction [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPDeletedMicrosoft365Group @@ -108703,6 +108992,10 @@ function Remove-PnPEventReceiver { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -108721,17 +109014,17 @@ function Remove-PnPEventReceiver [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.ListPipeBind] - $List, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $List ) } function Remove-PnPField { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -108750,11 +109043,7 @@ function Remove-PnPField [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.ListPipeBind] - $List, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $List ) } function Remove-PnPFieldFromContentType @@ -108979,6 +109268,10 @@ function Remove-PnPJavaScriptLink { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109001,11 +109294,7 @@ function Remove-PnPJavaScriptLink [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPKnowledgeHubSite @@ -109021,6 +109310,10 @@ function Remove-PnPList { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109039,17 +109332,17 @@ function Remove-PnPList [Parameter()] [System.Management.Automation.SwitchParameter] - $Recycle, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Recycle ) } function Remove-PnPListItem { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109072,11 +109365,7 @@ function Remove-PnPListItem [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.ListPipeBind] - $List, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $List ) } function Remove-PnPMicrosoft365Group @@ -109130,6 +109419,10 @@ function Remove-PnPNavigationNode { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.String] $Header, @@ -109160,11 +109453,7 @@ function Remove-PnPNavigationNode [Parameter()] [System.Management.Automation.SwitchParameter] - $All, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $All ) } function Remove-PnPOrgAssetsLibrary @@ -109340,6 +109629,10 @@ function Remove-PnPSiteDesign { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109350,17 +109643,17 @@ function Remove-PnPSiteDesign [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPSiteDesignTask { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109371,17 +109664,17 @@ function Remove-PnPSiteDesignTask [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPSiteScript { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109392,11 +109685,7 @@ function Remove-PnPSiteScript [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Remove-PnPStorageEntity @@ -109437,6 +109726,10 @@ function Remove-PnPTaxonomyItem { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109447,11 +109740,7 @@ function Remove-PnPTaxonomyItem [Parameter()] [System.String] - $TermPath, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $TermPath ) } function Remove-PnPTeamsApp @@ -109689,6 +109978,10 @@ function Remove-PnPView { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109707,11 +110000,7 @@ function Remove-PnPView [Parameter()] [PnP.PowerShell.Commands.Base.PipeBinds.ListPipeBind] - $List, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $List ) } function Remove-PnPWeb @@ -109856,6 +110145,10 @@ function Rename-PnPFile [System.String] $TargetFileName, + [Parameter()] + [System.String] + $SiteRelativeUrl, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -109874,11 +110167,7 @@ function Rename-PnPFile [Parameter()] [System.Management.Automation.SwitchParameter] - $OverwriteIfAlreadyExists, - - [Parameter()] - [System.String] - $SiteRelativeUrl + $OverwriteIfAlreadyExists ) } function Rename-PnPFolder @@ -113306,6 +113595,10 @@ function Uninstall-PnPAppInstance { [CmdletBinding()] param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -113320,11 +113613,7 @@ function Uninstall-PnPAppInstance [Parameter()] [PnP.PowerShell.Commands.Base.PnPConnection] - $Connection, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force + $Connection ) } function Uninstall-PnPSolution @@ -117592,48 +117881,6 @@ function Get-InformationBarrierReportSummary $AsJob ) } -function Get-InsiderRiskEntityList -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $IncludeDeleted, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $IncludeEntities, - - [Parameter()] - [System.Object] - $Type, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Get-InsiderRiskPolicy -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $DistributionDetail, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} function Get-Label { [CmdletBinding()] @@ -118397,31 +118644,6 @@ function Get-User $AsJob ) } -function Import-DlpComplianceRuleCollection -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $ImportErrorAction, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $FileData, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Force, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} function Import-FilePlanProperty { [CmdletBinding()] @@ -119963,6 +120185,10 @@ function New-DlpComplianceRule [System.Object] $DocumentNameMatchesPatterns, + [Parameter()] + [System.Object] + $ExceptIfSubjectOrBodyMatchesPatterns, + [Parameter()] [System.Object] $ExceptIfRecipientDomainIs, @@ -120003,6 +120229,14 @@ function New-DlpComplianceRule [System.Object] $NotifyAllowOverride, + [Parameter()] + [System.Object] + $WithImportance, + + [Parameter()] + [System.Object] + $SubjectOrBodyMatchesPatterns, + [Parameter()] [System.Object] $NotifyUser, @@ -120023,6 +120257,10 @@ function New-DlpComplianceRule [System.Object] $FromAddressMatchesPatterns, + [Parameter()] + [System.Object] + $SenderIPRanges, + [Parameter()] [System.Object] $ExceptIfFrom, @@ -120033,7 +120271,11 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $SubjectContainsWords, + $NotifyEmailCustomText, + + [Parameter()] + [System.Object] + $ExceptIfSenderADAttributeContainsWords, [Parameter()] [System.Object] @@ -120049,7 +120291,15 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $ThirdPartyAppDlpRestrictions, + $HasSenderOverride, + + [Parameter()] + [System.Object] + $NotifyPolicyTipCustomTextTranslations, + + [Parameter()] + [System.Object] + $ExceptIfWithImportance, [Parameter()] [System.Object] @@ -120065,7 +120315,7 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $AnyOfRecipientAddressContainsWords, + $ExceptIfSubjectOrBodyContainsWords, [Parameter()] [System.Object] @@ -120083,10 +120333,18 @@ function New-DlpComplianceRule [System.Object] $ExceptIfAccessScope, + [Parameter()] + [System.Object] + $PrependSubject, + [Parameter()] [System.Object] $ExceptIfHeaderMatchesPatterns, + [Parameter()] + [System.Object] + $AnyOfRecipientAddressContainsWords, + [Parameter()] [System.Object] $RecipientDomainIs, @@ -120105,7 +120363,7 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $NotifyPolicyTipCustomTextTranslations, + $ExceptIfDocumentIsPasswordProtected, [Parameter()] [System.Object] @@ -120123,6 +120381,10 @@ function New-DlpComplianceRule [System.Object] $AccessScope, + [Parameter()] + [System.Object] + $FromScope, + [Parameter()] [System.Object] $RemoveHeader, @@ -120145,7 +120407,7 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $ExceptIfDocumentIsPasswordProtected, + $ContentCharacterSetContainsWords, [Parameter()] [System.Object] @@ -120153,7 +120415,7 @@ function New-DlpComplianceRule [Parameter()] [System.Object] - $NotifyEmailCustomText, + $ExceptIfSenderADAttributeMatchesPatterns, [Parameter()] [System.Object] @@ -120167,13 +120429,17 @@ function New-DlpComplianceRule [System.Object] $Priority, + [Parameter()] + [System.Object] + $SubjectContainsWords, + [Parameter()] [System.Object] $ExceptIfHeaderContainsWords, [Parameter()] [System.Object] - $SenderIPRanges, + $ExceptIfContentCharacterSetContainsWords, [Parameter()] [System.Object] @@ -120183,6 +120449,10 @@ function New-DlpComplianceRule [System.Object] $ContentContainsSensitiveInformation, + [Parameter()] + [System.Object] + $SubjectOrBodyContainsWords, + [Parameter()] [System.Object] $Moderate, @@ -120191,6 +120461,14 @@ function New-DlpComplianceRule [System.Object] $FromMemberOf, + [Parameter()] + [System.Object] + $ExceptIfHasSenderOverride, + + [Parameter()] + [System.Object] + $ExceptIfFromScope, + [Parameter()] [System.Object] $BlockAccess, @@ -120235,6 +120513,10 @@ function New-DlpComplianceRule [System.Object] $SentTo, + [Parameter()] + [System.Object] + $ThirdPartyAppDlpRestrictions, + [Parameter()] [System.Object] $DocumentIsUnsupported, @@ -120275,6 +120557,10 @@ function New-DlpComplianceRule [System.Object] $AlertProperties, + [Parameter()] + [System.Object] + $ApplyHtmlDisclaimer, + [Parameter()] [System.Object] $DocumentSizeOver, @@ -120658,140 +120944,6 @@ function New-InformationBarrierPolicy $AsJob ) } -function New-InsiderRiskEntityList -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $Description, - - [Parameter()] - [System.Object] - $DisplayName, - - [Parameter()] - [System.Object] - $Name, - - [Parameter()] - [System.Object] - $Type, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $IsSystem, - - [Parameter()] - [System.Object] - $Entities, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function New-InsiderRiskPolicy -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $HistoricTimeSpan, - - [Parameter()] - [System.Object] - $SensitivityLabels, - - [Parameter()] - [System.Object] - $Enabled, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $Name, - - [Parameter()] - [System.Object] - $ExchangeLocation, - - [Parameter()] - [System.Object] - $PostTerminationActivity, - - [Parameter()] - [System.Object] - $Triggers, - - [Parameter()] - [System.Object] - $Comment, - - [Parameter()] - [System.Object] - $TeamsSites, - - [Parameter()] - [System.Object] - $InsiderRiskScenario, - - [Parameter()] - [System.Object] - $DlpPolicy, - - [Parameter()] - [System.Object] - $FutureTerminationWindow, - - [Parameter()] - [System.Object] - $IsCustom, - - [Parameter()] - [System.Object] - $Indicators, - - [Parameter()] - [System.Object] - $SharepointSites, - - [Parameter()] - [System.Object] - $CustomTags, - - [Parameter()] - [System.Object] - $TenantSetting, - - [Parameter()] - [System.Object] - $DlpSensitiveTypes, - - [Parameter()] - [System.Object] - $InScopeTimeSpan, - - [Parameter()] - [System.Object] - $SchemaVersion, - - [Parameter()] - [System.Object] - $PastTerminationWindow, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} function New-Label { [CmdletBinding()] @@ -120824,10 +120976,18 @@ function New-Label [System.Object] $SiteAndGroupProtectionEnabled, + [Parameter()] + [System.Object] + $ApplyContentMarkingFooterEnabled, + [Parameter()] [System.Object] $ApplyContentMarkingFooterFontSize, + [Parameter()] + [System.Object] + $ApplyWaterMarkingFontSize, + [Parameter()] [System.Object] $ApplyContentMarkingHeaderFontColor, @@ -120848,6 +121008,10 @@ function New-Label [System.Object] $ApplyContentMarkingFooterText, + [Parameter()] + [System.Object] + $ColumnAssetCondition, + [Parameter()] [System.Object] $SiteAndGroupProtectionAllowEmailFromGuestUsers, @@ -120874,7 +121038,7 @@ function New-Label [Parameter()] [System.Object] - $ApplyContentMarkingFooterEnabled, + $SqlAssetCondition, [Parameter()] [System.Object] @@ -120954,7 +121118,7 @@ function New-Label [Parameter()] [System.Object] - $ApplyWaterMarkingFontSize, + $SiteExternalSharingControlType, [Parameter()] [System.Object] @@ -122395,52 +122559,6 @@ function Remove-InformationBarrierPolicy $AsJob ) } -function Remove-InsiderRiskEntityList -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $IsSystem, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $ForceDeletion, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Remove-InsiderRiskPolicy -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $ForceDeletion, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} function Remove-Label { [CmdletBinding()] @@ -124224,10 +124342,18 @@ function Set-DlpComplianceRule [System.Management.Automation.SwitchParameter] $Confirm, + [Parameter()] + [System.Object] + $NotifyAllowOverride, + [Parameter()] [System.Object] $DocumentNameMatchesPatterns, + [Parameter()] + [System.Object] + $ExceptIfSubjectOrBodyMatchesPatterns, + [Parameter()] [System.Object] $ExceptIfRecipientDomainIs, @@ -124262,15 +124388,19 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $NotifyPolicyTipCustomText, + $DocumentNameMatchesWords, [Parameter()] [System.Object] - $DocumentNameMatchesWords, + $Identity, [Parameter()] [System.Object] - $NotifyAllowOverride, + $WithImportance, + + [Parameter()] + [System.Object] + $SubjectOrBodyMatchesPatterns, [Parameter()] [System.Object] @@ -124292,6 +124422,10 @@ function Set-DlpComplianceRule [System.Object] $FromAddressMatchesPatterns, + [Parameter()] + [System.Object] + $SenderIPRanges, + [Parameter()] [System.Object] $ExceptIfFrom, @@ -124302,7 +124436,11 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $SubjectContainsWords, + $NotifyEmailCustomText, + + [Parameter()] + [System.Object] + $ExceptIfSenderADAttributeContainsWords, [Parameter()] [System.Object] @@ -124318,7 +124456,15 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $ThirdPartyAppDlpRestrictions, + $HasSenderOverride, + + [Parameter()] + [System.Object] + $NotifyPolicyTipCustomTextTranslations, + + [Parameter()] + [System.Object] + $ExceptIfWithImportance, [Parameter()] [System.Object] @@ -124330,7 +124476,7 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $AnyOfRecipientAddressContainsWords, + $ExceptIfSubjectOrBodyContainsWords, [Parameter()] [System.Object] @@ -124348,10 +124494,18 @@ function Set-DlpComplianceRule [System.Object] $ExceptIfAccessScope, + [Parameter()] + [System.Object] + $PrependSubject, + [Parameter()] [System.Object] $ExceptIfHeaderMatchesPatterns, + [Parameter()] + [System.Object] + $AnyOfRecipientAddressContainsWords, + [Parameter()] [System.Object] $RecipientDomainIs, @@ -124370,7 +124524,7 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $NotifyPolicyTipCustomTextTranslations, + $ExceptIfDocumentIsPasswordProtected, [Parameter()] [System.Object] @@ -124388,6 +124542,10 @@ function Set-DlpComplianceRule [System.Object] $AccessScope, + [Parameter()] + [System.Object] + $FromScope, + [Parameter()] [System.Object] $RemoveHeader, @@ -124406,7 +124564,7 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $ExceptIfDocumentIsPasswordProtected, + $ContentCharacterSetContainsWords, [Parameter()] [System.Object] @@ -124414,7 +124572,7 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $NotifyEmailCustomText, + $ExceptIfSenderADAttributeMatchesPatterns, [Parameter()] [System.Object] @@ -124428,13 +124586,17 @@ function Set-DlpComplianceRule [System.Object] $Priority, + [Parameter()] + [System.Object] + $SubjectContainsWords, + [Parameter()] [System.Object] $ExceptIfHeaderContainsWords, [Parameter()] [System.Object] - $SenderIPRanges, + $ExceptIfContentCharacterSetContainsWords, [Parameter()] [System.Object] @@ -124444,6 +124606,10 @@ function Set-DlpComplianceRule [System.Object] $ContentContainsSensitiveInformation, + [Parameter()] + [System.Object] + $SubjectOrBodyContainsWords, + [Parameter()] [System.Object] $Moderate, @@ -124454,7 +124620,11 @@ function Set-DlpComplianceRule [Parameter()] [System.Object] - $Identity, + $ExceptIfHasSenderOverride, + + [Parameter()] + [System.Object] + $ExceptIfFromScope, [Parameter()] [System.Object] @@ -124488,6 +124658,10 @@ function Set-DlpComplianceRule [System.Object] $RuleErrorAction, + [Parameter()] + [System.Object] + $NotifyPolicyTipCustomText, + [Parameter()] [System.Object] $ContentPropertyContainsWords, @@ -124496,6 +124670,10 @@ function Set-DlpComplianceRule [System.Object] $SentTo, + [Parameter()] + [System.Object] + $ThirdPartyAppDlpRestrictions, + [Parameter()] [System.Object] $DocumentIsUnsupported, @@ -124532,6 +124710,10 @@ function Set-DlpComplianceRule [System.Object] $AlertProperties, + [Parameter()] + [System.Object] + $ApplyHtmlDisclaimer, + [Parameter()] [System.Object] $DocumentSizeOver, @@ -124947,140 +125129,6 @@ function Set-InformationBarrierPolicy $AsJob ) } -function Set-InsiderRiskEntityList -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $Description, - - [Parameter()] - [System.Object] - $DisplayName, - - [Parameter()] - [System.Object] - $AddEntities, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $RemoveEntities, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Set-InsiderRiskPolicy -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Object] - $HistoricTimeSpan, - - [Parameter()] - [System.Object] - $SensitivityLabels, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Object] - $Enabled, - - [Parameter()] - [System.Object] - $AddExchangeLocation, - - [Parameter()] - [System.Object] - $PostTerminationActivity, - - [Parameter()] - [System.Object] - $Triggers, - - [Parameter()] - [System.Object] - $Comment, - - [Parameter()] - [System.Object] - $TeamsSites, - - [Parameter()] - [System.Object] - $DlpPolicy, - - [Parameter()] - [System.Object] - $FutureTerminationWindow, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $Confirm, - - [Parameter()] - [System.Object] - $IsCustom, - - [Parameter()] - [System.Object] - $RemoveExchangeLocation, - - [Parameter()] - [System.Object] - $Indicators, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $RetryDistribution, - - [Parameter()] - [System.Object] - $SharepointSites, - - [Parameter()] - [System.Object] - $CustomTags, - - [Parameter()] - [System.Object] - $TenantSetting, - - [Parameter()] - [System.Object] - $DlpSensitiveTypes, - - [Parameter()] - [System.Object] - $InScopeTimeSpan, - - [Parameter()] - [System.Object] - $SchemaVersion, - - [Parameter()] - [System.Object] - $PastTerminationWindow, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} function Set-Label { [CmdletBinding()] @@ -125113,10 +125161,18 @@ function Set-Label [System.Object] $SiteAndGroupProtectionEnabled, + [Parameter()] + [System.Object] + $ApplyContentMarkingFooterEnabled, + [Parameter()] [System.Object] $ApplyContentMarkingFooterFontSize, + [Parameter()] + [System.Object] + $ApplyWaterMarkingFontSize, + [Parameter()] [System.Object] $ApplyContentMarkingHeaderFontColor, @@ -125141,6 +125197,10 @@ function Set-Label [System.Object] $ApplyContentMarkingFooterText, + [Parameter()] + [System.Object] + $ColumnAssetCondition, + [Parameter()] [System.Object] $SiteAndGroupProtectionAllowEmailFromGuestUsers, @@ -125163,7 +125223,7 @@ function Set-Label [Parameter()] [System.Object] - $ApplyContentMarkingFooterEnabled, + $SqlAssetCondition, [Parameter()] [System.Object] @@ -125243,7 +125303,7 @@ function Set-Label [Parameter()] [System.Object] - $ApplyWaterMarkingFontSize, + $SiteExternalSharingControlType, [Parameter()] [System.Object] @@ -125528,6 +125588,10 @@ function Set-PolicyConfig [System.Object] $RuleErrorAction, + [Parameter()] + [System.Object] + $PurviewLabelConsent, + [Parameter()] [System.Management.Automation.SwitchParameter] $AsJob @@ -127615,6 +127679,31 @@ function Get-CsInboundBlockedNumberPattern $AsJob ) } +function Get-CsInboundExemptNumberPattern +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Get-CsIPPhonePolicy { [CmdletBinding()] @@ -129104,6 +129193,10 @@ function Get-CsOnlineUser { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $Identity, + [Parameter()] [System.Object] $Credential, @@ -129125,8 +129218,8 @@ function Get-CsOnlineUser $OnOfficeCommunicationServer, [Parameter()] - [System.Object] - $Identity, + [System.Management.Automation.SwitchParameter] + $UnassignedUser, [Parameter()] [System.Object] @@ -129136,10 +129229,6 @@ function Get-CsOnlineUser [System.Object] $DomainController, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $UnassignedUser, - [Parameter()] [System.Object] $ResultSize, @@ -129671,57 +129760,182 @@ function Get-CsTeamsCallParkPolicy $AsJob ) } -function Get-CsTeamsChannelsPolicy -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $LocalStore, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Object] - $Tenant, - - [Parameter()] - [System.Object] - $Filter, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Get-CsTeamsClientConfiguration -{ - [CmdletBinding()] - param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $LocalStore, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Object] - $Tenant, - - [Parameter()] - [System.Object] - $Filter, - - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Get-CsTeamsComplianceRecordingApplication +function Get-CsTeamsChannelsPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsClientConfiguration +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsComplianceRecordingApplication +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsComplianceRecordingPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsCortanaPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsEducationAssignmentsAppPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsEmergencyCallingPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Get-CsTeamsEmergencyCallRoutingPolicy { [CmdletBinding()] param( @@ -129746,7 +129960,7 @@ function Get-CsTeamsComplianceRecordingApplication $AsJob ) } -function Get-CsTeamsComplianceRecordingPolicy +function Get-CsTeamsFeedbackPolicy { [CmdletBinding()] param( @@ -129771,7 +129985,7 @@ function Get-CsTeamsComplianceRecordingPolicy $AsJob ) } -function Get-CsTeamsCortanaPolicy +function Get-CsTeamsGuestCallingConfiguration { [CmdletBinding()] param( @@ -129796,7 +130010,7 @@ function Get-CsTeamsCortanaPolicy $AsJob ) } -function Get-CsTeamsEducationAssignmentsAppPolicy +function Get-CsTeamsGuestMeetingConfiguration { [CmdletBinding()] param( @@ -129821,7 +130035,7 @@ function Get-CsTeamsEducationAssignmentsAppPolicy $AsJob ) } -function Get-CsTeamsEmergencyCallingPolicy +function Get-CsTeamsGuestMessagingConfiguration { [CmdletBinding()] param( @@ -129846,7 +130060,7 @@ function Get-CsTeamsEmergencyCallingPolicy $AsJob ) } -function Get-CsTeamsEmergencyCallRoutingPolicy +function Get-CsTeamsIPPhonePolicy { [CmdletBinding()] param( @@ -129871,35 +130085,14 @@ function Get-CsTeamsEmergencyCallRoutingPolicy $AsJob ) } -function Get-CsTeamsFeedbackPolicy +function Get-CsTeamsMeetingBroadcastConfiguration { [CmdletBinding()] param( [Parameter()] [System.Management.Automation.SwitchParameter] - $LocalStore, - - [Parameter()] - [System.Object] - $Identity, - - [Parameter()] - [System.Object] - $Tenant, - - [Parameter()] - [System.Object] - $Filter, + $ExposeSDNConfigurationJsonBlob, - [Parameter()] - [System.Management.Automation.SwitchParameter] - $AsJob - ) -} -function Get-CsTeamsGuestCallingConfiguration -{ - [CmdletBinding()] - param( [Parameter()] [System.Management.Automation.SwitchParameter] $LocalStore, @@ -129921,7 +130114,7 @@ function Get-CsTeamsGuestCallingConfiguration $AsJob ) } -function Get-CsTeamsGuestMeetingConfiguration +function Get-CsTeamsMeetingBroadcastPolicy { [CmdletBinding()] param( @@ -129946,7 +130139,7 @@ function Get-CsTeamsGuestMeetingConfiguration $AsJob ) } -function Get-CsTeamsGuestMessagingConfiguration +function Get-CsTeamsMeetingConfiguration { [CmdletBinding()] param( @@ -129971,7 +130164,7 @@ function Get-CsTeamsGuestMessagingConfiguration $AsJob ) } -function Get-CsTeamsIPPhonePolicy +function Get-CsTeamsMeetingPolicy { [CmdletBinding()] param( @@ -129996,14 +130189,10 @@ function Get-CsTeamsIPPhonePolicy $AsJob ) } -function Get-CsTeamsMeetingBroadcastConfiguration +function Get-CsTeamsMessagingPolicy { [CmdletBinding()] param( - [Parameter()] - [System.Management.Automation.SwitchParameter] - $ExposeSDNConfigurationJsonBlob, - [Parameter()] [System.Management.Automation.SwitchParameter] $LocalStore, @@ -130025,7 +130214,7 @@ function Get-CsTeamsMeetingBroadcastConfiguration $AsJob ) } -function Get-CsTeamsMeetingBroadcastPolicy +function Get-CsTeamsMigrationConfiguration { [CmdletBinding()] param( @@ -130050,7 +130239,7 @@ function Get-CsTeamsMeetingBroadcastPolicy $AsJob ) } -function Get-CsTeamsMeetingConfiguration +function Get-CsTeamsMobilityPolicy { [CmdletBinding()] param( @@ -130075,7 +130264,7 @@ function Get-CsTeamsMeetingConfiguration $AsJob ) } -function Get-CsTeamsMeetingPolicy +function Get-CsTeamsNetworkRoamingPolicy { [CmdletBinding()] param( @@ -130100,7 +130289,7 @@ function Get-CsTeamsMeetingPolicy $AsJob ) } -function Get-CsTeamsMessagingPolicy +function Get-CsTeamsNotificationAndFeedsPolicy { [CmdletBinding()] param( @@ -130125,7 +130314,7 @@ function Get-CsTeamsMessagingPolicy $AsJob ) } -function Get-CsTeamsMigrationConfiguration +function Get-CsTeamsPinnedApp { [CmdletBinding()] param( @@ -130150,7 +130339,7 @@ function Get-CsTeamsMigrationConfiguration $AsJob ) } -function Get-CsTeamsMobilityPolicy +function Get-CsTeamsShiftsAppPolicy { [CmdletBinding()] param( @@ -130175,7 +130364,7 @@ function Get-CsTeamsMobilityPolicy $AsJob ) } -function Get-CsTeamsNetworkRoamingPolicy +function Get-CsTeamsShiftsPolicy { [CmdletBinding()] param( @@ -130200,7 +130389,7 @@ function Get-CsTeamsNetworkRoamingPolicy $AsJob ) } -function Get-CsTeamsNotificationAndFeedsPolicy +function Get-CsTeamsSurvivableBranchAppliance { [CmdletBinding()] param( @@ -130225,7 +130414,7 @@ function Get-CsTeamsNotificationAndFeedsPolicy $AsJob ) } -function Get-CsTeamsPinnedApp +function Get-CsTeamsSurvivableBranchAppliancePolicy { [CmdletBinding()] param( @@ -130250,7 +130439,7 @@ function Get-CsTeamsPinnedApp $AsJob ) } -function Get-CsTeamsShiftsAppPolicy +function Get-CsTeamsTargetingPolicy { [CmdletBinding()] param( @@ -130275,7 +130464,7 @@ function Get-CsTeamsShiftsAppPolicy $AsJob ) } -function Get-CsTeamsTargetingPolicy +function Get-CsTeamsTranslationRule { [CmdletBinding()] param( @@ -130300,7 +130489,7 @@ function Get-CsTeamsTargetingPolicy $AsJob ) } -function Get-CsTeamsTranslationRule +function Get-CsTeamsUpdateManagementPolicy { [CmdletBinding()] param( @@ -130717,6 +130906,31 @@ function Get-CsTenantNetworkConfiguration $AsJob ) } +function Get-CsTenantNetworkPostalCode +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $LocalStore, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Filter, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Get-CsTenantNetworkRegion { [CmdletBinding()] @@ -130750,6 +130964,10 @@ function Get-CsTenantNetworkSite [System.Management.Automation.SwitchParameter] $LocalStore, + [Parameter()] + [System.Management.Automation.SwitchParameter] + $ExpandPostalCodes, + [Parameter()] [System.Object] $Identity, @@ -131721,7 +131939,118 @@ function Grant-CsTeamsAppPermissionPolicy $AsJob ) } -function Grant-CsTeamsAppSetupPolicy +function Grant-CsTeamsAppSetupPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $PassThru, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $PolicyName, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Global, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Grant-CsTeamsCallingPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $PassThru, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $PolicyName, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Global, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Grant-CsTeamsCallParkPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $PassThru, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $PolicyName, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Global, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Grant-CsTeamsChannelsPolicy { [CmdletBinding()] param( @@ -131758,7 +132087,7 @@ function Grant-CsTeamsAppSetupPolicy $AsJob ) } -function Grant-CsTeamsCallingPolicy +function Grant-CsTeamsComplianceRecordingPolicy { [CmdletBinding()] param( @@ -131795,7 +132124,7 @@ function Grant-CsTeamsCallingPolicy $AsJob ) } -function Grant-CsTeamsCallParkPolicy +function Grant-CsTeamsCortanaPolicy { [CmdletBinding()] param( @@ -131832,7 +132161,7 @@ function Grant-CsTeamsCallParkPolicy $AsJob ) } -function Grant-CsTeamsChannelsPolicy +function Grant-CsTeamsEmergencyCallingPolicy { [CmdletBinding()] param( @@ -131869,7 +132198,7 @@ function Grant-CsTeamsChannelsPolicy $AsJob ) } -function Grant-CsTeamsComplianceRecordingPolicy +function Grant-CsTeamsEmergencyCallRoutingPolicy { [CmdletBinding()] param( @@ -131906,7 +132235,7 @@ function Grant-CsTeamsComplianceRecordingPolicy $AsJob ) } -function Grant-CsTeamsCortanaPolicy +function Grant-CsTeamsFeedbackPolicy { [CmdletBinding()] param( @@ -131943,7 +132272,7 @@ function Grant-CsTeamsCortanaPolicy $AsJob ) } -function Grant-CsTeamsEmergencyCallingPolicy +function Grant-CsTeamsIPPhonePolicy { [CmdletBinding()] param( @@ -131980,7 +132309,7 @@ function Grant-CsTeamsEmergencyCallingPolicy $AsJob ) } -function Grant-CsTeamsEmergencyCallRoutingPolicy +function Grant-CsTeamsMeetingBroadcastPolicy { [CmdletBinding()] param( @@ -132017,7 +132346,7 @@ function Grant-CsTeamsEmergencyCallRoutingPolicy $AsJob ) } -function Grant-CsTeamsFeedbackPolicy +function Grant-CsTeamsMeetingPolicy { [CmdletBinding()] param( @@ -132054,7 +132383,7 @@ function Grant-CsTeamsFeedbackPolicy $AsJob ) } -function Grant-CsTeamsIPPhonePolicy +function Grant-CsTeamsMessagingPolicy { [CmdletBinding()] param( @@ -132091,7 +132420,7 @@ function Grant-CsTeamsIPPhonePolicy $AsJob ) } -function Grant-CsTeamsMeetingBroadcastPolicy +function Grant-CsTeamsMobilityPolicy { [CmdletBinding()] param( @@ -132128,7 +132457,7 @@ function Grant-CsTeamsMeetingBroadcastPolicy $AsJob ) } -function Grant-CsTeamsMeetingPolicy +function Grant-CsTeamsShiftsPolicy { [CmdletBinding()] param( @@ -132165,7 +132494,7 @@ function Grant-CsTeamsMeetingPolicy $AsJob ) } -function Grant-CsTeamsMessagingPolicy +function Grant-CsTeamsSurvivableBranchAppliancePolicy { [CmdletBinding()] param( @@ -132202,7 +132531,7 @@ function Grant-CsTeamsMessagingPolicy $AsJob ) } -function Grant-CsTeamsMobilityPolicy +function Grant-CsTeamsUpdateManagementPolicy { [CmdletBinding()] param( @@ -134150,6 +134479,51 @@ function New-CsInboundBlockedNumberPattern $AsJob ) } +function New-CsInboundExemptNumberPattern +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Name, + + [Parameter()] + [System.Object] + $Pattern, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Object] + $Enabled, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function New-CsMobilityPolicy { [CmdletBinding()] @@ -134942,6 +135316,10 @@ function New-CsOnlinePSTNGateway { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $Description, + [Parameter()] [System.Object] $GenerateRingingWhileLocatingUser, @@ -136323,6 +136701,10 @@ function New-CsTeamsMeetingPolicy [System.Object] $Description, + [Parameter()] + [System.Object] + $SpeakerAttributionMode, + [Parameter()] [System.Object] $Identity, @@ -136524,6 +136906,10 @@ function New-CsTeamsMessagingPolicy [System.Object] $AllowMemes, + [Parameter()] + [System.Object] + $Description, + [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -136570,7 +136956,7 @@ function New-CsTeamsMessagingPolicy [Parameter()] [System.Object] - $Description, + $ChatPermissionRole, [Parameter()] [System.Object] @@ -136638,13 +137024,197 @@ function New-CsTeamsMobilityPolicy $AsJob ) } -function New-CsTeamsNetworkRoamingPolicy +function New-CsTeamsNetworkRoamingPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Object] + $MediaBitRateKb, + + [Parameter()] + [System.Object] + $AllowIPVideo, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function New-CsTeamsPinnedApp +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Id, + + [Parameter()] + [System.Object] + $Priority, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Parent, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Object] + $Order, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function New-CsTeamsShiftsPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $ShiftNoticeMessageType, + + [Parameter()] + [System.Object] + $ShiftNoticeFrequency, + + [Parameter()] + [System.Object] + $EnableScheduleOwnerPermissions, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $AccessGracePeriodMinutes, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Object] + $ShiftNoticeMessageCustom, + + [Parameter()] + [System.Object] + $AccessType, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $EnableShiftPresence, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function New-CsTeamsSurvivableBranchAppliance +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Fqdn, + + [Parameter()] + [System.Object] + $Site, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function New-CsTeamsSurvivableBranchAppliancePolicy { [CmdletBinding()] param( [Parameter()] [System.Object] - $Description, + $BranchApplianceFqdns, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -136662,14 +137232,6 @@ function New-CsTeamsNetworkRoamingPolicy [System.Management.Automation.SwitchParameter] $InMemory, - [Parameter()] - [System.Object] - $MediaBitRateKb, - - [Parameter()] - [System.Object] - $AllowIPVideo, - [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -136679,17 +137241,21 @@ function New-CsTeamsNetworkRoamingPolicy $AsJob ) } -function New-CsTeamsPinnedApp +function New-CsTeamsTranslationRule { [CmdletBinding()] param( [Parameter()] [System.Object] - $Id, + $Description, [Parameter()] [System.Object] - $Priority, + $Name, + + [Parameter()] + [System.Object] + $Pattern, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -136697,7 +137263,7 @@ function New-CsTeamsPinnedApp [Parameter()] [System.Object] - $Parent, + $Translation, [Parameter()] [System.Object] @@ -136711,10 +137277,6 @@ function New-CsTeamsPinnedApp [System.Management.Automation.SwitchParameter] $InMemory, - [Parameter()] - [System.Object] - $Order, - [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -136724,21 +137286,25 @@ function New-CsTeamsPinnedApp $AsJob ) } -function New-CsTeamsTranslationRule +function New-CsTeamsUpdateManagementPolicy { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $UpdateDayOfWeek, + [Parameter()] [System.Object] $Description, [Parameter()] [System.Object] - $Name, + $UpdateTime, [Parameter()] [System.Object] - $Pattern, + $UpdateTimeOfDay, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -136746,12 +137312,16 @@ function New-CsTeamsTranslationRule [Parameter()] [System.Object] - $Translation, + $AllowManagedUpdates, [Parameter()] [System.Object] $Identity, + [Parameter()] + [System.Object] + $AllowPreview, + [Parameter()] [System.Object] $Tenant, @@ -136941,6 +137511,51 @@ function New-CsTenantDialPlan $AsJob ) } +function New-CsTenantNetworkPostalCode +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Object] + $CountryCode, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $PostalCode, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $InMemory, + + [Parameter()] + [System.Object] + $NetworkSiteID, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function New-CsTenantNetworkRegion { [CmdletBinding()] @@ -137473,10 +138088,6 @@ function Remove-CsCallQueue [System.Management.Automation.SwitchParameter] $Confirm, - [Parameter()] - [System.Object] - $ChannelUserObjectId, - [Parameter()] [System.Object] $Identity, @@ -137756,7 +138367,185 @@ function Remove-CsInboundBlockedNumberPattern $AsJob ) } -function Remove-CsMobilityPolicy +function Remove-CsInboundExemptNumberPattern +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsMobilityPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsOnlineApplicationEndpoint +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $RunFullProvisioningFlow, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $IsInternalRun, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Uri, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Object] + $PhoneNumber, + + [Parameter()] + [System.Object] + $Ring, + + [Parameter()] + [System.Object] + $Audience, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsOnlineApplicationInstanceAssociation +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $DomainController, + + [Parameter()] + [System.Object] + $Identities, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsOnlineAudioConferencingRoutingPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsOnlineDialInConferencingTenantSettings +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Remove-CsOnlineLisCivicAddress { [CmdletBinding()] param( @@ -137766,12 +138555,16 @@ function Remove-CsMobilityPolicy [Parameter()] [System.Object] - $Identity, + $CivicAddressId, [Parameter()] [System.Object] $Tenant, + [Parameter()] + [System.Object] + $DomainController, + [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -137781,45 +138574,25 @@ function Remove-CsMobilityPolicy $AsJob ) } -function Remove-CsOnlineApplicationEndpoint +function Remove-CsOnlineLisLocation { [CmdletBinding()] param( [Parameter()] [System.Object] - $RunFullProvisioningFlow, + $DomainController, [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, - [Parameter()] - [System.Object] - $IsInternalRun, - [Parameter()] [System.Object] $Tenant, [Parameter()] [System.Object] - $Uri, - - [Parameter()] - [System.Object] - $DomainController, - - [Parameter()] - [System.Object] - $PhoneNumber, - - [Parameter()] - [System.Object] - $Ring, - - [Parameter()] - [System.Object] - $Audience, + $LocationId, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137830,25 +138603,37 @@ function Remove-CsOnlineApplicationEndpoint $AsJob ) } -function Remove-CsOnlineApplicationInstanceAssociation +function Remove-CsOnlineLisPort { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $PortID, + + [Parameter()] + [System.Object] + $TenantId, + + [Parameter()] + [System.Object] + $IsDebug, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $Tenant, + $ChassisID, [Parameter()] [System.Object] - $DomainController, + $NCSApiUrl, [Parameter()] [System.Object] - $Identities, + $TargetStore, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137859,21 +138644,33 @@ function Remove-CsOnlineApplicationInstanceAssociation $AsJob ) } -function Remove-CsOnlineAudioConferencingRoutingPolicy +function Remove-CsOnlineLisSubnet { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $TenantId, + + [Parameter()] + [System.Object] + $Subnet, + + [Parameter()] + [System.Object] + $IsDebug, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $Identity, + $TargetStore, [Parameter()] [System.Object] - $Tenant, + $NCSApiUrl, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137884,21 +138681,33 @@ function Remove-CsOnlineAudioConferencingRoutingPolicy $AsJob ) } -function Remove-CsOnlineDialInConferencingTenantSettings +function Remove-CsOnlineLisSwitch { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $TenantId, + + [Parameter()] + [System.Object] + $IsDebug, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $Identity, + $ChassisID, [Parameter()] [System.Object] - $Tenant, + $NCSApiUrl, + + [Parameter()] + [System.Object] + $TargetStore, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137909,25 +138718,33 @@ function Remove-CsOnlineDialInConferencingTenantSettings $AsJob ) } -function Remove-CsOnlineLisCivicAddress +function Remove-CsOnlineLisWirelessAccessPoint { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $TenantId, + + [Parameter()] + [System.Object] + $IsDebug, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $CivicAddressId, + $BSSID, [Parameter()] [System.Object] - $Tenant, + $NCSApiUrl, [Parameter()] [System.Object] - $DomainController, + $TargetStore, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137938,13 +138755,13 @@ function Remove-CsOnlineLisCivicAddress $AsJob ) } -function Remove-CsOnlineLisLocation +function Remove-CsOnlineNumberPortInOrder { [CmdletBinding()] param( [Parameter()] [System.Object] - $DomainController, + $PortInOrderId, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137956,7 +138773,7 @@ function Remove-CsOnlineLisLocation [Parameter()] [System.Object] - $LocationId, + $DomainController, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -137967,37 +138784,21 @@ function Remove-CsOnlineLisLocation $AsJob ) } -function Remove-CsOnlineLisPort +function Remove-CsOnlinePSTNGateway { [CmdletBinding()] param( - [Parameter()] - [System.Object] - $PortID, - - [Parameter()] - [System.Object] - $TenantId, - - [Parameter()] - [System.Object] - $IsDebug, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $ChassisID, - - [Parameter()] - [System.Object] - $NCSApiUrl, + $Identity, [Parameter()] [System.Object] - $TargetStore, + $Tenant, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138008,21 +138809,13 @@ function Remove-CsOnlineLisPort $AsJob ) } -function Remove-CsOnlineLisSubnet +function Remove-CsOnlineSchedule { [CmdletBinding()] param( [Parameter()] [System.Object] - $TenantId, - - [Parameter()] - [System.Object] - $Subnet, - - [Parameter()] - [System.Object] - $IsDebug, + $Id, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138030,11 +138823,11 @@ function Remove-CsOnlineLisSubnet [Parameter()] [System.Object] - $TargetStore, + $Tenant, [Parameter()] [System.Object] - $NCSApiUrl, + $DomainController, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138045,33 +138838,25 @@ function Remove-CsOnlineLisSubnet $AsJob ) } -function Remove-CsOnlineLisSwitch +function Remove-CsOnlineTelephoneNumber { [CmdletBinding()] param( - [Parameter()] - [System.Object] - $TenantId, - - [Parameter()] - [System.Object] - $IsDebug, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $ChassisID, + $TelephoneNumber, [Parameter()] [System.Object] - $NCSApiUrl, + $Tenant, [Parameter()] [System.Object] - $TargetStore, + $DomainController, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138082,33 +138867,21 @@ function Remove-CsOnlineLisSwitch $AsJob ) } -function Remove-CsOnlineLisWirelessAccessPoint +function Remove-CsOnlineVoicemailPolicy { [CmdletBinding()] param( - [Parameter()] - [System.Object] - $TenantId, - - [Parameter()] - [System.Object] - $IsDebug, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $BSSID, - - [Parameter()] - [System.Object] - $NCSApiUrl, + $Identity, [Parameter()] [System.Object] - $TargetStore, + $Tenant, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138119,25 +138892,21 @@ function Remove-CsOnlineLisWirelessAccessPoint $AsJob ) } -function Remove-CsOnlineNumberPortInOrder +function Remove-CsOnlineVoiceRoute { [CmdletBinding()] param( - [Parameter()] - [System.Object] - $PortInOrderId, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $Tenant, + $Identity, [Parameter()] [System.Object] - $DomainController, + $Tenant, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138148,7 +138917,7 @@ function Remove-CsOnlineNumberPortInOrder $AsJob ) } -function Remove-CsOnlinePSTNGateway +function Remove-CsOnlineVoiceRoutingPolicy { [CmdletBinding()] param( @@ -138173,25 +138942,21 @@ function Remove-CsOnlinePSTNGateway $AsJob ) } -function Remove-CsOnlineSchedule +function Remove-CsTeamsAppPermissionPolicy { [CmdletBinding()] param( - [Parameter()] - [System.Object] - $Id, - [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, [Parameter()] [System.Object] - $Tenant, + $Identity, [Parameter()] [System.Object] - $DomainController, + $Tenant, [Parameter()] [System.Management.Automation.SwitchParameter] @@ -138202,7 +138967,7 @@ function Remove-CsOnlineSchedule $AsJob ) } -function Remove-CsOnlineTelephoneNumber +function Remove-CsTeamsAppPreset { [CmdletBinding()] param( @@ -138212,16 +138977,12 @@ function Remove-CsOnlineTelephoneNumber [Parameter()] [System.Object] - $TelephoneNumber, + $Identity, [Parameter()] [System.Object] $Tenant, - [Parameter()] - [System.Object] - $DomainController, - [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -138231,7 +138992,7 @@ function Remove-CsOnlineTelephoneNumber $AsJob ) } -function Remove-CsOnlineVoicemailPolicy +function Remove-CsTeamsAppSetupPolicy { [CmdletBinding()] param( @@ -138256,7 +139017,7 @@ function Remove-CsOnlineVoicemailPolicy $AsJob ) } -function Remove-CsOnlineVoiceRoute +function Remove-CsTeamsCallingPolicy { [CmdletBinding()] param( @@ -138281,7 +139042,7 @@ function Remove-CsOnlineVoiceRoute $AsJob ) } -function Remove-CsOnlineVoiceRoutingPolicy +function Remove-CsTeamsCallParkPolicy { [CmdletBinding()] param( @@ -138306,7 +139067,7 @@ function Remove-CsOnlineVoiceRoutingPolicy $AsJob ) } -function Remove-CsTeamsAppPermissionPolicy +function Remove-CsTeamsChannelsPolicy { [CmdletBinding()] param( @@ -138331,7 +139092,7 @@ function Remove-CsTeamsAppPermissionPolicy $AsJob ) } -function Remove-CsTeamsAppPreset +function Remove-CsTeamsComplianceRecordingApplication { [CmdletBinding()] param( @@ -138356,7 +139117,7 @@ function Remove-CsTeamsAppPreset $AsJob ) } -function Remove-CsTeamsAppSetupPolicy +function Remove-CsTeamsComplianceRecordingPolicy { [CmdletBinding()] param( @@ -138381,7 +139142,7 @@ function Remove-CsTeamsAppSetupPolicy $AsJob ) } -function Remove-CsTeamsCallingPolicy +function Remove-CsTeamsCortanaPolicy { [CmdletBinding()] param( @@ -138406,7 +139167,7 @@ function Remove-CsTeamsCallingPolicy $AsJob ) } -function Remove-CsTeamsCallParkPolicy +function Remove-CsTeamsEmergencyCallingPolicy { [CmdletBinding()] param( @@ -138431,7 +139192,7 @@ function Remove-CsTeamsCallParkPolicy $AsJob ) } -function Remove-CsTeamsChannelsPolicy +function Remove-CsTeamsEmergencyCallRoutingPolicy { [CmdletBinding()] param( @@ -138456,7 +139217,7 @@ function Remove-CsTeamsChannelsPolicy $AsJob ) } -function Remove-CsTeamsComplianceRecordingApplication +function Remove-CsTeamsFeedbackPolicy { [CmdletBinding()] param( @@ -138481,7 +139242,7 @@ function Remove-CsTeamsComplianceRecordingApplication $AsJob ) } -function Remove-CsTeamsComplianceRecordingPolicy +function Remove-CsTeamsIPPhonePolicy { [CmdletBinding()] param( @@ -138506,7 +139267,7 @@ function Remove-CsTeamsComplianceRecordingPolicy $AsJob ) } -function Remove-CsTeamsCortanaPolicy +function Remove-CsTeamsMeetingBroadcastPolicy { [CmdletBinding()] param( @@ -138531,7 +139292,7 @@ function Remove-CsTeamsCortanaPolicy $AsJob ) } -function Remove-CsTeamsEmergencyCallingPolicy +function Remove-CsTeamsMeetingPolicy { [CmdletBinding()] param( @@ -138556,7 +139317,7 @@ function Remove-CsTeamsEmergencyCallingPolicy $AsJob ) } -function Remove-CsTeamsEmergencyCallRoutingPolicy +function Remove-CsTeamsMessagingPolicy { [CmdletBinding()] param( @@ -138581,7 +139342,7 @@ function Remove-CsTeamsEmergencyCallRoutingPolicy $AsJob ) } -function Remove-CsTeamsFeedbackPolicy +function Remove-CsTeamsMobilityPolicy { [CmdletBinding()] param( @@ -138606,7 +139367,7 @@ function Remove-CsTeamsFeedbackPolicy $AsJob ) } -function Remove-CsTeamsIPPhonePolicy +function Remove-CsTeamsNetworkRoamingPolicy { [CmdletBinding()] param( @@ -138631,7 +139392,7 @@ function Remove-CsTeamsIPPhonePolicy $AsJob ) } -function Remove-CsTeamsMeetingBroadcastPolicy +function Remove-CsTeamsNotificationAndFeedsPolicy { [CmdletBinding()] param( @@ -138656,7 +139417,7 @@ function Remove-CsTeamsMeetingBroadcastPolicy $AsJob ) } -function Remove-CsTeamsMeetingPolicy +function Remove-CsTeamsPinnedApp { [CmdletBinding()] param( @@ -138681,7 +139442,7 @@ function Remove-CsTeamsMeetingPolicy $AsJob ) } -function Remove-CsTeamsMessagingPolicy +function Remove-CsTeamsShiftsPolicy { [CmdletBinding()] param( @@ -138706,7 +139467,7 @@ function Remove-CsTeamsMessagingPolicy $AsJob ) } -function Remove-CsTeamsMobilityPolicy +function Remove-CsTeamsSurvivableBranchAppliance { [CmdletBinding()] param( @@ -138731,7 +139492,7 @@ function Remove-CsTeamsMobilityPolicy $AsJob ) } -function Remove-CsTeamsNetworkRoamingPolicy +function Remove-CsTeamsSurvivableBranchAppliancePolicy { [CmdletBinding()] param( @@ -138756,7 +139517,7 @@ function Remove-CsTeamsNetworkRoamingPolicy $AsJob ) } -function Remove-CsTeamsNotificationAndFeedsPolicy +function Remove-CsTeamsTargetingPolicy { [CmdletBinding()] param( @@ -138781,7 +139542,7 @@ function Remove-CsTeamsNotificationAndFeedsPolicy $AsJob ) } -function Remove-CsTeamsPinnedApp +function Remove-CsTeamsTranslationRule { [CmdletBinding()] param( @@ -138806,7 +139567,7 @@ function Remove-CsTeamsPinnedApp $AsJob ) } -function Remove-CsTeamsTargetingPolicy +function Remove-CsTeamsUpdateManagementPolicy { [CmdletBinding()] param( @@ -138831,7 +139592,7 @@ function Remove-CsTeamsTargetingPolicy $AsJob ) } -function Remove-CsTeamsTranslationRule +function Remove-CsTeamsVdiPolicy { [CmdletBinding()] param( @@ -138856,7 +139617,7 @@ function Remove-CsTeamsTranslationRule $AsJob ) } -function Remove-CsTeamsVdiPolicy +function Remove-CsTenantBlockedNumberExceptionPattern { [CmdletBinding()] param( @@ -138881,7 +139642,7 @@ function Remove-CsTeamsVdiPolicy $AsJob ) } -function Remove-CsTenantBlockedNumberExceptionPattern +function Remove-CsTenantCatalogApp { [CmdletBinding()] param( @@ -138906,7 +139667,7 @@ function Remove-CsTenantBlockedNumberExceptionPattern $AsJob ) } -function Remove-CsTenantCatalogApp +function Remove-CsTenantDialPlan { [CmdletBinding()] param( @@ -138931,7 +139692,7 @@ function Remove-CsTenantCatalogApp $AsJob ) } -function Remove-CsTenantDialPlan +function Remove-CsTenantNetworkConfiguration { [CmdletBinding()] param( @@ -138956,7 +139717,7 @@ function Remove-CsTenantDialPlan $AsJob ) } -function Remove-CsTenantNetworkConfiguration +function Remove-CsTenantNetworkPostalCode { [CmdletBinding()] param( @@ -140783,6 +141544,47 @@ function Set-CsInboundBlockedNumberPattern $AsJob ) } +function Set-CsInboundExemptNumberPattern +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Pattern, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $Enabled, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Set-CsIPPhonePolicy { [CmdletBinding()] @@ -142367,6 +143169,10 @@ function Set-CsOnlinePSTNGateway { [CmdletBinding()] param( + [Parameter()] + [System.Object] + $Description, + [Parameter()] [System.Object] $GenerateRingingWhileLocatingUser, @@ -143287,11 +144093,11 @@ function Set-CsTeamsClientConfiguration [Parameter()] [System.Object] - $AllowSkypeBusinessInterop, + $AllowScopedPeopleSearchandAccess, [Parameter()] [System.Object] - $AllowScopedPeopleSearchandAccess, + $AllowSkypeBusinessInterop, [Parameter()] [System.Object] @@ -143313,6 +144119,10 @@ function Set-CsTeamsClientConfiguration [System.Object] $ResourceAccountContentAccess, + [Parameter()] + [System.Object] + $AllowRoleBasedChatPermissions, + [Parameter()] [System.Object] $AllowEgnyte, @@ -144084,6 +144894,10 @@ function Set-CsTeamsMeetingPolicy [System.Object] $Description, + [Parameter()] + [System.Object] + $SpeakerAttributionMode, + [Parameter()] [System.Object] $Identity, @@ -144289,6 +145103,10 @@ function Set-CsTeamsMessagingPolicy [System.Object] $AllowMemes, + [Parameter()] + [System.Object] + $Description, + [Parameter()] [System.Management.Automation.SwitchParameter] $Force, @@ -144335,7 +145153,7 @@ function Set-CsTeamsMessagingPolicy [Parameter()] [System.Object] - $Description, + $ChatPermissionRole, [Parameter()] [System.Object] @@ -144584,6 +145402,133 @@ function Set-CsTeamsShiftsAppPolicy $AsJob ) } +function Set-CsTeamsShiftsPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $ShiftNoticeMessageType, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $ShiftNoticeFrequency, + + [Parameter()] + [System.Object] + $EnableScheduleOwnerPermissions, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $EnableShiftPresence, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $ShiftNoticeMessageCustom, + + [Parameter()] + [System.Object] + $AccessType, + + [Parameter()] + [System.Object] + $AccessGracePeriodMinutes, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Set-CsTeamsSurvivableBranchAppliance +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Site, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} +function Set-CsTeamsSurvivableBranchAppliancePolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $BranchApplianceFqdns, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Set-CsTeamsTargetingPolicy { [CmdletBinding()] @@ -144678,6 +145623,59 @@ function Set-CsTeamsTranslationRule $AsJob ) } +function Set-CsTeamsUpdateManagementPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $UpdateDayOfWeek, + + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Object] + $UpdateTime, + + [Parameter()] + [System.Object] + $UpdateTimeOfDay, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $AllowManagedUpdates, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $AllowPreview, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Set-CsTeamsUpgradeConfiguration { [CmdletBinding()] @@ -145088,6 +146086,10 @@ function Set-CsTenantNetworkConfiguration [System.Management.Automation.SwitchParameter] $Force, + [Parameter()] + [System.Object] + $PostalCodes, + [Parameter()] [System.Management.Automation.SwitchParameter] $Confirm, @@ -145121,6 +146123,47 @@ function Set-CsTenantNetworkConfiguration $AsJob ) } +function Set-CsTenantNetworkPostalCode +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Object] + $Description, + + [Parameter()] + [System.Object] + $CountryCode, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Confirm, + + [Parameter()] + [System.Object] + $Identity, + + [Parameter()] + [System.Object] + $Tenant, + + [Parameter()] + [System.Object] + $NetworkSiteID, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $Force, + + [Parameter()] + [System.Object] + $Instance, + + [Parameter()] + [System.Management.Automation.SwitchParameter] + $AsJob + ) +} function Set-CsTenantNetworkRegion { [CmdletBinding()]