diff --git a/.github/workflows/Global - Integration - INTUNE.yml b/.github/workflows/Global - Integration - INTUNE.yml index 2ed013a189..280c39013a 100644 --- a/.github/workflows/Global - Integration - INTUNE.yml +++ b/.github/workflows/Global - Integration - INTUNE.yml @@ -44,3 +44,12 @@ jobs: git push $SHA = git rev-parse HEAD echo "commitid=$SHA" >> $env:GITHUB_OUTPUT + - name: Commit Integration Tests + shell: pwsh + env: + PUBLIC_USERNAME: ${{ secrets.PUBLIC_USERNAME }} + PUBLIC_PASSWORD: ${{ secrets.PUBLIC_PASSWORD }} + run: | + $CredPassword = ConvertTo-SecureString $env:PUBLIC_PASSWORD -AsPlainText -Force + $Credential = New-Object System.Management.Automation.PSCredential ($env:PUBLIC_USERNAME, $CredPassword) + .\Tests\Integration\Microsoft365DSC\M365DSCIntegration.INTUNE.Tests.ps1 -Credential $Credential diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/1-CreateNewAdministrativeUnit.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/1-CreateNewAdministrativeUnit.ps1 index 0881426df3..4cf799402b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/1-CreateNewAdministrativeUnit.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/1-CreateNewAdministrativeUnit.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example MembershipRuleProcessingState = 'On' MembershipType = 'Dynamic' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/2-CreateNewAdministrativeUnit.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/2-CreateNewAdministrativeUnit.ps1 index 1e2330710c..b67cb39319 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/2-CreateNewAdministrativeUnit.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADAdministrativeUnit/2-CreateNewAdministrativeUnit.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example MailEnabled = $false IsAssignableToRole = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADAdministrativeUnit 'TestUnit' { @@ -43,7 +43,7 @@ Configuration Example } ) Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential DependsOn = "[AADGroup]TestGroup" } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADApplication/1-ConfigureAADApplication.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADApplication/1-ConfigureAADApplication.ps1 index 81125c98bb..dd1149b760 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADApplication/1-ConfigureAADApplication.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADApplication/1-ConfigureAADApplication.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -49,7 +49,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADAuthorizationPolicy/1-ConfigureAADAuthorizationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADAuthorizationPolicy/1-ConfigureAADAuthorizationPolicy.ps1 index a6a96fcaaf..05d87f1232 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADAuthorizationPolicy/1-ConfigureAADAuthorizationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADAuthorizationPolicy/1-ConfigureAADAuthorizationPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example GuestUserRole = 'Guest' PermissionGrantPolicyIdsAssignedToDefaultUserRole = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADConditionalAccessPolicy/1-ConfigureAADConditionalAccessPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADConditionalAccessPolicy/1-ConfigureAADConditionalAccessPolicy.ps1 index d28e1bc7d3..da79502c41 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADConditionalAccessPolicy/1-ConfigureAADConditionalAccessPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADConditionalAccessPolicy/1-ConfigureAADConditionalAccessPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -52,7 +52,7 @@ Configuration Example State = 'disabled' UserRiskLevels = @('High', 'Medium') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackage/1-ConfigureAADEntitlementManagementAccessPackage.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackage/1-ConfigureAADEntitlementManagementAccessPackage.ps1 index ab992540d6..6455ac108f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackage/1-ConfigureAADEntitlementManagementAccessPackage.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackage/1-ConfigureAADEntitlementManagementAccessPackage.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example AccessPackagesIncompatibleWith = @() IncompatibleGroups = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/1-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/1-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 index ef28c84bb4..2913c65588 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/1-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/1-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -51,7 +51,7 @@ Configuration Example ScopeType = 'SpecificConnectedOrganizationSubjects' }; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/2-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/2-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 index 1345fe8565..c6fb6d6d04 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/2-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageAssignmentPolicy/2-ConfigureAADEntitlementManagementAccessPackageAssignmentPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example { AccessPackageId = "5d05114c-b4d9-4ae7-bda6-4bade48e60f2"; CanExtend = $False; - Credential = $credsGlobalAdmin + Credential = $Credscredential Description = "Initial Policy"; DisplayName = "Initial Policy"; DurationInDays = 365; diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalog/1-ConfigureAADEntitlementManagementAccessPackageCatalog.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalog/1-ConfigureAADEntitlementManagementAccessPackageCatalog.ps1 index 89849730f5..4f024557eb 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalog/1-ConfigureAADEntitlementManagementAccessPackageCatalog.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalog/1-ConfigureAADEntitlementManagementAccessPackageCatalog.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example IsExternallyVisible = $True Managedidentity = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalogResource/1-ConfigureAADEntitlementManagementAccessPackageCatalogResource.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalogResource/1-ConfigureAADEntitlementManagementAccessPackageCatalogResource.ps1 index 352439128b..febf099a4b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalogResource/1-ConfigureAADEntitlementManagementAccessPackageCatalogResource.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementAccessPackageCatalogResource/1-ConfigureAADEntitlementManagementAccessPackageCatalogResource.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example ResourceType = 'SharePoint Online Site' Url = 'https://contoso.sharepoint.com/' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementConnectedOrganization/Configure_ConnectedOrganization.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementConnectedOrganization/Configure_ConnectedOrganization.ps1 index ba8d50c2f5..1db51fbd70 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementConnectedOrganization/Configure_ConnectedOrganization.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADEntitlementManagementConnectedOrganization/Configure_ConnectedOrganization.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example InternalSponsors = @("12345678-1234-1234-1234-123456789012"); State = "configured"; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/1-ConfigureAADGroups.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/1-ConfigureAADGroups.ps1 index 2ca791fb71..a76ea022c8 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/1-ConfigureAADGroups.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/1-ConfigureAADGroups.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example MailNickname = "M365DSC" Visibility = "Private" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/2-ConfigureAADGroups.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/2-ConfigureAADGroups.ps1 index 8ff211e7be..6fb9a0bd9a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/2-ConfigureAADGroups.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/2-ConfigureAADGroups.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example Ensure = "Present" IsAssignableToRole = $True AssignedToRole = "Identity Governance Administrator" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/3-ConfigureAADGroups.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/3-ConfigureAADGroups.ps1 index 0b02520295..7da83ee1bf 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroup/3-ConfigureAADGroups.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroup/3-ConfigureAADGroups.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example GroupTypes = @() MailNickname = "M365DSCG" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADGroup 'MyGroups2' { @@ -35,7 +35,7 @@ Configuration Example MailNickname = "M365DSCMG" Ensure = "Present" MemberOf = @("DSCGroup") - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 index 9ae573db23..de3aaa81b0 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example GroupLifetimeInDays = 99 ManagedGroupTypes = "Selected" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroupsNamingPolicy/1-ConfigureGroupsNamingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroupsNamingPolicy/1-ConfigureGroupsNamingPolicy.ps1 index b4f522de59..2a901421fe 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroupsNamingPolicy/1-ConfigureGroupsNamingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroupsNamingPolicy/1-ConfigureGroupsNamingPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example CustomBlockedWordsList = @("CEO", "President") PrefixSuffixNamingRequirement = "[Title]Test[Company][GroupName][Office]Redmond" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADGroupsSettings/1-ConfigureGroupsSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADGroupsSettings/1-ConfigureGroupsSettings.ps1 index 34b1db41ff..e0cdef430d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADGroupsSettings/1-ConfigureGroupsSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADGroupsSettings/1-ConfigureGroupsSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example GuestUsageGuidelinesUrl = "https://contoso.com/guestusage" UsageGuidelinesUrl = "https://contoso.com/usage" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADNamedLocationPolicy/1-ConfigureAADNamedLocationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADNamedLocationPolicy/1-ConfigureAADNamedLocationPolicy.ps1 index 7b7eeb094b..6f3f3f214b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADNamedLocationPolicy/1-ConfigureAADNamedLocationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADNamedLocationPolicy/1-ConfigureAADNamedLocationPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example IsTrusted = $True OdataType = "#microsoft.graph.ipNamedLocation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADNamedLocationPolicy 'AllowedCountries' { @@ -30,7 +30,7 @@ Configuration Example IncludeUnknownCountriesAndRegions = $False OdataType = "#microsoft.graph.countryNamedLocation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADRoleDefinition/1-ConfigureAADRoleDefinition.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADRoleDefinition/1-ConfigureAADRoleDefinition.ps1 index beded633c1..d5b7ab71ed 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADRoleDefinition/1-ConfigureAADRoleDefinition.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADRoleDefinition/1-ConfigureAADRoleDefinition.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example RolePermissions = "microsoft.directory/applicationPolicies/allProperties/read","microsoft.directory/applicationPolicies/allProperties/update","microsoft.directory/applicationPolicies/basic/update" Version = "1.0" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADRoleEligibilityScheduleRequest/1-CreateNewAADRoleEligibilityScheduleRequest.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADRoleEligibilityScheduleRequest/1-CreateNewAADRoleEligibilityScheduleRequest.ps1 index 79153cf4ba..f338de89dc 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADRoleEligibilityScheduleRequest/1-CreateNewAADRoleEligibilityScheduleRequest.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADRoleEligibilityScheduleRequest/1-CreateNewAADRoleEligibilityScheduleRequest.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example AADRoleEligibilityScheduleRequest "MyRequest" { Action = "AdminAssign"; - Credential = $credsGlobalAdmin; + Credential = $Credscredential; DirectoryScopeId = "/"; Ensure = "Present"; IsValidationOnly = $False; diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADRoleSetting/1-ConfigureAADConditionalAccessPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADRoleSetting/1-ConfigureAADConditionalAccessPolicy.ps1 index 9c79a55376..d95f672db7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADRoleSetting/1-ConfigureAADConditionalAccessPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADRoleSetting/1-ConfigureAADConditionalAccessPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADServicePrincipal/1-ConfigureAADServicePrincipal.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADServicePrincipal/1-ConfigureAADServicePrincipal.ps1 index 44c9bc7b43..c406e7a9ed 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADServicePrincipal/1-ConfigureAADServicePrincipal.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADServicePrincipal/1-ConfigureAADServicePrincipal.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example ServicePrincipalType = "Application" Tags = "{WindowsAzureActiveDirectoryIntegratedApp}" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADTokenLifetimePolicy/1-ConfigureAADTokenLifetimePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADTokenLifetimePolicy/1-ConfigureAADTokenLifetimePolicy.ps1 index 6093d4e945..f2368d068c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADTokenLifetimePolicy/1-ConfigureAADTokenLifetimePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADTokenLifetimePolicy/1-ConfigureAADTokenLifetimePolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Definition = @('{"TokenIssuancePolicy":{"Version": 1,"SigningAlgorithm": "http://www.w3.org/2000/09/xmldsig#rsa-sha1","TokenResponseSigningPolicy": "TokenOnly","SamlTokenVersion": "2.0"}}') IsOrganizationDefault = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADUser/1-CreateNewAADUser.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADUser/1-CreateNewAADUser.ps1 index 8ba20a8cfa..5fa9d85398 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADUser/1-CreateNewAADUser.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADUser/1-CreateNewAADUser.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example LicenseAssignment = @("O365dsc1:ENTERPRISEPREMIUM") UsageLocation = "US" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/AADUser/2-CreateNewAADUser.ps1 b/Modules/Microsoft365DSC/Examples/Resources/AADUser/2-CreateNewAADUser.ps1 index 3455c2a095..e95c4a5c89 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/AADUser/2-CreateNewAADUser.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/AADUser/2-CreateNewAADUser.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example MemberOf = @('Group-M365-Standard-License', 'Group-PowerBI-Pro-License') UsageLocation = "US" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAcceptedDomain/1-ConfigureAcceptedDomain.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAcceptedDomain/1-ConfigureAcceptedDomain.ps1 index dcb5491b6a..6e4c8efad3 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAcceptedDomain/1-ConfigureAcceptedDomain.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAcceptedDomain/1-ConfigureAcceptedDomain.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example Identity = 'contoso.com' DomainType = "Authoritative" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOActiveSyncDeviceAccessRule/1-ConfigureActiveSyncDeviceAccessRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOActiveSyncDeviceAccessRule/1-ConfigureActiveSyncDeviceAccessRule.ps1 index e59038e81c..6821be1b73 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOActiveSyncDeviceAccessRule/1-ConfigureActiveSyncDeviceAccessRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOActiveSyncDeviceAccessRule/1-ConfigureActiveSyncDeviceAccessRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example QueryString = "iOS 6.1 10B145" AccessLevel = "Allow" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAddressBookPolicy/1-ConfigureAddressBookPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAddressBookPolicy/1-ConfigureAddressBookPolicy.ps1 index 2d382edfc8..909eabd2df 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAddressBookPolicy/1-ConfigureAddressBookPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAddressBookPolicy/1-ConfigureAddressBookPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example OfflineAddressBook = "\Fabrikam-All-OAB" GlobalAddressList = "\All Fabrikam" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAddressList/1-ConfigureAddressList.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAddressList/1-ConfigureAddressList.ps1 index 84a9eda3d7..60b64c8834 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAddressList/1-ConfigureAddressList.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAddressList/1-ConfigureAddressList.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example ConditionalStateOrProvince = "US" IncludedRecipients = "AllRecipients" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishPolicy/1-ConfigureAntiPhishPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishPolicy/1-ConfigureAntiPhishPolicy.ps1 index dc9d6da65a..bf00f6d7e7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishPolicy/1-ConfigureAntiPhishPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishPolicy/1-ConfigureAntiPhishPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -37,7 +37,7 @@ Configuration Example EnableUnusualCharactersSafetyTips = $null TargetedUserActionRecipients = $null Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishRule/1-ConfigureAntiPhishRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishRule/1-ConfigureAntiPhishRule.ps1 index 36d530f6f0..37d4883a0d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishRule/1-ConfigureAntiPhishRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAntiPhishRule/1-ConfigureAntiPhishRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com") Priority = 1 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOApplicationAccessPolicy/1-ConfigureApplicationAccessPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOApplicationAccessPolicy/1-ConfigureApplicationAccessPolicy.ps1 index 9253f0ad80..a89163017b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOApplicationAccessPolicy/1-ConfigureApplicationAccessPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOApplicationAccessPolicy/1-ConfigureApplicationAccessPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example PolicyScopeGroupId = "Engineering Staff" Description = "Engineering Group Policy" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAtpPolicyForO365/1-ConfigureAtpPolicyForO365.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAtpPolicyForO365/1-ConfigureAtpPolicyForO365.ps1 index a096ce656b..1f4d1330c5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAtpPolicyForO365/1-ConfigureAtpPolicyForO365.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAtpPolicyForO365/1-ConfigureAtpPolicyForO365.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example IsSingleInstance = "Yes" EnableATPForSPOTeamsODB = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAuthenticationPolicy/1-ConfigureAuthenticationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAuthenticationPolicy/1-ConfigureAuthenticationPolicy.ps1 index 364f81158c..27c4ae4442 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAuthenticationPolicy/1-ConfigureAuthenticationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAuthenticationPolicy/1-ConfigureAuthenticationPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example AllowBasicAuthSmtp = $False AllowBasicAuthWebServices = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityAddressSpace/1-ConfigureAvailabilityAddressSpace.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityAddressSpace/1-ConfigureAvailabilityAddressSpace.ps1 index ecf9905f67..ab8f6d89fa 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityAddressSpace/1-ConfigureAvailabilityAddressSpace.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityAddressSpace/1-ConfigureAvailabilityAddressSpace.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example ForestName = 'example.contoso.com' TargetAutodiscoverEpr = 'https://contoso.com/autodiscover/autodiscover.xml' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityConfig/1-ConfigureAvailabilityConfig.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityConfig/1-ConfigureAvailabilityConfig.ps1 index 5058f07ff2..67e8438f81 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityConfig/1-ConfigureAvailabilityConfig.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOAvailabilityConfig/1-ConfigureAvailabilityConfig.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example { OrgWideAccount = "admin@contoso.onmicrosoft.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxPlan/1-ConfigureCASMailboxPlan.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxPlan/1-ConfigureCASMailboxPlan.ps1 index b12b68a3cd..6d124c104e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxPlan/1-ConfigureCASMailboxPlan.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxPlan/1-ConfigureCASMailboxPlan.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Identity = $CASIdentity ImapEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxSettings/1-ConfigureCASMailboxSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxSettings/1-ConfigureCASMailboxSettings.ps1 index 8903d8ac9f..7e76bf9a67 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxSettings/1-ConfigureCASMailboxSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOCASMailboxSettings/1-ConfigureCASMailboxSettings.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -46,7 +46,7 @@ Configuration Example ShowGalAsDefaultView = $True UniversalOutlookEnabled = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOClientAccessRule/1-ConfigureClientAccessRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOClientAccessRule/1-ConfigureClientAccessRule.ps1 index 920835775e..796c7e53c4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOClientAccessRule/1-ConfigureClientAccessRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOClientAccessRule/1-ConfigureClientAccessRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXODataClassification/1-ConfigureDataClassification.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXODataClassification/1-ConfigureDataClassification.ps1 index e937a7b522..406907f169 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXODataClassification/1-ConfigureDataClassification.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXODataClassification/1-ConfigureDataClassification.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Locale = 'fr' IsDefault = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXODataEncryptionPolicy/1-ConfigureDataEncryptionPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXODataEncryptionPolicy/1-ConfigureDataEncryptionPolicy.ps1 index 5c726720c4..4f7d7e5e58 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXODataEncryptionPolicy/1-ConfigureDataEncryptionPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXODataEncryptionPolicy/1-ConfigureDataEncryptionPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Description = 'All Mailboxes of users in the US' Enabled = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXODkimSigningConfig/1-ConfigureDkimSigningConfig.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXODkimSigningConfig/1-ConfigureDkimSigningConfig.ps1 index b14f7cc703..76dca250e0 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXODkimSigningConfig/1-ConfigureDkimSigningConfig.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXODkimSigningConfig/1-ConfigureDkimSigningConfig.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example BodyCanonicalization = "Relaxed" AdminDisplayName = "" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOEmailAddressPolicy/1-ConfigureEmailAddressPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOEmailAddressPolicy/1-ConfigureEmailAddressPolicy.ps1 index db26baa837..08e1fc7bad 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOEmailAddressPolicy/1-ConfigureEmailAddressPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOEmailAddressPolicy/1-ConfigureEmailAddressPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example ManagedByFilter = "" Priority = "Lowest" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOGlobalAddressList/1-ConfigureGlobalAddressList.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOGlobalAddressList/1-ConfigureGlobalAddressList.ps1 index ae8eb4cd60..88f004d8e2 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOGlobalAddressList/1-ConfigureGlobalAddressList.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOGlobalAddressList/1-ConfigureGlobalAddressList.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example ConditionalDepartment = "Human Resources" ConditionalStateOrProvince = "Washington" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedConnectionFilterPolicy/1-ConfigureHostedConnectionFilterPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedConnectionFilterPolicy/1-ConfigureHostedConnectionFilterPolicy.ps1 index 4f0fb53c5a..8f22f2840c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedConnectionFilterPolicy/1-ConfigureHostedConnectionFilterPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedConnectionFilterPolicy/1-ConfigureHostedConnectionFilterPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example IPBlockList = @() MakeDefault = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterPolicy/1-ConfigureHostedContentFilterPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterPolicy/1-ConfigureHostedContentFilterPolicy.ps1 index 1d6d900a9c..994279d2bd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterPolicy/1-ConfigureHostedContentFilterPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterPolicy/1-ConfigureHostedContentFilterPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -60,7 +60,7 @@ Configuration Example TestModeAction = "None" TestModeBccToRecipients = @() Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterRule/1-ConfigureHostedContentFilterRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterRule/1-ConfigureHostedContentFilterRule.ps1 index bb2c4150e8..6e3d3da7a5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterRule/1-ConfigureHostedContentFilterRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedContentFilterRule/1-ConfigureHostedContentFilterRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example ExceptIfSentToMemberOf = "Contoso Human Resources" HostedContentFilterPolicy = "Default" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterPolicy/1-ConfigureHostedOutboundSpamFilterPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterPolicy/1-ConfigureHostedOutboundSpamFilterPolicy.ps1 index 22a20f0ab7..faabfc4d7c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterPolicy/1-ConfigureHostedOutboundSpamFilterPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterPolicy/1-ConfigureHostedOutboundSpamFilterPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example RecipientLimitInternalPerHour = 0 RecipientLimitPerDay = 0 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterRule/1-ConfigureHostedOutboundSpamFilterRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterRule/1-ConfigureHostedOutboundSpamFilterRule.ps1 index 0bea92f016..336307c6e8 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterRule/1-ConfigureHostedOutboundSpamFilterRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOHostedOutboundSpamFilterRule/1-ConfigureHostedOutboundSpamFilterRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example ExceptIfFrom = "Elizabeth Brunner" HostedOutboundSpamFilterPolicy = "Default" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOIRMConfiguration/1-ConfigureIRMConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOIRMConfiguration/1-ConfigureIRMConfiguration.ps1 index ba573b550b..977cbf1eef 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOIRMConfiguration/1-ConfigureIRMConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOIRMConfiguration/1-ConfigureIRMConfiguration.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example SimplifiedClientAccessEncryptOnlyDisabled = $True TransportDecryptionSetting = 'Mandatory' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOInboundConnector/1-ConfigureInboundConnector.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOInboundConnector/1-ConfigureInboundConnector.ps1 index 6d852b5138..a08678dd8b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOInboundConnector/1-ConfigureInboundConnector.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOInboundConnector/1-ConfigureInboundConnector.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example TlsSenderCertificateName = "contoso.com" TreatMessagesAsInternal = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOIntraOrganizationConnector/1-ConfigureIntraOrganizationConnector.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOIntraOrganizationConnector/1-ConfigureIntraOrganizationConnector.ps1 index d79950ff11..f670d356e4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOIntraOrganizationConnector/1-ConfigureIntraOrganizationConnector.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOIntraOrganizationConnector/1-ConfigureIntraOrganizationConnector.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example TargetAddressDomains = "Cloud1.contoso.com","Cloud2.contoso.com" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOJournalRule/1-CreateJournalRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOJournalRule/1-CreateJournalRule.ps1 index d432b2c046..46d4a9ac00 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOJournalRule/1-CreateJournalRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOJournalRule/1-CreateJournalRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Name = "Send to John" RuleScope = "Global" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMailTips/1-ConfigureMailtips.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMailTips/1-ConfigureMailtips.ps1 index f112ffb1e4..25b357232c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMailTips/1-ConfigureMailtips.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMailTips/1-ConfigureMailtips.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example MailTipsMailboxSourcedTipsEnabled = $True MailTipsExternalRecipientsTipsEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxAutoReplyConfiguration/1-ConfigureMailboxAutoReplyConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxAutoReplyConfiguration/1-ConfigureMailboxAutoReplyConfiguration.ps1 index db26baa837..08e1fc7bad 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxAutoReplyConfiguration/1-ConfigureMailboxAutoReplyConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxAutoReplyConfiguration/1-ConfigureMailboxAutoReplyConfiguration.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example ManagedByFilter = "" Priority = "Lowest" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxPlan/1-ConfigureMailboxPlan.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxPlan/1-ConfigureMailboxPlan.ps1 index 5e794067c6..6d01ededb7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxPlan/1-ConfigureMailboxPlan.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxPlan/1-ConfigureMailboxPlan.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example ProhibitSendReceiveQuota = "100 GB (107,374,182,400 bytes)"; RetainDeletedItemsFor = "14.00:00:00"; RoleAssignmentPolicy = "Default Role Assignment Policy"; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxSettings/1-ConfigureMailboxSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxSettings/1-ConfigureMailboxSettings.ps1 index 85900a4959..615e477505 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxSettings/1-ConfigureMailboxSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMailboxSettings/1-ConfigureMailboxSettings.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example TimeZone = 'Eastern Standard Time' Locale = 'fr-CA' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterPolicy/1-ConfigureMalwareFilterPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterPolicy/1-ConfigureMalwareFilterPolicy.ps1 index 43b9c422af..aeaed230e3 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterPolicy/1-ConfigureMalwareFilterPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterPolicy/1-ConfigureMalwareFilterPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example QuarantineTag = "AdminOnlyAccessPolicy" ZapEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterRule/1-ConfigureMalwareFilterRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterRule/1-ConfigureMalwareFilterRule.ps1 index c123f2b8a8..ee7f700720 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterRule/1-ConfigureMalwareFilterRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMalwareFilterRule/1-ConfigureMalwareFilterRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example Enabled = $True RecipientDomainIs = "contoso.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOManagementRole/1-ConfigureManagementRole.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOManagementRole/1-ConfigureManagementRole.ps1 index 49166c2c07..86dac1533c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOManagementRole/1-ConfigureManagementRole.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOManagementRole/1-ConfigureManagementRole.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Description = "" Parent = "contoso.onmicrosoft.com\MyProfileInformation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMessageClassification/1-ConfigureMessageClassification.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMessageClassification/1-ConfigureMessageClassification.ps1 index 8a376746a8..98b2b94373 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMessageClassification/1-ConfigureMessageClassification.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMessageClassification/1-ConfigureMessageClassification.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example SenderDescription = "Shown to senders" RetainClassificationEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOMobileDeviceMailboxPolicy/1-ConfigureMobileDeviceMailboxPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOMobileDeviceMailboxPolicy/1-ConfigureMobileDeviceMailboxPolicy.ps1 index 57171b5399..ae57ee981f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOMobileDeviceMailboxPolicy/1-ConfigureMobileDeviceMailboxPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOMobileDeviceMailboxPolicy/1-ConfigureMobileDeviceMailboxPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example UNCAccessEnabled = $True WSSAccessEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOMEConfiguration/1-ConfigureOMEConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOMEConfiguration/1-ConfigureOMEConfiguration.ps1 index 83a73f5c06..67044383ae 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOMEConfiguration/1-ConfigureOMEConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOMEConfiguration/1-ConfigureOMEConfiguration.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -27,7 +27,7 @@ Configuration Example PortalText = "This portal is encrypted." SocialIdSignIn = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOfflineAddressBook/1-ConfigureEXOOfflineAddressBook.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOfflineAddressBook/1-ConfigureEXOOfflineAddressBook.ps1 index 0b74e1d5da..2c911527ce 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOfflineAddressBook/1-ConfigureEXOOfflineAddressBook.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOfflineAddressBook/1-ConfigureEXOOfflineAddressBook.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example DiffRetentionPeriod = "30" IsDefault = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOnPremisesOrganization/1-ConfigureOnPremisesOrganization.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOnPremisesOrganization/1-ConfigureOnPremisesOrganization.ps1 index baba91d78d..437b7ee3f1 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOnPremisesOrganization/1-ConfigureOnPremisesOrganization.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOnPremisesOrganization/1-ConfigureOnPremisesOrganization.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example OrganizationName = 'Contoso' OutboundConnector = 'Outbound to Contoso' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationConfig/1-ConfigureOrganizationSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationConfig/1-ConfigureOrganizationSettings.ps1 index f4cf8aa01e..522bc5728d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationConfig/1-ConfigureOrganizationSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationConfig/1-ConfigureOrganizationSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -77,7 +77,7 @@ Configuration Example AutoExpandingArchive = $null ConnectorsEnabledForSharepoint = $True ReadTrackingEnabled = $False - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationRelationship/1-ConfigureOrganizationRelationship.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationRelationship/1-ConfigureOrganizationRelationship.ps1 index 179558a30d..0692bc9687 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationRelationship/1-ConfigureOrganizationRelationship.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOrganizationRelationship/1-ConfigureOrganizationRelationship.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example TargetApplicationUri = "mail.contoso.com" TargetAutodiscoverEpr = "https://mail.contoso.com/autodiscover/autodiscover.svc/wssecurity" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOutboundConnector/1-ConfigureOutboundConnector.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOutboundConnector/1-ConfigureOutboundConnector.ps1 index a4c2d429b8..d1d7bf88d2 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOutboundConnector/1-ConfigureOutboundConnector.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOutboundConnector/1-ConfigureOutboundConnector.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example TlsSettings = "DomainValidation" UseMxRecord = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOOwaMailboxPolicy/1-ConfigureOwaMailboxPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOOwaMailboxPolicy/1-ConfigureOwaMailboxPolicy.ps1 index a9723afd76..7d4bae417f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOOwaMailboxPolicy/1-ConfigureOwaMailboxPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOOwaMailboxPolicy/1-ConfigureOwaMailboxPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -90,7 +90,7 @@ Configuration Example WeatherEnabled = $True WebPartsFrameOptionsType = "SameOrigin" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOPartnerApplication/1-ConfigurePartnerApplication.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOPartnerApplication/1-ConfigurePartnerApplication.ps1 index a0aea1bbfb..044d825ba0 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOPartnerApplication/1-ConfigurePartnerApplication.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOPartnerApplication/1-ConfigurePartnerApplication.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example AccountType = "OrganizationalAccount" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOPerimeterConfiguration/1-ConfigurePerimeterConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOPerimeterConfiguration/1-ConfigurePerimeterConfiguration.ps1 index 547160b0a4..6f4a9e1640 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOPerimeterConfiguration/1-ConfigurePerimeterConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOPerimeterConfiguration/1-ConfigurePerimeterConfiguration.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example IsSingleInstance = 'Yes' GatewayIPAddresses = '123.0.0.1' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOPolicyTipConfig/1-ConfigurePolicyTipConfig.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOPolicyTipConfig/1-ConfigurePolicyTipConfig.ps1 index 4f03760d3f..1c948d9891 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOPolicyTipConfig/1-ConfigurePolicyTipConfig.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOPolicyTipConfig/1-ConfigurePolicyTipConfig.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Name = "en\NotifyOnly" Value = "This message contains content that is restricted by Contoso company policy." Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOQuarantinePolicy/1-ConfigureQuarantinePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOQuarantinePolicy/1-ConfigureQuarantinePolicy.ps1 index 8ebda06451..50af10b486 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOQuarantinePolicy/1-ConfigureQuarantinePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOQuarantinePolicy/1-ConfigureQuarantinePolicy.ps1 @@ -8,9 +8,9 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) - $OrganizationName = $credsGlobalAdmin.UserName.Split('@')[1] + $OrganizationName = $Credscredential.UserName.Split('@')[1] Import-DscResource -ModuleName Microsoft365DSC node localhost @@ -21,7 +21,7 @@ Configuration Example ESNEnabled = $False; Identity = "$OrganizationName\DefaultFullAccessPolicy"; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXORemoteDomain/1-ConfigureRemoteDomain.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXORemoteDomain/1-ConfigureRemoteDomain.ps1 index 55976edbed..9bd7084585 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXORemoteDomain/1-ConfigureRemoteDomain.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXORemoteDomain/1-ConfigureRemoteDomain.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -37,7 +37,7 @@ Configuration Example TrustedMailOutboundEnabled = $False UseSimpleDisplayName = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOResourceConfiguration/1-ConfigureResourceConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOResourceConfiguration/1-ConfigureResourceConfiguration.ps1 index ad2829ac3d..fe354bf120 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOResourceConfiguration/1-ConfigureResourceConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOResourceConfiguration/1-ConfigureResourceConfiguration.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example IsSingleInstance = 'Yes' ResourcePropertySchema = @('Room/TV', 'Equipment/Laptop') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXORoleAssignmentPolicy/1-ConfigureRoleAssignmentPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXORoleAssignmentPolicy/1-ConfigureRoleAssignmentPolicy.ps1 index 96802616eb..4841f189bd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXORoleAssignmentPolicy/1-ConfigureRoleAssignmentPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXORoleAssignmentPolicy/1-ConfigureRoleAssignmentPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example IsDefault = $True Roles = @("My Marketplace Apps","MyVoiceMail","MyDistributionGroups","MyRetentionPolicies","MyContactInformation","MyBaseOptions","MyTextMessaging","MyDistributionGroupMembership","MyProfileInformation","My Custom Apps","My ReadWriteMailbox Apps") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXORoleGroup/1-ConfigureRoleGroup.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXORoleGroup/1-ConfigureRoleGroup.ps1 index b0bdc43549..294bbdbcd6 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXORoleGroup/1-ConfigureRoleGroup.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXORoleGroup/1-ConfigureRoleGroup.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Members = @("Exchange Administrator") Roles = @("Address Lists") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentPolicy/1-ConfigureSafeAttachmentPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentPolicy/1-ConfigureSafeAttachmentPolicy.ps1 index 74bd6c1087..486bd307dd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentPolicy/1-ConfigureSafeAttachmentPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentPolicy/1-ConfigureSafeAttachmentPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Redirect = $True RedirectAddress = "admin@contoso.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentRule/1-ConfigureSafeAttachmentRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentRule/1-ConfigureSafeAttachmentRule.ps1 index 5cff00ea86..5e44a65fd5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentRule/1-ConfigureSafeAttachmentRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeAttachmentRule/1-ConfigureSafeAttachmentRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example SafeAttachmentPolicy = "Research Block Attachments" SentToMemberOf = "Research Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksPolicy/1-ConfigureSafeLinksPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksPolicy/1-ConfigureSafeLinksPolicy.ps1 index 9dd60a3cdd..c0f0456700 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksPolicy/1-ConfigureSafeLinksPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksPolicy/1-ConfigureSafeLinksPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example ScanUrls = $True UseTranslatedNotificationText = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksRule/1-ConfigureSafeLinksRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksRule/1-ConfigureSafeLinksRule.ps1 index 32e59759b2..b239e80793 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksRule/1-ConfigureSafeLinksRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSafeLinksRule/1-ConfigureSafeLinksRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example SafeLinksPolicy = "Research Block URL" SentToMemberOf = "Research Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSharedMailbox/1 - CreateSharedMailbox.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSharedMailbox/1 - CreateSharedMailbox.ps1 index ae633f1d84..1e3a12deee 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSharedMailbox/1 - CreateSharedMailbox.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSharedMailbox/1 - CreateSharedMailbox.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example PrimarySMTPAddress = "Test@O365DSC1.onmicrosoft.com" EmailAddresses = @("Joufflu@o365dsc1.onmicrosoft.com", "Gilles@O365dsc1.onmicrosoft.com") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOSharingPolicy/1-ConfigureSharingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOSharingPolicy/1-ConfigureSharingPolicy.ps1 index a8f2a02854..9d86681134 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOSharingPolicy/1-ConfigureSharingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOSharingPolicy/1-ConfigureSharingPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Domains = @("Anonymous:CalendarSharingFreeBusyReviewer", "*:CalendarSharingFreeBusySimple") Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOTransportConfig/1-ConfigureTransportSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOTransportConfig/1-ConfigureTransportSettings.ps1 index 19131a3a0f..839f40fe2e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOTransportConfig/1-ConfigureTransportSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOTransportConfig/1-ConfigureTransportSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -38,7 +38,7 @@ Configuration Example ReplyAllStormProtectionEnabled = $True; Rfc2231EncodingEnabled = $False; SmtpClientAuthenticationDisabled = $True; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/EXOTransportRule/1-ConfigureTransportRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/EXOTransportRule/1-ConfigureTransportRule.ps1 index 2daf37d626..4d6573cdd3 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/EXOTransportRule/1-ConfigureTransportRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/EXOTransportRule/1-ConfigureTransportRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example RejectMessageReasonText = "Messages sent between the Sales and Brokerage departments are strictly prohibited." Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneASRRulesPolicyWindows10/1-ConfigureIntuneASRRulesPolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneASRRulesPolicyWindows10/1-ConfigureIntuneASRRulesPolicyWindows10.ps1 index 78f6d1f573..ea6c10c192 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneASRRulesPolicyWindows10/1-ConfigureIntuneASRRulesPolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneASRRulesPolicyWindows10/1-ConfigureIntuneASRRulesPolicyWindows10.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -40,7 +40,7 @@ Configuration Example UntrustedExecutableType = 'block' UntrustedUSBProcessType = 'block' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy/1-ConfigureIntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy/1-ConfigureIntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.ps1 index fa0b3f5bd8..9ecfa62819 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy/1-ConfigureIntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy/1-ConfigureIntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example DisplayName = "Account Protection LAPS Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalUserGroupMembershipPolicy/1-ConfigureIntuneAccountProtectionLocalUserGroupMembershipPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalUserGroupMembershipPolicy/1-ConfigureIntuneAccountProtectionLocalUserGroupMembershipPolicy.ps1 index fea7287275..93dd6cca9a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalUserGroupMembershipPolicy/1-ConfigureIntuneAccountProtectionLocalUserGroupMembershipPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionLocalUserGroupMembershipPolicy/1-ConfigureIntuneAccountProtectionLocalUserGroupMembershipPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example DisplayName = "Account Protection LUGM Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalUserGroupMembershipPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionPolicy/1-ConfigureIntuneAccountProtectionPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionPolicy/1-ConfigureIntuneAccountProtectionPolicy.ps1 index 772aa6636a..61d6256ace 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionPolicy/1-ConfigureIntuneAccountProtectionPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAccountProtectionPolicy/1-ConfigureIntuneAccountProtectionPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example PinMinimumLength = 5 PinSpecialCharactersUsage = 'required' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAntivirusPolicyWindows10SettingCatalog/1-ConfigureIntuneAntivirusPolicyWindows10SettingCatalog.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAntivirusPolicyWindows10SettingCatalog/1-ConfigureIntuneAntivirusPolicyWindows10SettingCatalog.ps1 index b6724a42c6..3e86dab3c5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAntivirusPolicyWindows10SettingCatalog/1-ConfigureIntuneAntivirusPolicyWindows10SettingCatalog.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAntivirusPolicyWindows10SettingCatalog/1-ConfigureIntuneAntivirusPolicyWindows10SettingCatalog.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -29,7 +29,7 @@ Configuration Example excludedprocesses = @('processes.exe', 'process2.exe') templateId = '45fea5e9-280d-4da1-9792-fb5736da0ca9_1' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-NewAppConfigurationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-NewAppConfigurationPolicy.ps1 index c080c5d39f..8f2dc7da1c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-NewAppConfigurationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-NewAppConfigurationPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example DisplayName = 'ContosoNew' Description = 'New Contoso Policy' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-RemoveAppConfigurationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-RemoveAppConfigurationPolicy.ps1 index e717dbfefb..fb86aff379 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-RemoveAppConfigurationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppConfigurationPolicy/1-RemoveAppConfigurationPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example DisplayName = 'ContosoOld' Description = 'Old Contoso Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyAndroid/1-ConfigureAppProtectionPolicyAndroid.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyAndroid/1-ConfigureAppProtectionPolicyAndroid.ps1 index 57fc734fce..e38fa8a20a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyAndroid/1-ConfigureAppProtectionPolicyAndroid.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyAndroid/1-ConfigureAppProtectionPolicyAndroid.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -40,7 +40,7 @@ Configuration Example SaveAsBlocked = $True SimplePinBlocked = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyiOS/1-New iOS App Protection Policy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyiOS/1-New iOS App Protection Policy.ps1 index 2be60d404c..5379a3017a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyiOS/1-New iOS App Protection Policy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAppProtectionPolicyiOS/1-New iOS App Protection Policy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -43,7 +43,7 @@ Configuration Example SaveAsBlocked = $True SimplePinBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneApplicationControlPolicyWindows10/1-ConfigureApplicationControlPolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneApplicationControlPolicyWindows10/1-ConfigureApplicationControlPolicyWindows10.ps1 index 260ca7e525..4a504be881 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneApplicationControlPolicyWindows10/1-ConfigureApplicationControlPolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneApplicationControlPolicyWindows10/1-ConfigureApplicationControlPolicyWindows10.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example SmartScreenBlockOverrideForFiles = $True SmartScreenEnableInShell = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager/1-ConfigureIntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager/1-ConfigureIntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.ps1 index 31d2c9890b..54eb93386f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager/1-ConfigureIntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager/1-ConfigureIntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCategory/1-NewDeviceCategory.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCategory/1-NewDeviceCategory.ps1 index 354f87c2cf..2391ba3dbb 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCategory/1-NewDeviceCategory.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCategory/1-NewDeviceCategory.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example DisplayName = 'Contoso' Description = 'Contoso Category' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCleanupRule/1-SetDeviceCleanupRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCleanupRule/1-SetDeviceCleanupRule.ps1 index 5299c98ef4..15799b6672 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCleanupRule/1-SetDeviceCleanupRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCleanupRule/1-SetDeviceCleanupRule.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example IsSingleInstance = 'Yes' DeviceInactivityBeforeRetirementInDays = 30 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/1-NewDeviceCompliancePolicyAndroid.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/1-NewDeviceCompliancePolicyAndroid.ps1 index e8a97c8c93..edcbd51b34 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/1-NewDeviceCompliancePolicyAndroid.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/1-NewDeviceCompliancePolicyAndroid.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -37,7 +37,7 @@ Configuration Example SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/2-RemoveDeviceCompliancePolicyAndroid.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/2-RemoveDeviceCompliancePolicyAndroid.ps1 index 274c2314dd..5665b172cc 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/2-RemoveDeviceCompliancePolicyAndroid.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroid/2-RemoveDeviceCompliancePolicyAndroid.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'Test Android Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/1-NewDeviceCompliancePolicyAndroidDeviceOwner.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/1-NewDeviceCompliancePolicyAndroidDeviceOwner.ps1 index f2ef2e085b..11979ab4cc 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/1-NewDeviceCompliancePolicyAndroidDeviceOwner.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/1-NewDeviceCompliancePolicyAndroidDeviceOwner.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -34,7 +34,7 @@ Configuration Example PasswordPreviousPasswordCountToBlock = 13 StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/2-RemoveDeviceCompliancePolicyAndroidDeviceOwner.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/2-RemoveDeviceCompliancePolicyAndroidDeviceOwner.ps1 index 332f7b229a..670a8a6a2c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/2-RemoveDeviceCompliancePolicyAndroidDeviceOwner.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidDeviceOwner/2-RemoveDeviceCompliancePolicyAndroidDeviceOwner.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'DeviceOwner' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/1-NewDeviceCompliancePolicyAndroidWorkProfile.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/1-NewDeviceCompliancePolicyAndroidWorkProfile.ps1 index 81fb7e6541..721bf09c18 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/1-NewDeviceCompliancePolicyAndroidWorkProfile.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/1-NewDeviceCompliancePolicyAndroidWorkProfile.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -35,7 +35,7 @@ Configuration Example SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/2-RemoveDeviceCompliancePolicyAndroidWorkProfile.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/2-RemoveDeviceCompliancePolicyAndroidWorkProfile.ps1 index 2b4314195d..03b6b071ca 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/2-RemoveDeviceCompliancePolicyAndroidWorkProfile.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyAndroidWorkProfile/2-RemoveDeviceCompliancePolicyAndroidWorkProfile.ps1 @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'Test Android Work Profile Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/1-NewIntuneDeviceCompliancePolicyMacOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/1-NewIntuneDeviceCompliancePolicyMacOS.ps1 index be346156fe..cc9361ae1e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/1-NewIntuneDeviceCompliancePolicyMacOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/1-NewIntuneDeviceCompliancePolicyMacOS.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -35,7 +35,7 @@ Configuration Example FirewallBlockAllIncoming = $False FirewallEnableStealthMode = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/2-RemoveDeviceCompliancePolicyMacOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/2-RemoveDeviceCompliancePolicyMacOS.ps1 index ec4de1ea6e..ed248e2991 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/2-RemoveDeviceCompliancePolicyMacOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyMacOS/2-RemoveDeviceCompliancePolicyMacOS.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'Demo MacOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/1-NewIntuneDeviceCompliancePolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/1-NewIntuneDeviceCompliancePolicyWindows10.ps1 index 6de083afd7..501eaa58a8 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/1-NewIntuneDeviceCompliancePolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/1-NewIntuneDeviceCompliancePolicyWindows10.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -50,7 +50,7 @@ Configuration Example deviceCompliancePolicyScript = $null ValidOperatingSystemBuildRanges = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/2-RemoveDeviceCompliancePolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/2-RemoveDeviceCompliancePolicyWindows10.ps1 index 67ce72f391..63ffe13d04 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/2-RemoveDeviceCompliancePolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyWindows10/2-RemoveDeviceCompliancePolicyWindows10.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'Demo Windows 10 Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/1-NewDeviceCompliancePolicyiOs.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/1-NewDeviceCompliancePolicyiOs.ps1 index a4c97edbfb..85f3c3138a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/1-NewDeviceCompliancePolicyiOs.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/1-NewDeviceCompliancePolicyiOs.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example DeviceThreatProtectionRequiredSecurityLevel = 'medium' ManagedEmailProfileRequired = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/2-RemoveDeviceCompliancePolicyiOs.ps1.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/2-RemoveDeviceCompliancePolicyiOs.ps1.ps1 index a5d5fc7b03..62e42fdc4c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/2-RemoveDeviceCompliancePolicyiOs.ps1.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceCompliancePolicyiOs/2-RemoveDeviceCompliancePolicyiOs.ps1.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { DisplayName = 'Demo iOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.ps1 index 49b2eb893b..5a07fcc188 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -73,7 +73,7 @@ Configuration Example WebBrowserCookieSettings = 'allowAlways' WiFiBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceOwner/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceOwner.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceOwner/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceOwner.ps1 index 7fe4ed91b9..ad22ea09e5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceOwner/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceOwner.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidDeviceOwner/1-ConfigureIntuneDeviceConfigurationPolicyAndroidDeviceOwner.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -59,7 +59,7 @@ Configuration Example WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfilePasswordRequireUnlock = 'deviceDefault' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneDeviceConfigurationPolicyAndroidOpenSourceProject.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneDeviceConfigurationPolicyAndroidOpenSourceProject.ps1 index d89eebd2f0..cfde0201d9 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneDeviceConfigurationPolicyAndroidOpenSourceProject.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneDeviceConfigurationPolicyAndroidOpenSourceProject.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example ScreenCaptureBlocked = $True StorageBlockExternalMedia = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidWorkProfile/1-NewIntuneDeviceConfigurationPolicyAndroidWorkProfile.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidWorkProfile/1-NewIntuneDeviceConfigurationPolicyAndroidWorkProfile.ps1 index 4fe982bd6c..561b2a1196 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidWorkProfile/1-NewIntuneDeviceConfigurationPolicyAndroidWorkProfile.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyAndroidWorkProfile/1-NewIntuneDeviceConfigurationPolicyAndroidWorkProfile.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -37,7 +37,7 @@ Configuration Example WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfileRequirePassword = $False Ensure = 'Present' - Credential = $Credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyMacOS/1-ConfigureIntuneDeviceConfigurationPolicyMacOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyMacOS/1-ConfigureIntuneDeviceConfigurationPolicyMacOS.ps1 index 976be8edb5..d0ac0201c0 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyMacOS/1-ConfigureIntuneDeviceConfigurationPolicyMacOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyMacOS/1-ConfigureIntuneDeviceConfigurationPolicyMacOS.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -110,7 +110,7 @@ Configuration Example UpdateDelayPolicy = @('delayOSUpdateVisibility', 'delayAppUpdateVisibility', 'delayMajorOsUpdateVisibility') WallpaperModificationBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyiOS/1-NewIntuneDeviceConfigurationPolicyiOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyiOS/1-NewIntuneDeviceConfigurationPolicyiOS.ps1 index 30fd46b675..415076cd7e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyiOS/1-NewIntuneDeviceConfigurationPolicyiOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceConfigurationPolicyiOS/1-NewIntuneDeviceConfigurationPolicyiOS.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -125,7 +125,7 @@ Configuration Example VoiceDialingBlocked = $False WallpaperBlockModification = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentLimitRestriction/1-New Device Enrollment Limit Restriction.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentLimitRestriction/1-New Device Enrollment Limit Restriction.ps1 index 1b68b2e10b..2c995f15f6 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentLimitRestriction/1-New Device Enrollment Limit Restriction.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentLimitRestriction/1-New Device Enrollment Limit Restriction.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example Description = 'My Restriction' Limit = 12 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentPlatformRestriction/1-NewPlatformRestriction.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentPlatformRestriction/1-NewPlatformRestriction.ps1 index c7e949abc5..8d5b536727 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentPlatformRestriction/1-NewPlatformRestriction.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentPlatformRestriction/1-NewPlatformRestriction.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example deviceAndAppManagementAssignmentFilterType = 'none' dataType = '#microsoft.graph.allDevicesAssignmentTarget' }); - Credential = $credsGlobalAdmin + Credential = $Credscredential Description = "This is the default Device Type Restriction applied with the lowest priority to all users regardless of group membership."; DeviceEnrollmentConfigurationType = "platformRestrictions"; DisplayName = "All users and all devices"; diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentStatusPageWindows10/1-New Device Enrollment Status Page Windows 10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentStatusPageWindows10/1-New Device Enrollment Status Page Windows 10.ps1 index d2eb11f4d6..92e70ff769 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentStatusPageWindows10/1-New Device Enrollment Status Page Windows 10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneDeviceEnrollmentStatusPageWindows10/1-New Device Enrollment Status Page Windows 10.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneEndpointDetectionAndResponsePolicyWindows10/1-ConfigureIntuneEndpointDetectionAndResponsePolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneEndpointDetectionAndResponsePolicyWindows10/1-ConfigureIntuneEndpointDetectionAndResponsePolicyWindows10.ps1 index e10680ae03..2165f432fb 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneEndpointDetectionAndResponsePolicyWindows10/1-ConfigureIntuneEndpointDetectionAndResponsePolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneEndpointDetectionAndResponsePolicyWindows10/1-ConfigureIntuneEndpointDetectionAndResponsePolicyWindows10.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneExploitProtectionPolicyWindows10SettingCatalog/1-ConfigureIntuneExploitProtectionPolicyWindows10SettingCatalog.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneExploitProtectionPolicyWindows10SettingCatalog/1-ConfigureIntuneExploitProtectionPolicyWindows10SettingCatalog.ps1 index 518c79913c..b5363933a5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneExploitProtectionPolicyWindows10SettingCatalog/1-ConfigureIntuneExploitProtectionPolicyWindows10SettingCatalog.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneExploitProtectionPolicyWindows10SettingCatalog/1-ConfigureIntuneExploitProtectionPolicyWindows10SettingCatalog.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -172,7 +172,7 @@ Configuration Example " Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleAssignment/1-IntuneRoleAssignment.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleAssignment/1-IntuneRoleAssignment.ps1 index ee4e4c493d..cb43ce1f52 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleAssignment/1-IntuneRoleAssignment.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleAssignment/1-IntuneRoleAssignment.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example RoleDefinition = '2d00d0fd-45e9-4166-904f-b76ac5eed2c7' RoleDefinitionDisplayName = 'This is my role' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleDefinition/IntuneRoleDefinition.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleDefinition/IntuneRoleDefinition.ps1 index bcee749a21..2549965229 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleDefinition/IntuneRoleDefinition.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneRoleDefinition/IntuneRoleDefinition.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example notallowedResourceActions = @() roleScopeTagIds = @('0', '1') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogASRRulesPolicyWindows10/1-ConfigureIntuneSettingCatalogASRRulesPolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogASRRulesPolicyWindows10/1-ConfigureIntuneSettingCatalogASRRulesPolicyWindows10.ps1 index 9b988e599c..afb9c98a6c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogASRRulesPolicyWindows10/1-ConfigureIntuneSettingCatalogASRRulesPolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogASRRulesPolicyWindows10/1-ConfigureIntuneSettingCatalogASRRulesPolicyWindows10.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example blockexecutablefilesrunningunlesstheymeetprevalenceagetrustedlistcriterion = 'audit' Description = 'Post' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogCustomPolicyWindows10/1-IntuneSettingCatalogCustomPolicyWindows10-Example.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogCustomPolicyWindows10/1-IntuneSettingCatalogCustomPolicyWindows10-Example.ps1 index 7fc5526c84..cc69fe9d77 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogCustomPolicyWindows10/1-IntuneSettingCatalogCustomPolicyWindows10-Example.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneSettingCatalogCustomPolicyWindows10/1-IntuneSettingCatalogCustomPolicyWindows10-Example.ps1 @@ -16,7 +16,7 @@ Configuration Example { IntuneSettingCatalogCustomPolicyWindows10 'Example' { - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_DeviceManagementConfigurationPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWiFiConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneWiFiConfigurationPolicyAndroidDeviceAdministrator.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWiFiConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneWiFiConfigurationPolicyAndroidDeviceAdministrator.ps1 index e39beeb9d3..7734034f39 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWiFiConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneWiFiConfigurationPolicyAndroidDeviceAdministrator.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWiFiConfigurationPolicyAndroidDeviceAdministrator/1-ConfigureIntuneWiFiConfigurationPolicyAndroidDeviceAdministrator.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example Ssid = 'sf' WiFiSecurityType = 'wpaEnterprise' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.ps1 index 31443c07d4..e2b2ffa4db 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example ProxySettings = 'none' Ssid = 'MySSID - 3' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.ps1 index fa122e069a..37b0920a2e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile/1-ConfigureIntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example Ssid = 'MySSID' WiFiSecurityType = 'open' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidForWork/1-ConfigureIntuneWifiConfigurationPolicyAndroidForWork.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidForWork/1-ConfigureIntuneWifiConfigurationPolicyAndroidForWork.ps1 index b827ab0a09..c16b163b2f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidForWork/1-ConfigureIntuneWifiConfigurationPolicyAndroidForWork.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidForWork/1-ConfigureIntuneWifiConfigurationPolicyAndroidForWork.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneWifiConfigurationPolicyAndroidOpenSourceProject.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneWifiConfigurationPolicyAndroidOpenSourceProject.ps1 index c353efc6b8..8d469d9741 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneWifiConfigurationPolicyAndroidOpenSourceProject.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyAndroidOpenSourceProject/1-ConfigureIntuneWifiConfigurationPolicyAndroidOpenSourceProject.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyIOS/1-ConfigureIntuneWifiConfigurationPolicyIOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyIOS/1-ConfigureIntuneWifiConfigurationPolicyIOS.ps1 index b316e7c387..411faea6ca 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyIOS/1-ConfigureIntuneWifiConfigurationPolicyIOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyIOS/1-ConfigureIntuneWifiConfigurationPolicyIOS.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyMacOS/1-ConfigureIntuneWifiConfigurationPolicyMacOS.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyMacOS/1-ConfigureIntuneWifiConfigurationPolicyMacOS.ps1 index 7657dd16cd..625775e213 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyMacOS/1-ConfigureIntuneWifiConfigurationPolicyMacOS.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyMacOS/1-ConfigureIntuneWifiConfigurationPolicyMacOS.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example Ssid = 'aaaaaaaaaaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyWindows10/1-ConfigureIntuneWifiConfigurationPolicyWindows10.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyWindows10/1-ConfigureIntuneWifiConfigurationPolicyWindows10.ps1 index ee56b70bf5..1ed68e70c9 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyWindows10/1-ConfigureIntuneWifiConfigurationPolicyWindows10.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneWifiConfigurationPolicyWindows10/1-ConfigureIntuneWifiConfigurationPolicyWindows10.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -35,7 +35,7 @@ Configuration Example Ssid = 'ssid' WifiSecurityType = 'wpa2Personal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/O365AdminAuditLogConfig/1-ConfigureAuditLog.ps1 b/Modules/Microsoft365DSC/Examples/Resources/O365AdminAuditLogConfig/1-ConfigureAuditLog.ps1 index 0460f6e1c2..23c4069cf5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/O365AdminAuditLogConfig/1-ConfigureAuditLog.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/O365AdminAuditLogConfig/1-ConfigureAuditLog.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example IsSingleInstance = "Yes" UnifiedAuditLogIngestionEnabled = "Enabled" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/O365Group/1-CreateNewO365Group.ps1 b/Modules/Microsoft365DSC/Examples/Resources/O365Group/1-CreateNewO365Group.ps1 index 58a475cb49..b0a56bf3ef 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/O365Group/1-CreateNewO365Group.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/O365Group/1-CreateNewO365Group.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example ManagedBy = "TenantAdmin@contoso.onmicrosoft.com" Members = @("Bob.Houle", "John.Smith") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/O365OrgCustomizationSetting/1-EnableCustomizationSetting.ps1 b/Modules/Microsoft365DSC/Examples/Resources/O365OrgCustomizationSetting/1-EnableCustomizationSetting.ps1 index 9627c81807..5e28343b4f 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/O365OrgCustomizationSetting/1-EnableCustomizationSetting.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/O365OrgCustomizationSetting/1-EnableCustomizationSetting.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example { IsSingleInstance = "Yes" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/ODSettings/1-ConfigureOneDriveSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/ODSettings/1-ConfigureOneDriveSettings.ps1 index ee952fe9bd..68ccd3dbf7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/ODSettings/1-ConfigureOneDriveSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/ODSettings/1-ConfigureOneDriveSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example NotifyOwnersWhenInvitationsAccepted = $false NotificationsInOneDriveForBusinessEnabled = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/PPPowerAppsEnvironment/1-NewPowerAppsEnvironment.ps1 b/Modules/Microsoft365DSC/Examples/Resources/PPPowerAppsEnvironment/1-NewPowerAppsEnvironment.ps1 index 2e33ff1e38..27989b28cf 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/PPPowerAppsEnvironment/1-NewPowerAppsEnvironment.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/PPPowerAppsEnvironment/1-NewPowerAppsEnvironment.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example EnvironmentSKU = "Production" Location = "canada" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/1-ConfigurePPTenantIsolationSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/1-ConfigurePPTenantIsolationSettings.ps1 index 8619d4b372..aaec1fc1e8 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/1-ConfigurePPTenantIsolationSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/1-ConfigurePPTenantIsolationSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example Direction = 'Both' } ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/2-ConfigurePPTenantIsolationSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/2-ConfigurePPTenantIsolationSettings.ps1 index 477d9cb9b7..db1fc1f5fd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/2-ConfigurePPTenantIsolationSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/PPTenantIsolationSettings/2-ConfigurePPTenantIsolationSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example Direction = 'Both' } ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/PPTenantSettings/1-ConfigurePPTenantSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/PPTenantSettings/1-ConfigurePPTenantSettings.ps1 index c1d767eed0..bdfc29e6e7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/PPTenantSettings/1-ConfigurePPTenantSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/PPTenantSettings/1-ConfigurePPTenantSettings.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example DisableShareWithEveryone = $false EnableGuestsToMake = $false ShareWithColleaguesUserLimit = 10000 - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCAuditConfigurationPolicy/1-AddingNewAuditConfigurationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCAuditConfigurationPolicy/1-AddingNewAuditConfigurationPolicy.ps1 index 38ac43fa21..f47463cc87 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCAuditConfigurationPolicy/1-AddingNewAuditConfigurationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCAuditConfigurationPolicy/1-AddingNewAuditConfigurationPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,21 +18,21 @@ Configuration Example { Workload = "Exchange" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCAuditConfigurationPolicy 'OneDriveAuditPolicy' { Workload = "OneDriveForBusiness" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCAuditConfigurationPolicy 'SharePointAuditPolicy' { Workload = "SharePoint" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldPolicy/1-AddingNewCaseHoldPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldPolicy/1-AddingNewCaseHoldPolicy.ps1 index 1cd85a13e2..62fd2b4ce1 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldPolicy/1-AddingNewCaseHoldPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldPolicy/1-AddingNewCaseHoldPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example Comment = "This is a demo" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldRule/1-AddingNewCaseHoldRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldRule/1-AddingNewCaseHoldRule.ps1 index 5364f83546..fc274e5b37 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldRule/1-AddingNewCaseHoldRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCCaseHoldRule/1-AddingNewCaseHoldRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Disabled = $false ContentMatchQuery = "filename:2016 budget filetype:xlsx" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceCase/1-AddingNewComplianceCase.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceCase/1-AddingNewComplianceCase.ps1 index 55c2386a42..30c10d7991 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceCase/1-AddingNewComplianceCase.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceCase/1-AddingNewComplianceCase.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Description = "MyPolicy" Status = "Active" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearch/1-AddingNewComplianceSearch.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearch/1-AddingNewComplianceSearch.ps1 index fad7c17ab7..50232b033d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearch/1-AddingNewComplianceSearch.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearch/1-AddingNewComplianceSearch.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example Language = "iv" AllowNotFoundExchangeLocationsEnabled = $False SharePointLocation = @("All") - Credential = $credsGlobalAdmin + Credential = $Credscredential Ensure = "Present" } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearchAction/1-AddingNewComplianceSearchAction.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearchAction/1-AddingNewComplianceSearchAction.ps1 index 5f378e7b68..218e6f6e3d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearchAction/1-AddingNewComplianceSearchAction.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceSearchAction/1-AddingNewComplianceSearchAction.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example RetryOnError = $False SearchName = "Demo Search" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCComplianceSearchAction 'ComplianceSearchActionExport' @@ -36,7 +36,7 @@ Configuration Example ActionScope = "IndexedItemsOnly" EnableDedupe = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCComplianceSearchAction 'ComplianceSearchActionRetention' @@ -50,7 +50,7 @@ Configuration Example ActionScope = "IndexedItemsOnly" EnableDedupe = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceTag/1-AddingNewComplianceTag.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceTag/1-AddingNewComplianceTag.ps1 index 3ee1912f94..e600a60f15 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCComplianceTag/1-AddingNewComplianceTag.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCComplianceTag/1-AddingNewComplianceTag.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example FilePlanPropertySubcategory = "DemoSub" } Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCDLPCompliancePolicy/1-AddingNewDLPCompliancePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCDLPCompliancePolicy/1-AddingNewDLPCompliancePolicy.ps1 index 5d97f62765..57fb63a6e1 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCDLPCompliancePolicy/1-AddingNewDLPCompliancePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCDLPCompliancePolicy/1-AddingNewDLPCompliancePolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Priority = 1 SharePointLocation = "https://contoso.sharepoint.com/sites/demo" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCDLPComplianceRule/1-AddingNewDLPComplianceRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCDLPComplianceRule/1-AddingNewDLPComplianceRule.ps1 index 9634fd7be3..d2f1928a25 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCDLPComplianceRule/1-AddingNewDLPComplianceRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCDLPComplianceRule/1-AddingNewDLPComplianceRule.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -54,7 +54,7 @@ Configuration Example ReportSeverityLevel = 'Low' StopPolicyProcessing = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConditionalAccessPolicy/1-ConfigureDeviceConditionalAccessPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConditionalAccessPolicy/1-ConfigureDeviceConditionalAccessPolicy.ps1 index bf22570f75..3532fdf226 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConditionalAccessPolicy/1-ConfigureDeviceConditionalAccessPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConditionalAccessPolicy/1-ConfigureDeviceConditionalAccessPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Comment = "Device Conditional Access Policy for Human Resources department" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConfigurationPolicy/1-ConfigureDeviceConfigurationPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConfigurationPolicy/1-ConfigureDeviceConfigurationPolicy.ps1 index 61bf76b915..c607b508f7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConfigurationPolicy/1-ConfigureDeviceConfigurationPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCDeviceConfigurationPolicy/1-ConfigureDeviceConfigurationPolicy.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Comment = "Device Configuration Policy for Human Resources department" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyAuthority/1-AddingNewFilePlanPropertyCategory.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyAuthority/1-AddingNewFilePlanPropertyCategory.ps1 index 59e2101084..9aa11297d4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyAuthority/1-AddingNewFilePlanPropertyCategory.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyAuthority/1-AddingNewFilePlanPropertyCategory.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example { Name = 'My Authority' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCategory/1-AddingNewFilePlanPropertyCategory.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCategory/1-AddingNewFilePlanPropertyCategory.ps1 index 6aa1cb9936..9c2bae993d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCategory/1-AddingNewFilePlanPropertyCategory.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCategory/1-AddingNewFilePlanPropertyCategory.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example { Name = "My Category" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCitation/1-AddingNewCitation.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCitation/1-AddingNewCitation.ps1 index fe93ed3795..f22be1bc50 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCitation/1-AddingNewCitation.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyCitation/1-AddingNewCitation.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example CitationURL = "https://contoso.com" CitationJurisdiction = "Federal" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyDepartment/1-AddingNewFilePlanPropertyDepartment.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyDepartment/1-AddingNewFilePlanPropertyDepartment.ps1 index 6b6c356130..c556576a37 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyDepartment/1-AddingNewFilePlanPropertyDepartment.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyDepartment/1-AddingNewFilePlanPropertyDepartment.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example { Name = "Demo Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyReferenceId/1-AddingNewFilePlanPropertyReferenceId.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyReferenceId/1-AddingNewFilePlanPropertyReferenceId.ps1 index 22e2b6f819..0ef8fed683 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyReferenceId/1-AddingNewFilePlanPropertyReferenceId.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertyReferenceId/1-AddingNewFilePlanPropertyReferenceId.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example { Name = "My Reference ID" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertySubCategory/1-AddingNewFilePlanPropertySubCategory.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertySubCategory/1-AddingNewFilePlanPropertySubCategory.ps1 index 3b7e5f65ff..9eef709435 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertySubCategory/1-AddingNewFilePlanPropertySubCategory.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCFilePlanPropertySubCategory/1-AddingNewFilePlanPropertySubCategory.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example Name = "My Sub-Category" Category = "My Category" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCLabelPolicy/1-AddingNewSensitivityLabelPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCLabelPolicy/1-AddingNewSensitivityLabelPolicy.ps1 index 5ac9c40b39..03a998a45c 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCLabelPolicy/1-AddingNewSensitivityLabelPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCLabelPolicy/1-AddingNewSensitivityLabelPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCProtectionAlert/1-AddingNewProtectionAlert.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCProtectionAlert/1-AddingNewProtectionAlert.ps1 index c3fc5186e9..23e2a3d97d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCProtectionAlert/1-AddingNewProtectionAlert.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCProtectionAlert/1-AddingNewProtectionAlert.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionCompliancePolicy/1-AddingNewRetentionCompliancePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionCompliancePolicy/1-AddingNewRetentionCompliancePolicy.ps1 index 800efea991..a52472e4cb 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionCompliancePolicy/1-AddingNewRetentionCompliancePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionCompliancePolicy/1-AddingNewRetentionCompliancePolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Comment = "Test Policy" SharePointLocation = "https://contoso.sharepoint.com/sites/demo" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionComplianceRule/1-AddingNewRetentionComplianceRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionComplianceRule/1-AddingNewRetentionComplianceRule.ps1 index 47d31892cc..f8bb8a5518 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionComplianceRule/1-AddingNewRetentionComplianceRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionComplianceRule/1-AddingNewRetentionComplianceRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example RetentionComplianceAction = "Keep" RetentionDuration = "Unlimited" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionEventType/1-AddingNewRetentionEventType.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionEventType/1-AddingNewRetentionEventType.ps1 index 73d6aab75b..9ff62f3057 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCRetentionEventType/1-AddingNewRetentionEventType.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCRetentionEventType/1-AddingNewRetentionEventType.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example Name = "DemoEventType" Comment = "Demo event comment" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCSecurityFilter/1-AddingNewSecurityFilter.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCSecurityFilter/1-AddingNewSecurityFilter.ps1 index ca990fa406..bfc6b9c27b 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCSecurityFilter/1-AddingNewSecurityFilter.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCSecurityFilter/1-AddingNewSecurityFilter.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example Filters = @("Mailbox_CountryCode -eq '124'") Region = "AUS" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCSensitivityLabel/1-AddingNewSensitivityLabel.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCSensitivityLabel/1-AddingNewSensitivityLabel.ps1 index f122bdd529..e7c3aa8f95 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCSensitivityLabel/1-AddingNewSensitivityLabel.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCSensitivityLabel/1-AddingNewSensitivityLabel.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -92,7 +92,7 @@ Configuration Example ) ParentId = 'Personal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewPolicy/1-AddingNewSupervisoryReviewPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewPolicy/1-AddingNewSupervisoryReviewPolicy.ps1 index f15de8fabe..66e97e6796 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewPolicy/1-AddingNewSupervisoryReviewPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewPolicy/1-AddingNewSupervisoryReviewPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Comment = "Test Policy" Reviewers = @("admin@contoso.com") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewRule/1-AddingNewSupervisoryReviewRule.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewRule/1-AddingNewSupervisoryReviewRule.ps1 index 125ae4e081..dfa50fdd60 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewRule/1-AddingNewSupervisoryReviewRule.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SCSupervisoryReviewRule/1-AddingNewSupervisoryReviewRule.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example SamplingRate = 100 Policy = 'TestPolicy' Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOAccessControlSettings/1-ConfigureSPOAccessControlSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOAccessControlSettings/1-ConfigureSPOAccessControlSettings.ps1 index 98c91bc7cd..74fc36bcd4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOAccessControlSettings/1-ConfigureSPOAccessControlSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOAccessControlSettings/1-ConfigureSPOAccessControlSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -28,7 +28,7 @@ Configuration Example EmailAttestationRequired = $false EmailAttestationReAuthDays = 30 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOApp/1-AddingNewApps.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOApp/1-AddingNewApps.ps1 index ec6622bfbf..2663993830 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOApp/1-AddingNewApps.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOApp/1-AddingNewApps.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Path = "C:\Demo\DemoApp.sppkg" Publish = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOApp 'ConfigureDemoApp2' @@ -29,7 +29,7 @@ Configuration Example Path = "C:\Demo\DemoApp2.app" Publish = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOBrowserIdleSignout/1-ConfigureSPOSPOBrowserIdleSignout.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOBrowserIdleSignout/1-ConfigureSPOSPOBrowserIdleSignout.ps1 index 1396b899f1..8fe81206cb 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOBrowserIdleSignout/1-ConfigureSPOSPOBrowserIdleSignout.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOBrowserIdleSignout/1-ConfigureSPOSPOBrowserIdleSignout.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Enabled = $True SignOutAfter = "04:00:00" WarnAfter = "03:30:00" - Credential = $Credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOHomeSite/1-ConfigureSPOHomeSite.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOHomeSite/1-ConfigureSPOHomeSite.ps1 index acb24b57ba..6354a81fab 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOHomeSite/1-ConfigureSPOHomeSite.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOHomeSite/1-ConfigureSPOHomeSite.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example IsSingleInstance = "Yes" Url = "https://contoso.sharepoint.com/sites/Marketing" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOHubSite/1-ConfigureSPOHubSite.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOHubSite/1-ConfigureSPOHubSite.ps1 index 89c6be9620..80d0e2befa 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOHubSite/1-ConfigureSPOHubSite.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOHubSite/1-ConfigureSPOHubSite.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example AllowedToJoin = @("admin@contoso.onmicrosoft.com", "superuser@contoso.onmicrosoft.com") SiteDesignId = "f7eba920-9cca-4de8-b5aa-1da75a2a893c" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOOrgAssetsLibrary/1-ConfigureSPOOrgAssetsLibrary.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOOrgAssetsLibrary/1-ConfigureSPOOrgAssetsLibrary.ps1 index 23fd59e725..5fa9d43b74 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOOrgAssetsLibrary/1-ConfigureSPOOrgAssetsLibrary.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOOrgAssetsLibrary/1-ConfigureSPOOrgAssetsLibrary.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example ThumbnailUrl = "https://contoso.sharepoint.com/sites/org/Branding/Logo/Owagroup.png" CdnType = "Public" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOPropertyBag/1-AddNewPropertyBagKey.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOPropertyBag/1-AddNewPropertyBagKey.ps1 index 7030be7a9e..f98717e378 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOPropertyBag/1-AddNewPropertyBagKey.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOPropertyBag/1-AddNewPropertyBagKey.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example Key = "MyKey" Value = "MyValue" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSearchManagedProperty/1-CreateNewManagedProperty.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSearchManagedProperty/1-CreateNewManagedProperty.ps1 index d646fcec44..21972b9616 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSearchManagedProperty/1-CreateNewManagedProperty.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSearchManagedProperty/1-CreateNewManagedProperty.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -36,7 +36,7 @@ Configuration Example Refinable = "Yes" TokenNormalization = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSearchResultSource/1-CreateNewResultSource.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSearchResultSource/1-CreateNewResultSource.ps1 index 5fca972ec1..b276c641b3 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSearchResultSource/1-CreateNewResultSource.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSearchResultSource/1-CreateNewResultSource.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Protocol = "Local" Type = "SharePoint" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSharingSettings/1-ConfigureSPOSharingSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSharingSettings/1-ConfigureSPOSharingSettings.ps1 index bcd6847b9c..5e394b4549 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSharingSettings/1-ConfigureSPOSharingSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSharingSettings/1-ConfigureSPOSharingSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -38,7 +38,7 @@ Configuration Example DefaultLinkPermission = "View" RequireAcceptingAccountMatchInvitedAccount = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSite/1-CreateNewSPOSite.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSite/1-CreateNewSPOSite.ps1 index 2c7cb7ef8c..92727f3e46 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSite/1-CreateNewSPOSite.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSite/1-CreateNewSPOSite.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -32,7 +32,7 @@ Configuration Example DefaultSharingLinkType = "None" DefaultLinkPermission = "None" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteAuditSettings/1-ConfigureSiteAuditSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteAuditSettings/1-ConfigureSiteAuditSettings.ps1 index 9b0c17dc36..e955200705 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteAuditSettings/1-ConfigureSiteAuditSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteAuditSettings/1-ConfigureSiteAuditSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example { Url = "https://contoso.sharepoint.com/sites/DemoSite" AuditFlags = "All" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesign/1-CreateNewSPOSiteDesign.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesign/1-CreateNewSPOSiteDesign.ps1 index 777624bbda..2387159c5a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesign/1-CreateNewSPOSiteDesign.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesign/1-CreateNewSPOSiteDesign.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example Description = "Created by DSC" PreviewImageAltText = "Office 365" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesignRights/1-AssignDesignRights.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesignRights/1-AssignDesignRights.ps1 index 5d42e32e65..756a0390ee 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesignRights/1-AssignDesignRights.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteDesignRights/1-AssignDesignRights.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example UserPrincipals = "jdoe@contoso.onmicrosoft.com" Rights = "View" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteGroup/1-CreateNewSPOSiteGroup.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteGroup/1-CreateNewSPOSiteGroup.ps1 index 8635284614..2c01586d0a 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteGroup/1-CreateNewSPOSiteGroup.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteGroup/1-CreateNewSPOSiteGroup.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example Owner = "admin@contoso.onmicrosoft.com" PermissionLevels = @("Edit", "Read") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOSiteGroup 'ConfigureTestSiteGroup2' @@ -31,7 +31,7 @@ Configuration Example Owner = "admin@contoso.onmicrosoft.com" PermissionLevels = @("Edit", "Read") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteScript/1-ConfigureSiteScript.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteScript/1-ConfigureSiteScript.ps1 index c4a54135bf..dce3f557b1 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOSiteScript/1-ConfigureSiteScript.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOSiteScript/1-ConfigureSiteScript.ps1 @@ -9,7 +9,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -30,7 +30,7 @@ Configuration Example }' Description = "My custom site script" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOStorageEntity/1-AddingNewStorageEntity.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOStorageEntity/1-AddingNewStorageEntity.ps1 index 073a3cedfb..18e6c86580 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOStorageEntity/1-AddingNewStorageEntity.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOStorageEntity/1-AddingNewStorageEntity.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example Comment = "Comment from DSC" SiteUrl = "https://contoso-admin.sharepoint.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCDNPolicy/1-ConfigureCDNPolicies.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCDNPolicy/1-ConfigureCDNPolicies.ps1 index cfb085c70d..ae90678c75 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCDNPolicy/1-ConfigureCDNPolicies.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCDNPolicy/1-ConfigureCDNPolicies.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,14 +19,14 @@ Configuration Example IncludeFileExtensions = @('.jpg', '.png') CDNType = "Public" ExcludeRestrictedSiteClassifications = @() - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOTenantCDNPolicy 'PrivateCDNPolicy' { IncludeFileExtensions = @('.gif') CDNType = "Private" ExcludeRestrictedSiteClassifications = @() - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCdnEnabled/1-ConfigureCDN.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCdnEnabled/1-ConfigureCDN.ps1 index 7e32a0f331..788be7ced4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCdnEnabled/1-ConfigureCDN.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantCdnEnabled/1-ConfigureCDN.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example Enable = $True CdnType = "Public" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantSettings/1-ConfigureSPOTenantSettings.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantSettings/1-ConfigureSPOTenantSettings.ps1 index b17d0f2c84..33c934c987 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOTenantSettings/1-ConfigureSPOTenantSettings.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOTenantSettings/1-ConfigureSPOTenantSettings.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -35,7 +35,7 @@ Configuration Example HideDefaultThemes = $false MarkNewFilesSensitiveByDefault = "AllowExternalSharing" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOTheme/1-ConfigureSPOTheme.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOTheme/1-ConfigureSPOTheme.ps1 index f0a0c42dda..25fdcd84df 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOTheme/1-ConfigureSPOTheme.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOTheme/1-ConfigureSPOTheme.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -31,7 +31,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/SPOUserProfileProperty/1-SetUserProfileProperties.ps1 b/Modules/Microsoft365DSC/Examples/Resources/SPOUserProfileProperty/1-SetUserProfileProperties.ps1 index f6f3c008ce..321cb5a778 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/SPOUserProfileProperty/1-SetUserProfileProperties.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/SPOUserProfileProperty/1-SetUserProfileProperties.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsCallingPolicy/1-AddNewCallingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsCallingPolicy/1-AddNewCallingPolicy.ps1 index a53726bd86..a249eb9f49 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsCallingPolicy/1-AddNewCallingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsCallingPolicy/1-AddNewCallingPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example PreventTollBypass = $true BusyOnBusyEnabledType = 'Enabled' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsChannel/1-CreateTeamsChannel.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsChannel/1-CreateTeamsChannel.ps1 index 4b694eaf9e..f5e7e31644 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsChannel/1-CreateTeamsChannel.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsChannel/1-CreateTeamsChannel.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example NewDisplayName = "SP2016 Review teams group" Description = "SP2016 Code reviews for SPFX" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsChannelsPolicy/1-AddNewChannelsPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsChannelsPolicy/1-AddNewChannelsPolicy.ps1 index 2608188022..9f2cb1a24e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsChannelsPolicy/1-AddNewChannelsPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsChannelsPolicy/1-AddNewChannelsPolicy.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -26,7 +26,7 @@ Configuration Example AllowSharedChannelCreation = $True AllowUserToParticipateInExternalSharedChannel = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsClientConfiguration/1-ConfigureTeamsClient.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsClientConfiguration/1-ConfigureTeamsClient.ps1 index 79bea1e509..35353cb8f9 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsClientConfiguration/1-ConfigureTeamsClient.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsClientConfiguration/1-ConfigureTeamsClient.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -29,7 +29,7 @@ Configuration Example ContentPin = "RequiredOutsideScheduleMeeting" Identity = "Global" ResourceAccountContentAccess = "NoAccess" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallRoutingPolicy/1-AddNewEmergencyCallRoutingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallRoutingPolicy/1-AddNewEmergencyCallRoutingPolicy.ps1 index 71abb253ff..1122a89551 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallRoutingPolicy/1-AddNewEmergencyCallRoutingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallRoutingPolicy/1-AddNewEmergencyCallRoutingPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -27,7 +27,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallingPolicy/1-AddNewEmergencyCallingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallingPolicy/1-AddNewEmergencyCallingPolicy.ps1 index 025cc02813..4368957cc7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallingPolicy/1-AddNewEmergencyCallingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsEmergencyCallingPolicy/1-AddNewEmergencyCallingPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example NotificationGroup = 'john.smith@contoso.com' NotificationMode = "NotificationOnly" Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsFederationConfiguration/1-ConfigureTeamsFederation.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsFederationConfiguration/1-ConfigureTeamsFederation.ps1 index 773d8ce012..379efcfa7d 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsFederationConfiguration/1-ConfigureTeamsFederation.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsFederationConfiguration/1-ConfigureTeamsFederation.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -25,7 +25,7 @@ Configuration Example RestrictTeamsConsumerToExternalUserProfiles = $False; SharedSipAddressSpace = $False; TreatDiscoveredPartnersAsUnverified = $False; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsGroupPolicyAssignment/1-TeamsGroupPolicyAssignment.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsGroupPolicyAssignment/1-TeamsGroupPolicyAssignment.ps1 index d0498f58b4..37681a79ab 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsGroupPolicyAssignment/1-TeamsGroupPolicyAssignment.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsGroupPolicyAssignment/1-TeamsGroupPolicyAssignment.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -23,7 +23,7 @@ Configuration Example PolicyName = 'AllowCalling' PolicyType = 'TeamsCallingPolicy' Priority = 1 - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestCallingConfiguration/1-ConfigureTeamsGuestCalling.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestCallingConfiguration/1-ConfigureTeamsGuestCalling.ps1 index 02f57a584d..10539f1208 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestCallingConfiguration/1-ConfigureTeamsGuestCalling.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestCallingConfiguration/1-ConfigureTeamsGuestCalling.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { Identity = "Global" AllowPrivateCalling = $True - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMeetingConfiguration/1-ConfigureTeamsGuestMeeting.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMeetingConfiguration/1-ConfigureTeamsGuestMeeting.ps1 index 16f9c03ebc..3924d19555 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMeetingConfiguration/1-ConfigureTeamsGuestMeeting.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMeetingConfiguration/1-ConfigureTeamsGuestMeeting.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example AllowIPVideo = $True AllowMeetNow = $True ScreenSharingMode = "EntireScreen" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMessagingConfiguration/1-ConfigureTeamsGuestMessaging.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMessagingConfiguration/1-ConfigureTeamsGuestMessaging.ps1 index 9f8d25cad0..5b7cb2cc36 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMessagingConfiguration/1-ConfigureTeamsGuestMessaging.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsGuestMessagingConfiguration/1-ConfigureTeamsGuestMessaging.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -24,7 +24,7 @@ Configuration Example AllowUserDeleteMessage = $False AllowUserEditMessage = $True GiphyRatingType = "Moderate" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastConfiguration/1-ConfigureMeetingBroadcastConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastConfiguration/1-ConfigureMeetingBroadcastConfiguration.ps1 index 0396e80327..76614594f1 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastConfiguration/1-ConfigureMeetingBroadcastConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastConfiguration/1-ConfigureMeetingBroadcastConfiguration.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example SdnProviderName = "hive" SdnLicenseId = "5c12d0-d52950-e03e66-92b587" SdnApiTemplateUrl = "https://api.hivestreaming.com/v1/eventadmin?partner_token={0}" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastPolicy/1-NewTeamsMeetingBrodacastPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastPolicy/1-NewTeamsMeetingBrodacastPolicy.ps1 index 3b8b5a96f4..dcf4dfc730 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastPolicy/1-NewTeamsMeetingBrodacastPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingBroadcastPolicy/1-NewTeamsMeetingBrodacastPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -21,7 +21,7 @@ Configuration Example BroadcastAttendeeVisibilityMode = "EveryoneInCompany" BroadcastRecordingMode = "AlwaysEnabled" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingConfiguration/1-ConfigureTeamsMeeting.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingConfiguration/1-ConfigureTeamsMeeting.ps1 index 6c9fbb001c..21423edf68 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingConfiguration/1-ConfigureTeamsMeeting.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingConfiguration/1-ConfigureTeamsMeeting.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -29,7 +29,7 @@ Configuration Example HelpURL = "https://github.com/Microsoft/Office365DSC/Help" LegalURL = "https://github.com/Microsoft/Office365DSC/Legal" LogoURL = "https://github.com/Microsoft/Office365DSC/Logo.png" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingPolicy/1-AddNewMeetingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingPolicy/1-AddNewMeetingPolicy.ps1 index f7727c9254..16cb20d1bd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingPolicy/1-AddNewMeetingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsMeetingPolicy/1-AddNewMeetingPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -34,7 +34,7 @@ Configuration Example MediaBitRateKb = 50000 ScreenSharingMode = "EntireScreen" Ensure = "Present" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsMessagingPolicy/1-AddNewMessagePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsMessagingPolicy/1-AddNewMessagePolicy.ps1 index ba98fd6b97..f15c5d2dae 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsMessagingPolicy/1-AddNewMessagePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsMessagingPolicy/1-AddNewMessagePolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example AudioMessageEnabledType = "ChatsOnly" AllowOwnerDeleteMessage = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsPstnUsage/1-AddNewPstnUsage.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsPstnUsage/1-AddNewPstnUsage.ps1 index 8cf5ef2f70..79261c1ab9 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsPstnUsage/1-AddNewPstnUsage.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsPstnUsage/1-AddNewPstnUsage.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -17,7 +17,7 @@ Configuration Example { Usage = 'Long Distance' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsTeam/1-CreateNewTeam.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsTeam/1-CreateNewTeam.ps1 index ca0aa1119f..af538b0418 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsTeam/1-CreateNewTeam.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsTeam/1-CreateNewTeam.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -37,7 +37,7 @@ Configuration Example AllowGuestCreateUpdateChannels = $true AllowGuestDeleteChannels = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsTenantDialPlan/1-AddNewTenantDialPlan.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsTenantDialPlan/1-AddNewTenantDialPlan.ps1 index 539b3906c1..4aa0186c52 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsTenantDialPlan/1-AddNewTenantDialPlan.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsTenantDialPlan/1-AddNewTenantDialPlan.ps1 @@ -8,7 +8,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -33,7 +33,7 @@ Configuration Example OptimizeDeviceDialing = $true SimpleName = 'DemoPlan' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradeConfiguration/1-ConfigureTeamsUpgradeConfiguration.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradeConfiguration/1-ConfigureTeamsUpgradeConfiguration.ps1 index f821cc0f71..14696fbfae 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradeConfiguration/1-ConfigureTeamsUpgradeConfiguration.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradeConfiguration/1-ConfigureTeamsUpgradeConfiguration.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example IsSingleInstance = "Yes" DownloadTeams = $True SfBMeetingJoinUx = "NativeLimitedClient" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradePolicy/1-AssignUsersToTeamsUpgradePolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradePolicy/1-AssignUsersToTeamsUpgradePolicy.ps1 index 2edf02b6eb..bfefa45dcd 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradePolicy/1-AssignUsersToTeamsUpgradePolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsUpgradePolicy/1-AssignUsersToTeamsUpgradePolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -18,7 +18,7 @@ Configuration Example Identity = 'Islands' Users = @("John.Smith@contoso.com", "Nik.Charlebois@contoso.com") MigrateMeetingsToTeams = $true - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsUser/1-AddUserToTeam.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsUser/1-AddUserToTeam.ps1 index 5ad5418ab9..2c3d4852d5 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsUser/1-AddUserToTeam.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsUser/1-AddUserToTeam.ps1 @@ -8,7 +8,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -20,7 +20,7 @@ Configuration Example User = "jdoe@contoso.com" Role = "Member" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoute/1-AddNewVoiceRoute.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoute/1-AddNewVoiceRoute.ps1 index 2187736a66..edd50aa9b7 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoute/1-AddNewVoiceRoute.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoute/1-AddNewVoiceRoute.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -22,7 +22,7 @@ Configuration Example OnlinePstnUsages = @('Long Distance', 'Local', 'Internal') Priority = 10 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoutingPolicy/1-AddNewVoiceRoutingPolicy.ps1 b/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoutingPolicy/1-AddNewVoiceRoutingPolicy.ps1 index 706d8b24a2..fbc631caa4 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoutingPolicy/1-AddNewVoiceRoutingPolicy.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/TeamsVoiceRoutingPolicy/1-AddNewVoiceRoutingPolicy.ps1 @@ -7,7 +7,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -19,7 +19,7 @@ Configuration Example OnlinePstnUsages = @('Long Distance', 'Local', 'Internal') Description = 'This is a sample Voice Routing Policy' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 index acd30fb124..08eb7511fd 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCUtil.psm1 @@ -3932,7 +3932,7 @@ function Create-M365DSCResourceExample $params = Get-DSCFakeParameters -ModulePath $resource.Path - $params.Credential = '$credsGlobalAdmin' + $params.Credential = '$Credscredential' if ($params.ContainsKey('ApplicationId')) { @@ -3985,7 +3985,7 @@ Configuration Example ( [Parameter(Mandatory = `$true)] [PSCredential] - `$credsGlobalAdmin + `$Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/Tests/Integration/M365DSCTestEngine.psm1 b/Tests/Integration/M365DSCTestEngine.psm1 index 6c7c29a2aa..4fc54b5b55 100644 --- a/Tests/Integration/M365DSCTestEngine.psm1 +++ b/Tests/Integration/M365DSCTestEngine.psm1 @@ -13,17 +13,8 @@ function New-M365DSCIntegrationTest param ( [Parameter()] - [System.String] - $GlobalAdminUser, - - [Parameter()] - [System.String] - $GlobalAdminPassword, - - [Parameter()] - [System.String] - [ValidateSet('Public', 'GCC', 'GCCH', 'Germany', 'China')] - $Environment = 'Public' + [System.Management.Automation.PSCredential] + $Credential ) Configuration Master @@ -32,16 +23,11 @@ function New-M365DSCIntegrationTest ( [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] - $credsGlobalAdmin, - - [Parameter()] - [System.String] - [ValidateSet('Public', 'GCC', 'GCCH', 'Germany', 'China')] - $Environment = 'Public' + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC - $Domain = $credsGlobalAdmin.Username.Split('@')[1] + $Domain = $Credscredential.Username.Split('@')[1] Node Localhost { @@ -102,9 +88,7 @@ function New-M365DSCIntegrationTest } # Compile and deploy configuration - $password = ConvertTo-SecureString $GlobalAdminPassword -AsPlainText -Force - $credential = New-Object System.Management.Automation.PSCredential ($GlobalAdminUser, $password) - Master -ConfigurationData $ConfigurationData -credsGlobalAdmin $credential -Environment $Environment + Master -ConfigurationData $ConfigurationData -Credscredential $Credential Start-DscConfiguration Master -Wait -Force -Verbose '@ diff --git a/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 b/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 index ed323323ad..8dd5ca6c96 100644 --- a/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 +++ b/Tests/Integration/Microsoft365DSC/M365DSCIntegration.INTUNE.Tests.ps1 @@ -20,7 +20,7 @@ ( [Parameter(Mandatory = $true)] [System.Management.Automation.PSCredential] - $credsGlobalAdmin, + $Credscredential, [Parameter()] [System.String] @@ -29,7 +29,7 @@ ) Import-DscResource -ModuleName Microsoft365DSC - $Domain = $credsGlobalAdmin.Username.Split('@')[1] + $Domain = $Credscredential.Username.Split('@')[1] Node Localhost { IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy 'My Account Protection LAPS Policy' @@ -38,7 +38,7 @@ DisplayName = "Account Protection LAPS Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' @@ -56,7 +56,7 @@ DisplayName = "Account Protection LUGM Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalUserGroupMembershipPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' @@ -81,7 +81,7 @@ PinMinimumLength = 5 PinSpecialCharactersUsage = 'required' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAntivirusPolicyWindows10SettingCatalog 'myAVWindows10Policy' { @@ -98,21 +98,21 @@ excludedprocesses = @('processes.exe', 'process2.exe') templateId = '45fea5e9-280d-4da1-9792-fb5736da0ca9_1' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAppConfigurationPolicy 'AddAppConfigPolicy' { DisplayName = 'ContosoNew' Description = 'New Contoso Policy' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAppConfigurationPolicy 'RemoveAppConfigPolicy' { DisplayName = 'ContosoOld' Description = 'Old Contoso Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneApplicationControlPolicyWindows10 'ConfigureApplicationControlPolicyWindows10' { @@ -122,7 +122,7 @@ SmartScreenBlockOverrideForFiles = $True SmartScreenEnableInShell = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAppProtectionPolicyAndroid 'ConfigureAppProtectionPolicyAndroid' { @@ -149,7 +149,7 @@ SaveAsBlocked = $True SimplePinBlocked = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAppProtectionPolicyiOS 'MyCustomiOSPolicy' { @@ -181,7 +181,7 @@ SaveAsBlocked = $True SimplePinBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneASRRulesPolicyWindows10 'myASRRulesPolicy' { @@ -209,7 +209,7 @@ UntrustedExecutableType = 'block' UntrustedUSBProcessType = 'block' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager 'myASRReductionRules' { @@ -218,7 +218,7 @@ Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceAndAppManagementAssignmentFilter 'AssignmentFilter' { @@ -234,7 +234,7 @@ DisplayName = 'Contoso' Description = 'Contoso Category' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCleanupRule 'Example' { @@ -242,7 +242,7 @@ IsSingleInstance = 'Yes' DeviceInactivityBeforeRetirementInDays = 30 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroid 'AddDeviceCompliancePolicy' { @@ -268,13 +268,13 @@ SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroid 'RemoveDeviceCompliancePolicyAndroid' { DisplayName = 'Test Android Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroidDeviceOwner 'ConfigureAndroidDeviceCompliancePolicyOwner' { @@ -295,13 +295,13 @@ PasswordPreviousPasswordCountToBlock = 13 StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroidDeviceOwner 'RemoveAndroidDeviceCompliancePolicyOwner' { DisplayName = 'DeviceOwner' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroidWorkProfile 'ConfigureAndroidDeviceCompliancePolicyWorkProfile' { @@ -325,13 +325,13 @@ SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyAndroidWorkProfile 'RemoveDeviceCompliancePolicyAndroidWorkProfile' { DisplayName = 'Test Android Work Profile Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyiOs 'ConfigureDeviceCompliancePolicyiOS' { @@ -352,14 +352,14 @@ DeviceThreatProtectionRequiredSecurityLevel = 'medium' ManagedEmailProfileRequired = $True Ensure = 'Present' - Credential = $credsGlobalAdmin - + Credential = $Credscredential + } IntuneDeviceCompliancePolicyiOs 'RemoveDeviceCompliancePolicyiOS' { DisplayName = 'Demo iOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyMacOS 'ConfigureDeviceCompliancePolicyMacOS' { @@ -383,13 +383,13 @@ FirewallBlockAllIncoming = $False FirewallEnableStealthMode = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyMacOS 'RemoveDeviceCompliancePolicyMacOS' { DisplayName = 'Demo MacOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyWindows10 'ConfigureDeviceCompliancePolicyWindows10' { @@ -428,13 +428,13 @@ deviceCompliancePolicyScript = $null ValidOperatingSystemBuildRanges = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceCompliancePolicyWindows10 'RemoveDeviceCompliancePolicyWindows10' { DisplayName = 'Demo Windows 10 Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationAdministrativeTemplatePolicyWindows10 'Example' { @@ -475,7 +475,7 @@ { Name = 'hosted_app' } - + MSFT_IntuneGroupPolicyDefinitionValuePresentationValueKeyValuePair { Name = 'user_script' @@ -509,7 +509,7 @@ Id = '14c48993-35af-4b77-a4f8-12de917b1bb9' odataType = '#microsoft.graph.groupPolicyPresentationValueDecimal' } - + MSFT_IntuneGroupPolicyDefinitionValuePresentationValue { presentationDefinitionId = '98998e7f-cc2a-4d96-8c47-35dd4b2ce56b' @@ -518,7 +518,7 @@ Id = '4d654df9-6826-470f-af4e-d37491663c76' odataType = '#microsoft.graph.groupPolicyPresentationValueDecimal' } - + MSFT_IntuneGroupPolicyDefinitionValuePresentationValue { presentationDefinitionId = '6900e752-4bc3-463b-9fc8-36d78c77bc3e' @@ -1191,7 +1191,7 @@ WebBrowserCookieSettings = 'allowAlways' WiFiBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyAndroidDeviceOwner 'myAndroidDeviceOwnerPolicy' { @@ -1238,7 +1238,7 @@ WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfilePasswordRequireUnlock = 'deviceDefault' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyAndroidOpenSourceProject 'myAndroidOpenSourceProjectPolicy' { @@ -1256,7 +1256,7 @@ ScreenCaptureBlocked = $True StorageBlockExternalMedia = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyAndroidWorkProfile '97ed22e9-1429-40dc-ab3c-0055e538383b' { @@ -1282,7 +1282,7 @@ WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfileRequirePassword = $False Ensure = 'Present' - Credential = $Credsglobaladmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyiOS 'ConfigureDeviceConfigurationPolicyiOS' { @@ -1396,7 +1396,7 @@ VoiceDialingBlocked = $False WallpaperBlockModification = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyMacOS 'myMacOSDevicePolicy' { @@ -1494,7 +1494,7 @@ UpdateDelayPolicy = @('delayOSUpdateVisibility', 'delayAppUpdateVisibility', 'delayMajorOsUpdateVisibility') WallpaperModificationBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceConfigurationPolicyWindows10 'Example' { @@ -1982,7 +1982,7 @@ Description = 'My Restriction' Limit = 12 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneDeviceEnrollmentPlatformRestriction 'DeviceEnrollmentPlatformRestriction' { @@ -1999,7 +1999,7 @@ deviceAndAppManagementAssignmentFilterType = 'none' dataType = '#microsoft.graph.allDevicesAssignmentTarget' }); - Credential = $credsGlobalAdmin + Credential = $Credscredential Description = "This is the default Device Type Restriction applied with the lowest priority to all users regardless of group membership."; DeviceEnrollmentConfigurationType = "platformRestrictions"; DisplayName = "All users and all devices"; @@ -2064,7 +2064,7 @@ Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneExploitProtectionPolicyWindows10SettingCatalog 'myWindows10ExploitProtectionPolicy' { @@ -2224,7 +2224,7 @@ " Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntunePolicySets 'Example' { @@ -2270,7 +2270,7 @@ RoleDefinition = '2d00d0fd-45e9-4166-904f-b76ac5eed2c7' RoleDefinitionDisplayName = 'This is my role' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneRoleDefinition 'IntuneRoleDefinition' { @@ -2282,7 +2282,7 @@ notallowedResourceActions = @() roleScopeTagIds = @('0', '1') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneSettingCatalogASRRulesPolicyWindows10 'myASRRulesPolicy' { @@ -2298,11 +2298,11 @@ blockexecutablefilesrunningunlesstheymeetprevalenceagetrustedlistcriterion = 'audit' Description = 'Post' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneSettingCatalogCustomPolicyWindows10 'Example' { - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_DeviceManagementConfigurationPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' @@ -2389,7 +2389,7 @@ Ssid = 'sf' WiFiSecurityType = 'wpaEnterprise' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner 'myWifiConfigAndroidDeviceOwnerPolicy' { @@ -2409,7 +2409,7 @@ ProxySettings = 'none' Ssid = 'MySSID - 3' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile 'myWifiConfigAndroidWorkProfilePolicy' { @@ -2428,7 +2428,7 @@ Ssid = 'MySSID' WiFiSecurityType = 'open' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyAndroidForWork 'Example' { @@ -2469,7 +2469,7 @@ Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyIOS 'myWifiConfigIOSPolicy' { @@ -2490,7 +2490,7 @@ Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyMacOS 'myWifiConfigMacOSPolicy' { @@ -2510,7 +2510,7 @@ Ssid = 'aaaaaaaaaaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWifiConfigurationPolicyWindows10 'myWifiConfigWindows10Policy' { @@ -2533,7 +2533,7 @@ Ssid = 'ssid' WifiSecurityType = 'wpa2Personal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } IntuneWindowsAutopilotDeploymentProfileAzureADHybridJoined 'Example' { diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADConditionalAccessPolicy.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADConditionalAccessPolicy.Tests.ps1 index be5c60711b..22aa9e4086 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADConditionalAccessPolicy.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADConditionalAccessPolicy.Tests.ps1 @@ -67,7 +67,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ExcludeExternalTenantsMembers = @() ExcludeExternalTenantsMembershipKind = 'all' ExcludeGuestOrExternalUserTypes = @('internalGuest', 'b2bCollaborationMember') - Credential = $Credsglobaladmin + Credential = $Credscredential GrantControlOperator = 'AND' Id = 'bcc0cf19-ee89-46f0-8e12-4b89123ee6f9' IncludeApplications = @('All') @@ -162,7 +162,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ExcludeExternalTenantsMembers = @() ExcludeExternalTenantsMembershipKind = 'all' ExcludeGuestOrExternalUserTypes = @('internalGuest', 'b2bCollaborationMember') - Credential = $Credsglobaladmin + Credential = $Credscredential GrantControlOperator = 'AND' Id = 'bcc0cf19-ee89-46f0-8e12-4b89123ee6f9' IncludeApplications = @('All') @@ -316,7 +316,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ExcludeExternalTenantsMembers = @() ExcludeExternalTenantsMembershipKind = 'all' ExcludeGuestOrExternalUserTypes = @('internalGuest', 'b2bCollaborationMember') - Credential = $Credsglobaladmin + Credential = $Credscredential GrantControlOperator = 'AND' Id = 'bcc0cf19-ee89-46f0-8e12-4b89123ee6f9' IncludeApplications = @('All') @@ -484,7 +484,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ExcludePlatforms = @('Windows', 'WindowsPhone', 'MacOS') ExcludeRoles = @('Compliance Administrator') ExcludeUsers = 'alexw@contoso.com' - Credential = $Credsglobaladmin + Credential = $Credscredential GrantControlOperator = 'AND' Id = 'bcc0cf19-ee89-46f0-8e12-4b89123ee6f9' IncludeApplications = @('All') diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADNamedLocationPolicy.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADNamedLocationPolicy.Tests.ps1 index d90324d1ce..7c734883d7 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADNamedLocationPolicy.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADNamedLocationPolicy.Tests.ps1 @@ -57,7 +57,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IpRanges = @('2.1.1.1/32', '1.2.2.2/32') IsTrusted = $True OdataType = '#microsoft.graph.ipNamedLocation' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaIdentityConditionalAccessNamedLocation -MockWith { @@ -84,7 +84,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IpRanges = @('2.1.1.1/32', '1.2.2.2/32') IsTrusted = $True OdataType = '#microsoft.graph.ipNamedLocation' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaIdentityConditionalAccessNamedLocation -MockWith { @@ -125,7 +125,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IpRanges = @('2.1.1.1/32', '1.2.2.2/32') IsTrusted = $True OdataType = '#microsoft.graph.ipNamedLocation' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaIdentityConditionalAccessNamedLocation -MockWith { @@ -161,7 +161,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IpRanges = @('2.1.1.1/32', '1.2.2.2/32') IsTrusted = $True OdataType = '#microsoft.graph.ipNamedLocation' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaIdentityConditionalAccessNamedLocation -MockWith { diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADSecurityDefaults.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADSecurityDefaults.Tests.ps1 index b1b3adcd7c..91b1656da1 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADSecurityDefaults.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADSecurityDefaults.Tests.ps1 @@ -56,7 +56,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { DisplayName = 'Security Defaults' Description = 'Security Defaults description' IsEnabled = $True - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -MockWith { @@ -88,7 +88,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { DisplayName = 'Security Defaults' Description = 'Security Defaults description' IsEnabled = $True - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyIdentitySecurityDefaultEnforcementPolicy -MockWith { diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADServicePrincipal.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADServicePrincipal.Tests.ps1 index 6d5ca7ff8f..d9070c78b0 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADServicePrincipal.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADServicePrincipal.Tests.ps1 @@ -67,7 +67,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ServicePrincipalType = 'Application' Tags = '{WindowsAzureActiveDirectoryIntegratedApp}' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgServicePrincipal -MockWith { @@ -106,7 +106,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ServicePrincipalType = 'Application' Tags = '{WindowsAzureActiveDirectoryIntegratedApp}' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName New-M365DSCConnection -MockWith { @@ -166,7 +166,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ServicePrincipalType = 'Application' Tags = '{WindowsAzureActiveDirectoryIntegratedApp}' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName New-M365DSCConnection -MockWith { @@ -222,7 +222,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { ServicePrincipalType = 'Application' Tags = '{WindowsAzureActiveDirectoryIntegratedApp}' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName New-M365DSCConnection -MockWith { diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADTokenLifetimePolicy.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADTokenLifetimePolicy.Tests.ps1 index 35be4ba909..6593bb87aa 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADTokenLifetimePolicy.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.AADTokenLifetimePolicy.Tests.ps1 @@ -59,7 +59,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Definition = @('{"TokenIssuancePolicy":{"Version": 1,"SigningAlgorithm": "http://www.w3.org/2000/09/xmldsig#rsa-sha1","TokenResponseSigningPolicy": "TokenOnly","SamlTokenVersion": "2.0"}}') IsOrganizationDefault = $false Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyTokenLifetimePolicy -MockWith { @@ -87,7 +87,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IsOrganizationDefault = $false Description = 'My token' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyTokenLifetimePolicy -MockWith { @@ -124,7 +124,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IsOrganizationDefault = $false Description = 'My token' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyTokenLifetimePolicy -MockWith { @@ -157,7 +157,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { IsOrganizationDefault = $true Description = 'My token' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Get-MgBetaPolicyTokenLifetimePolicy -MockWith { diff --git a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.PPTenantIsolationSettings.Tests.ps1 b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.PPTenantIsolationSettings.Tests.ps1 index 5e603774f4..abf19677da 100644 --- a/Tests/Unit/Microsoft365DSC/Microsoft365DSC.PPTenantIsolationSettings.Tests.ps1 +++ b/Tests/Unit/Microsoft365DSC/Microsoft365DSC.PPTenantIsolationSettings.Tests.ps1 @@ -78,7 +78,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Outbound' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -133,7 +133,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Outbound' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -194,7 +194,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Both' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -263,7 +263,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Both' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -332,7 +332,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Both' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -394,7 +394,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Both' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { @@ -471,7 +471,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Direction = 'Both' } -ClientOnly) ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } Mock -CommandName Set-PowerAppTenantIsolationPolicy -MockWith { diff --git a/docs/docs/home/what-is-M365DSC.md b/docs/docs/home/what-is-M365DSC.md index 4045754118..a410e5dec6 100644 --- a/docs/docs/home/what-is-M365DSC.md +++ b/docs/docs/home/what-is-M365DSC.md @@ -16,7 +16,7 @@ SPOSearchManagedProperty SearchMP Searchable = $True FullTextIndex = "" MappedCrawledProperties = @() - GlobalAdminAccount = $credsGlobalAdmin + GlobalAdminAccount = $Credscredential LanguageNeutralTokenization = $True CompanyNameExtraction = $False AllowMultipleValues = $True diff --git a/docs/docs/resources/azure-ad/AADAdministrativeUnit.md b/docs/docs/resources/azure-ad/AADAdministrativeUnit.md index d6dd5b9f9e..b2b8aeda21 100644 --- a/docs/docs/resources/azure-ad/AADAdministrativeUnit.md +++ b/docs/docs/resources/azure-ad/AADAdministrativeUnit.md @@ -84,7 +84,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -99,7 +99,7 @@ Configuration Example MembershipRuleProcessingState = 'On' MembershipType = 'Dynamic' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -117,7 +117,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -133,7 +133,7 @@ Configuration Example MailEnabled = $false IsAssignableToRole = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADAdministrativeUnit 'TestUnit' { @@ -151,7 +151,7 @@ Configuration Example } ) Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential DependsOn = "[AADGroup]TestGroup" } } diff --git a/docs/docs/resources/azure-ad/AADApplication.md b/docs/docs/resources/azure-ad/AADApplication.md index 9235e49c8a..e440ca4552 100644 --- a/docs/docs/resources/azure-ad/AADApplication.md +++ b/docs/docs/resources/azure-ad/AADApplication.md @@ -80,7 +80,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -121,7 +121,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADAuthorizationPolicy.md b/docs/docs/resources/azure-ad/AADAuthorizationPolicy.md index 6495180233..21fe076578 100644 --- a/docs/docs/resources/azure-ad/AADAuthorizationPolicy.md +++ b/docs/docs/resources/azure-ad/AADAuthorizationPolicy.md @@ -86,7 +86,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -109,7 +109,7 @@ Configuration Example GuestUserRole = 'Guest' PermissionGrantPolicyIdsAssignedToDefaultUserRole = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADConditionalAccessPolicy.md b/docs/docs/resources/azure-ad/AADConditionalAccessPolicy.md index 4cc29f9f1e..23a23898aa 100644 --- a/docs/docs/resources/azure-ad/AADConditionalAccessPolicy.md +++ b/docs/docs/resources/azure-ad/AADConditionalAccessPolicy.md @@ -98,7 +98,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -141,7 +141,7 @@ Configuration Example State = 'disabled' UserRiskLevels = @('High', 'Medium') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackage.md b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackage.md index a408b87ccd..9432c6672a 100644 --- a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackage.md +++ b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackage.md @@ -76,7 +76,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -101,7 +101,7 @@ Configuration Example AccessPackagesIncompatibleWith = @() IncompatibleGroups = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageAssignmentPolicy.md b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageAssignmentPolicy.md index c843cd2e87..1996963a8a 100644 --- a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageAssignmentPolicy.md +++ b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageAssignmentPolicy.md @@ -184,7 +184,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -227,7 +227,7 @@ Configuration Example ScopeType = 'SpecificConnectedOrganizationSubjects' }; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -244,7 +244,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -254,7 +254,7 @@ Configuration Example { AccessPackageId = "5d05114c-b4d9-4ae7-bda6-4bade48e60f2"; CanExtend = $False; - Credential = $credsGlobalAdmin + Credential = $Credscredential Description = "Initial Policy"; DisplayName = "Initial Policy"; DurationInDays = 365; diff --git a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalog.md b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalog.md index 8c1825fc28..44cd50cbd9 100644 --- a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalog.md +++ b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalog.md @@ -62,7 +62,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example IsExternallyVisible = $True Managedidentity = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalogResource.md b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalogResource.md index de15613068..15d5d568ae 100644 --- a/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalogResource.md +++ b/docs/docs/resources/azure-ad/AADEntitlementManagementAccessPackageCatalogResource.md @@ -141,7 +141,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -161,7 +161,7 @@ Configuration Example ResourceType = 'SharePoint Online Site' Url = 'https://contoso.sharepoint.com/' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADEntitlementManagementConnectedOrganization.md b/docs/docs/resources/azure-ad/AADEntitlementManagementConnectedOrganization.md index 467ec08827..79f2c6e776 100644 --- a/docs/docs/resources/azure-ad/AADEntitlementManagementConnectedOrganization.md +++ b/docs/docs/resources/azure-ad/AADEntitlementManagementConnectedOrganization.md @@ -76,7 +76,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -98,7 +98,7 @@ Configuration Example InternalSponsors = @("12345678-1234-1234-1234-123456789012"); State = "configured"; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADGroup.md b/docs/docs/resources/azure-ad/AADGroup.md index b0e0de8461..500c4eb61f 100644 --- a/docs/docs/resources/azure-ad/AADGroup.md +++ b/docs/docs/resources/azure-ad/AADGroup.md @@ -82,7 +82,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -98,7 +98,7 @@ Configuration Example MailNickname = "M365DSC" Visibility = "Private" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -115,7 +115,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -132,7 +132,7 @@ Configuration Example Ensure = "Present" IsAssignableToRole = $True AssignedToRole = "Identity Governance Administrator" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -149,7 +149,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -164,7 +164,7 @@ Configuration Example GroupTypes = @() MailNickname = "M365DSCG" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADGroup 'MyGroups2' { @@ -176,7 +176,7 @@ Configuration Example MailNickname = "M365DSCMG" Ensure = "Present" MemberOf = @("DSCGroup") - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADGroupLifecyclePolicy.md b/docs/docs/resources/azure-ad/AADGroupLifecyclePolicy.md index d64f4c52a6..f0da9d1eec 100644 --- a/docs/docs/resources/azure-ad/AADGroupLifecyclePolicy.md +++ b/docs/docs/resources/azure-ad/AADGroupLifecyclePolicy.md @@ -59,7 +59,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -72,7 +72,7 @@ Configuration Example GroupLifetimeInDays = 99 ManagedGroupTypes = "Selected" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADGroupsNamingPolicy.md b/docs/docs/resources/azure-ad/AADGroupsNamingPolicy.md index 716ee1a005..a01cbfbcbc 100644 --- a/docs/docs/resources/azure-ad/AADGroupsNamingPolicy.md +++ b/docs/docs/resources/azure-ad/AADGroupsNamingPolicy.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example CustomBlockedWordsList = @("CEO", "President") PrefixSuffixNamingRequirement = "[Title]Test[Company][GroupName][Office]Redmond" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADGroupsSettings.md b/docs/docs/resources/azure-ad/AADGroupsSettings.md index 964fedc9af..8127dfd693 100644 --- a/docs/docs/resources/azure-ad/AADGroupsSettings.md +++ b/docs/docs/resources/azure-ad/AADGroupsSettings.md @@ -66,7 +66,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -83,7 +83,7 @@ Configuration Example GuestUsageGuidelinesUrl = "https://contoso.com/guestusage" UsageGuidelinesUrl = "https://contoso.com/usage" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADNamedLocationPolicy.md b/docs/docs/resources/azure-ad/AADNamedLocationPolicy.md index 6965f21810..c18b9a4af9 100644 --- a/docs/docs/resources/azure-ad/AADNamedLocationPolicy.md +++ b/docs/docs/resources/azure-ad/AADNamedLocationPolicy.md @@ -63,7 +63,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example IsTrusted = $True OdataType = "#microsoft.graph.ipNamedLocation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } AADNamedLocationPolicy 'AllowedCountries' { @@ -85,7 +85,7 @@ Configuration Example IncludeUnknownCountriesAndRegions = $False OdataType = "#microsoft.graph.countryNamedLocation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADRoleDefinition.md b/docs/docs/resources/azure-ad/AADRoleDefinition.md index e4a22e97a5..4d092c02db 100644 --- a/docs/docs/resources/azure-ad/AADRoleDefinition.md +++ b/docs/docs/resources/azure-ad/AADRoleDefinition.md @@ -66,7 +66,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -81,7 +81,7 @@ Configuration Example RolePermissions = "microsoft.directory/applicationPolicies/allProperties/read","microsoft.directory/applicationPolicies/allProperties/update","microsoft.directory/applicationPolicies/basic/update" Version = "1.0" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADRoleEligibilityScheduleRequest.md b/docs/docs/resources/azure-ad/AADRoleEligibilityScheduleRequest.md index 5cb9883d86..fb0f9efb9e 100644 --- a/docs/docs/resources/azure-ad/AADRoleEligibilityScheduleRequest.md +++ b/docs/docs/resources/azure-ad/AADRoleEligibilityScheduleRequest.md @@ -132,7 +132,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -142,7 +142,7 @@ Configuration Example AADRoleEligibilityScheduleRequest "MyRequest" { Action = "AdminAssign"; - Credential = $credsGlobalAdmin; + Credential = $Credscredential; DirectoryScopeId = "/"; Ensure = "Present"; IsValidationOnly = $False; diff --git a/docs/docs/resources/azure-ad/AADRoleSetting.md b/docs/docs/resources/azure-ad/AADRoleSetting.md index 70306e6fc0..840706cf0b 100644 --- a/docs/docs/resources/azure-ad/AADRoleSetting.md +++ b/docs/docs/resources/azure-ad/AADRoleSetting.md @@ -97,7 +97,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/azure-ad/AADServicePrincipal.md b/docs/docs/resources/azure-ad/AADServicePrincipal.md index b859ecb4b4..0ddd7c7a7e 100644 --- a/docs/docs/resources/azure-ad/AADServicePrincipal.md +++ b/docs/docs/resources/azure-ad/AADServicePrincipal.md @@ -80,7 +80,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -103,7 +103,7 @@ Configuration Example ServicePrincipalType = "Application" Tags = "{WindowsAzureActiveDirectoryIntegratedApp}" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADTokenLifetimePolicy.md b/docs/docs/resources/azure-ad/AADTokenLifetimePolicy.md index 2840fac162..c2d482c9c8 100644 --- a/docs/docs/resources/azure-ad/AADTokenLifetimePolicy.md +++ b/docs/docs/resources/azure-ad/AADTokenLifetimePolicy.md @@ -60,7 +60,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -72,7 +72,7 @@ Configuration Example Definition = @('{"TokenIssuancePolicy":{"Version": 1,"SigningAlgorithm": "http://www.w3.org/2000/09/xmldsig#rsa-sha1","TokenResponseSigningPolicy": "TokenOnly","SamlTokenVersion": "2.0"}}') IsOrganizationDefault = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/azure-ad/AADUser.md b/docs/docs/resources/azure-ad/AADUser.md index 3bad6dfaf6..bcdfb0d725 100644 --- a/docs/docs/resources/azure-ad/AADUser.md +++ b/docs/docs/resources/azure-ad/AADUser.md @@ -81,7 +81,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -99,7 +99,7 @@ Configuration Example LicenseAssignment = @("O365dsc1:ENTERPRISEPREMIUM") UsageLocation = "US" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -116,7 +116,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -134,7 +134,7 @@ Configuration Example MemberOf = @('Group-M365-Standard-License', 'Group-PowerBI-Pro-License') UsageLocation = "US" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAcceptedDomain.md b/docs/docs/resources/exchange/EXOAcceptedDomain.md index 965f0ffc50..6e3d82d2d7 100644 --- a/docs/docs/resources/exchange/EXOAcceptedDomain.md +++ b/docs/docs/resources/exchange/EXOAcceptedDomain.md @@ -48,7 +48,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -59,7 +59,7 @@ Configuration Example Identity = 'contoso.com' DomainType = "Authoritative" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOActiveSyncDeviceAccessRule.md b/docs/docs/resources/exchange/EXOActiveSyncDeviceAccessRule.md index 9eda3e30df..6f8c3bed60 100644 --- a/docs/docs/resources/exchange/EXOActiveSyncDeviceAccessRule.md +++ b/docs/docs/resources/exchange/EXOActiveSyncDeviceAccessRule.md @@ -49,7 +49,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -62,7 +62,7 @@ Configuration Example QueryString = "iOS 6.1 10B145" AccessLevel = "Allow" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAddressBookPolicy.md b/docs/docs/resources/exchange/EXOAddressBookPolicy.md index a836cce4f4..e74c5ec8ed 100644 --- a/docs/docs/resources/exchange/EXOAddressBookPolicy.md +++ b/docs/docs/resources/exchange/EXOAddressBookPolicy.md @@ -50,7 +50,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example OfflineAddressBook = "\Fabrikam-All-OAB" GlobalAddressList = "\All Fabrikam" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAddressList.md b/docs/docs/resources/exchange/EXOAddressList.md index b125caad33..942e94f8bb 100644 --- a/docs/docs/resources/exchange/EXOAddressList.md +++ b/docs/docs/resources/exchange/EXOAddressList.md @@ -66,7 +66,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -80,7 +80,7 @@ Configuration Example ConditionalStateOrProvince = "US" IncludedRecipients = "AllRecipients" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAntiPhishPolicy.md b/docs/docs/resources/exchange/EXOAntiPhishPolicy.md index e2c4770cea..fff4d9dee0 100644 --- a/docs/docs/resources/exchange/EXOAntiPhishPolicy.md +++ b/docs/docs/resources/exchange/EXOAntiPhishPolicy.md @@ -77,7 +77,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -106,7 +106,7 @@ Configuration Example EnableUnusualCharactersSafetyTips = $null TargetedUserActionRecipients = $null Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAntiPhishRule.md b/docs/docs/resources/exchange/EXOAntiPhishRule.md index e13bdb7a8d..46f2016d29 100644 --- a/docs/docs/resources/exchange/EXOAntiPhishRule.md +++ b/docs/docs/resources/exchange/EXOAntiPhishRule.md @@ -56,7 +56,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example SentToMemberOf = @("msteams_bb15d4@contoso.onmicrosoft.com") Priority = 1 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOApplicationAccessPolicy.md b/docs/docs/resources/exchange/EXOApplicationAccessPolicy.md index 51b67a3a38..d84d3f17c2 100644 --- a/docs/docs/resources/exchange/EXOApplicationAccessPolicy.md +++ b/docs/docs/resources/exchange/EXOApplicationAccessPolicy.md @@ -50,7 +50,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example PolicyScopeGroupId = "Engineering Staff" Description = "Engineering Group Policy" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAtpPolicyForO365.md b/docs/docs/resources/exchange/EXOAtpPolicyForO365.md index 1ce7ddf922..b4fc07ce1b 100644 --- a/docs/docs/resources/exchange/EXOAtpPolicyForO365.md +++ b/docs/docs/resources/exchange/EXOAtpPolicyForO365.md @@ -50,7 +50,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -61,7 +61,7 @@ Configuration Example IsSingleInstance = "Yes" EnableATPForSPOTeamsODB = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAuthenticationPolicy.md b/docs/docs/resources/exchange/EXOAuthenticationPolicy.md index d7a6f615ee..ddf4a3d03d 100644 --- a/docs/docs/resources/exchange/EXOAuthenticationPolicy.md +++ b/docs/docs/resources/exchange/EXOAuthenticationPolicy.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -79,7 +79,7 @@ Configuration Example AllowBasicAuthSmtp = $False AllowBasicAuthWebServices = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAvailabilityAddressSpace.md b/docs/docs/resources/exchange/EXOAvailabilityAddressSpace.md index 2f63f36da9..1fb3bfd413 100644 --- a/docs/docs/resources/exchange/EXOAvailabilityAddressSpace.md +++ b/docs/docs/resources/exchange/EXOAvailabilityAddressSpace.md @@ -50,7 +50,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example ForestName = 'example.contoso.com' TargetAutodiscoverEpr = 'https://contoso.com/autodiscover/autodiscover.xml' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOAvailabilityConfig.md b/docs/docs/resources/exchange/EXOAvailabilityConfig.md index 41722360a4..cbe46c3d3c 100644 --- a/docs/docs/resources/exchange/EXOAvailabilityConfig.md +++ b/docs/docs/resources/exchange/EXOAvailabilityConfig.md @@ -46,7 +46,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -56,7 +56,7 @@ Configuration Example { OrgWideAccount = "admin@contoso.onmicrosoft.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOCASMailboxPlan.md b/docs/docs/resources/exchange/EXOCASMailboxPlan.md index a8de30e43b..cf19d2a738 100644 --- a/docs/docs/resources/exchange/EXOCASMailboxPlan.md +++ b/docs/docs/resources/exchange/EXOCASMailboxPlan.md @@ -50,7 +50,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example Identity = $CASIdentity ImapEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOCASMailboxSettings.md b/docs/docs/resources/exchange/EXOCASMailboxSettings.md index 8e8babff59..c0da9659ab 100644 --- a/docs/docs/resources/exchange/EXOCASMailboxSettings.md +++ b/docs/docs/resources/exchange/EXOCASMailboxSettings.md @@ -80,7 +80,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -117,7 +117,7 @@ Configuration Example ShowGalAsDefaultView = $True UniversalOutlookEnabled = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOClientAccessRule.md b/docs/docs/resources/exchange/EXOClientAccessRule.md index d548e8ce8a..7c0c19b62d 100644 --- a/docs/docs/resources/exchange/EXOClientAccessRule.md +++ b/docs/docs/resources/exchange/EXOClientAccessRule.md @@ -65,7 +65,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/exchange/EXODataClassification.md b/docs/docs/resources/exchange/EXODataClassification.md index 968849868d..c91080f60c 100644 --- a/docs/docs/resources/exchange/EXODataClassification.md +++ b/docs/docs/resources/exchange/EXODataClassification.md @@ -50,7 +50,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example Locale = 'fr' IsDefault = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXODataEncryptionPolicy.md b/docs/docs/resources/exchange/EXODataEncryptionPolicy.md index 72342db1c8..d1e2cb3ac3 100644 --- a/docs/docs/resources/exchange/EXODataEncryptionPolicy.md +++ b/docs/docs/resources/exchange/EXODataEncryptionPolicy.md @@ -51,7 +51,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example Description = 'All Mailboxes of users in the US' Enabled = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXODkimSigningConfig.md b/docs/docs/resources/exchange/EXODkimSigningConfig.md index 41b9ae145b..14020ab62d 100644 --- a/docs/docs/resources/exchange/EXODkimSigningConfig.md +++ b/docs/docs/resources/exchange/EXODkimSigningConfig.md @@ -51,7 +51,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -66,7 +66,7 @@ Configuration Example BodyCanonicalization = "Relaxed" AdminDisplayName = "" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOEmailAddressPolicy.md b/docs/docs/resources/exchange/EXOEmailAddressPolicy.md index 33221c8a8e..b3330dccbf 100644 --- a/docs/docs/resources/exchange/EXOEmailAddressPolicy.md +++ b/docs/docs/resources/exchange/EXOEmailAddressPolicy.md @@ -49,7 +49,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -63,7 +63,7 @@ Configuration Example ManagedByFilter = "" Priority = "Lowest" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOGlobalAddressList.md b/docs/docs/resources/exchange/EXOGlobalAddressList.md index 2556f5fac0..2f1b602ce2 100644 --- a/docs/docs/resources/exchange/EXOGlobalAddressList.md +++ b/docs/docs/resources/exchange/EXOGlobalAddressList.md @@ -66,7 +66,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -79,7 +79,7 @@ Configuration Example ConditionalDepartment = "Human Resources" ConditionalStateOrProvince = "Washington" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOHostedConnectionFilterPolicy.md b/docs/docs/resources/exchange/EXOHostedConnectionFilterPolicy.md index 3daecd6d47..a3e585de5f 100644 --- a/docs/docs/resources/exchange/EXOHostedConnectionFilterPolicy.md +++ b/docs/docs/resources/exchange/EXOHostedConnectionFilterPolicy.md @@ -51,7 +51,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -66,7 +66,7 @@ Configuration Example IPBlockList = @() MakeDefault = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOHostedContentFilterPolicy.md b/docs/docs/resources/exchange/EXOHostedContentFilterPolicy.md index 17cd427a9a..6c88da850b 100644 --- a/docs/docs/resources/exchange/EXOHostedContentFilterPolicy.md +++ b/docs/docs/resources/exchange/EXOHostedContentFilterPolicy.md @@ -97,7 +97,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -149,7 +149,7 @@ Configuration Example TestModeAction = "None" TestModeBccToRecipients = @() Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOHostedContentFilterRule.md b/docs/docs/resources/exchange/EXOHostedContentFilterRule.md index a1d84c1a5d..97b8ccae2d 100644 --- a/docs/docs/resources/exchange/EXOHostedContentFilterRule.md +++ b/docs/docs/resources/exchange/EXOHostedContentFilterRule.md @@ -57,7 +57,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example ExceptIfSentToMemberOf = "Contoso Human Resources" HostedContentFilterPolicy = "Default" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterPolicy.md b/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterPolicy.md index 9959bd02b1..e07ebec6d2 100644 --- a/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterPolicy.md +++ b/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterPolicy.md @@ -56,7 +56,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example RecipientLimitInternalPerHour = 0 RecipientLimitPerDay = 0 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterRule.md b/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterRule.md index 8bab0f40e3..46287b09e6 100644 --- a/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterRule.md +++ b/docs/docs/resources/exchange/EXOHostedOutboundSpamFilterRule.md @@ -57,7 +57,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example ExceptIfFrom = "Elizabeth Brunner" HostedOutboundSpamFilterPolicy = "Default" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOIRMConfiguration.md b/docs/docs/resources/exchange/EXOIRMConfiguration.md index 9fd379db92..c87cd03eac 100644 --- a/docs/docs/resources/exchange/EXOIRMConfiguration.md +++ b/docs/docs/resources/exchange/EXOIRMConfiguration.md @@ -61,7 +61,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -84,7 +84,7 @@ Configuration Example SimplifiedClientAccessEncryptOnlyDisabled = $True TransportDecryptionSetting = 'Mandatory' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOInboundConnector.md b/docs/docs/resources/exchange/EXOInboundConnector.md index 967e87b38c..e78bbd243a 100644 --- a/docs/docs/resources/exchange/EXOInboundConnector.md +++ b/docs/docs/resources/exchange/EXOInboundConnector.md @@ -62,7 +62,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -81,7 +81,7 @@ Configuration Example TlsSenderCertificateName = "contoso.com" TreatMessagesAsInternal = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOIntraOrganizationConnector.md b/docs/docs/resources/exchange/EXOIntraOrganizationConnector.md index b3c7664a22..fd85c9dff3 100644 --- a/docs/docs/resources/exchange/EXOIntraOrganizationConnector.md +++ b/docs/docs/resources/exchange/EXOIntraOrganizationConnector.md @@ -50,7 +50,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -63,7 +63,7 @@ Configuration Example TargetAddressDomains = "Cloud1.contoso.com","Cloud2.contoso.com" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOJournalRule.md b/docs/docs/resources/exchange/EXOJournalRule.md index 8507bbb321..3205a2a1a8 100644 --- a/docs/docs/resources/exchange/EXOJournalRule.md +++ b/docs/docs/resources/exchange/EXOJournalRule.md @@ -49,7 +49,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -62,7 +62,7 @@ Configuration Example Name = "Send to John" RuleScope = "Global" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMailTips.md b/docs/docs/resources/exchange/EXOMailTips.md index e31caef5ee..bca289784c 100644 --- a/docs/docs/resources/exchange/EXOMailTips.md +++ b/docs/docs/resources/exchange/EXOMailTips.md @@ -50,7 +50,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -65,7 +65,7 @@ Configuration Example MailTipsMailboxSourcedTipsEnabled = $True MailTipsExternalRecipientsTipsEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMailboxAutoReplyConfiguration.md b/docs/docs/resources/exchange/EXOMailboxAutoReplyConfiguration.md index a5c4d4a145..cc7d993754 100644 --- a/docs/docs/resources/exchange/EXOMailboxAutoReplyConfiguration.md +++ b/docs/docs/resources/exchange/EXOMailboxAutoReplyConfiguration.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -72,7 +72,7 @@ Configuration Example ManagedByFilter = "" Priority = "Lowest" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMailboxPlan.md b/docs/docs/resources/exchange/EXOMailboxPlan.md index d6e0b17b32..523998b6cf 100644 --- a/docs/docs/resources/exchange/EXOMailboxPlan.md +++ b/docs/docs/resources/exchange/EXOMailboxPlan.md @@ -53,7 +53,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example ProhibitSendReceiveQuota = "100 GB (107,374,182,400 bytes)"; RetainDeletedItemsFor = "14.00:00:00"; RoleAssignmentPolicy = "Default Role Assignment Policy"; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMailboxSettings.md b/docs/docs/resources/exchange/EXOMailboxSettings.md index e29fc4020f..6ecc82e7e6 100644 --- a/docs/docs/resources/exchange/EXOMailboxSettings.md +++ b/docs/docs/resources/exchange/EXOMailboxSettings.md @@ -51,7 +51,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example TimeZone = 'Eastern Standard Time' Locale = 'fr-CA' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMalwareFilterPolicy.md b/docs/docs/resources/exchange/EXOMalwareFilterPolicy.md index e1f5cd804a..52321a342f 100644 --- a/docs/docs/resources/exchange/EXOMalwareFilterPolicy.md +++ b/docs/docs/resources/exchange/EXOMalwareFilterPolicy.md @@ -63,7 +63,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -81,7 +81,7 @@ Configuration Example QuarantineTag = "AdminOnlyAccessPolicy" ZapEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMalwareFilterRule.md b/docs/docs/resources/exchange/EXOMalwareFilterRule.md index aac94c6d7c..48bc0b4615 100644 --- a/docs/docs/resources/exchange/EXOMalwareFilterRule.md +++ b/docs/docs/resources/exchange/EXOMalwareFilterRule.md @@ -56,7 +56,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example Enabled = $True RecipientDomainIs = "contoso.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOManagementRole.md b/docs/docs/resources/exchange/EXOManagementRole.md index d3de8725b4..fb53b84086 100644 --- a/docs/docs/resources/exchange/EXOManagementRole.md +++ b/docs/docs/resources/exchange/EXOManagementRole.md @@ -47,7 +47,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -59,7 +59,7 @@ Configuration Example Description = "" Parent = "contoso.onmicrosoft.com\MyProfileInformation" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMessageClassification.md b/docs/docs/resources/exchange/EXOMessageClassification.md index 44eaf0bcf5..c05dd8eba0 100644 --- a/docs/docs/resources/exchange/EXOMessageClassification.md +++ b/docs/docs/resources/exchange/EXOMessageClassification.md @@ -54,7 +54,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example SenderDescription = "Shown to senders" RetainClassificationEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOMobileDeviceMailboxPolicy.md b/docs/docs/resources/exchange/EXOMobileDeviceMailboxPolicy.md index d9bbc48b15..045e5e9815 100644 --- a/docs/docs/resources/exchange/EXOMobileDeviceMailboxPolicy.md +++ b/docs/docs/resources/exchange/EXOMobileDeviceMailboxPolicy.md @@ -99,7 +99,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -162,7 +162,7 @@ Configuration Example UNCAccessEnabled = $True WSSAccessEnabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOMEConfiguration.md b/docs/docs/resources/exchange/EXOOMEConfiguration.md index 6db988fb0d..aec460aca0 100644 --- a/docs/docs/resources/exchange/EXOOMEConfiguration.md +++ b/docs/docs/resources/exchange/EXOOMEConfiguration.md @@ -56,7 +56,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -74,7 +74,7 @@ Configuration Example PortalText = "This portal is encrypted." SocialIdSignIn = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOfflineAddressBook.md b/docs/docs/resources/exchange/EXOOfflineAddressBook.md index e45212d417..d8a60aff62 100644 --- a/docs/docs/resources/exchange/EXOOfflineAddressBook.md +++ b/docs/docs/resources/exchange/EXOOfflineAddressBook.md @@ -50,7 +50,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -65,7 +65,7 @@ Configuration Example DiffRetentionPeriod = "30" IsDefault = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOnPremisesOrganization.md b/docs/docs/resources/exchange/EXOOnPremisesOrganization.md index 0c6de9a948..b44a50aabd 100644 --- a/docs/docs/resources/exchange/EXOOnPremisesOrganization.md +++ b/docs/docs/resources/exchange/EXOOnPremisesOrganization.md @@ -53,7 +53,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example OrganizationName = 'Contoso' OutboundConnector = 'Outbound to Contoso' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOrganizationConfig.md b/docs/docs/resources/exchange/EXOOrganizationConfig.md index 81b0bc205a..96091b0550 100644 --- a/docs/docs/resources/exchange/EXOOrganizationConfig.md +++ b/docs/docs/resources/exchange/EXOOrganizationConfig.md @@ -151,7 +151,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -220,7 +220,7 @@ Configuration Example AutoExpandingArchive = $null ConnectorsEnabledForSharepoint = $True ReadTrackingEnabled = $False - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOrganizationRelationship.md b/docs/docs/resources/exchange/EXOOrganizationRelationship.md index f1654be729..119bf16c32 100644 --- a/docs/docs/resources/exchange/EXOOrganizationRelationship.md +++ b/docs/docs/resources/exchange/EXOOrganizationRelationship.md @@ -66,7 +66,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -88,7 +88,7 @@ Configuration Example TargetApplicationUri = "mail.contoso.com" TargetAutodiscoverEpr = "https://mail.contoso.com/autodiscover/autodiscover.svc/wssecurity" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOutboundConnector.md b/docs/docs/resources/exchange/EXOOutboundConnector.md index 4b5ee41c20..f4e1ef0956 100644 --- a/docs/docs/resources/exchange/EXOOutboundConnector.md +++ b/docs/docs/resources/exchange/EXOOutboundConnector.md @@ -62,7 +62,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -84,7 +84,7 @@ Configuration Example TlsSettings = "DomainValidation" UseMxRecord = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOOwaMailboxPolicy.md b/docs/docs/resources/exchange/EXOOwaMailboxPolicy.md index 2512649250..82e9c758ad 100644 --- a/docs/docs/resources/exchange/EXOOwaMailboxPolicy.md +++ b/docs/docs/resources/exchange/EXOOwaMailboxPolicy.md @@ -130,7 +130,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -212,7 +212,7 @@ Configuration Example WeatherEnabled = $True WebPartsFrameOptionsType = "SameOrigin" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOPartnerApplication.md b/docs/docs/resources/exchange/EXOPartnerApplication.md index 09e66b21e4..9df7e5cb13 100644 --- a/docs/docs/resources/exchange/EXOPartnerApplication.md +++ b/docs/docs/resources/exchange/EXOPartnerApplication.md @@ -51,7 +51,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -64,7 +64,7 @@ Configuration Example AccountType = "OrganizationalAccount" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOPerimeterConfiguration.md b/docs/docs/resources/exchange/EXOPerimeterConfiguration.md index 1c293dc09b..921f997dde 100644 --- a/docs/docs/resources/exchange/EXOPerimeterConfiguration.md +++ b/docs/docs/resources/exchange/EXOPerimeterConfiguration.md @@ -47,7 +47,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -58,7 +58,7 @@ Configuration Example IsSingleInstance = 'Yes' GatewayIPAddresses = '123.0.0.1' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOPolicyTipConfig.md b/docs/docs/resources/exchange/EXOPolicyTipConfig.md index b6e97beae0..160459e6ed 100644 --- a/docs/docs/resources/exchange/EXOPolicyTipConfig.md +++ b/docs/docs/resources/exchange/EXOPolicyTipConfig.md @@ -47,7 +47,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -58,7 +58,7 @@ Configuration Example Name = "en\NotifyOnly" Value = "This message contains content that is restricted by Contoso company policy." Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOQuarantinePolicy.md b/docs/docs/resources/exchange/EXOQuarantinePolicy.md index 7204bce089..99fece786c 100644 --- a/docs/docs/resources/exchange/EXOQuarantinePolicy.md +++ b/docs/docs/resources/exchange/EXOQuarantinePolicy.md @@ -57,9 +57,9 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) - $OrganizationName = $credsGlobalAdmin.UserName.Split('@')[1] + $OrganizationName = $Credscredential.UserName.Split('@')[1] Import-DscResource -ModuleName Microsoft365DSC node localhost @@ -70,7 +70,7 @@ Configuration Example ESNEnabled = $False; Identity = "$OrganizationName\DefaultFullAccessPolicy"; Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXORemoteDomain.md b/docs/docs/resources/exchange/EXORemoteDomain.md index ddc24919ec..755413c10d 100644 --- a/docs/docs/resources/exchange/EXORemoteDomain.md +++ b/docs/docs/resources/exchange/EXORemoteDomain.md @@ -67,7 +67,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example TrustedMailOutboundEnabled = $False UseSimpleDisplayName = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOResourceConfiguration.md b/docs/docs/resources/exchange/EXOResourceConfiguration.md index 099af6a073..38b74e53f5 100644 --- a/docs/docs/resources/exchange/EXOResourceConfiguration.md +++ b/docs/docs/resources/exchange/EXOResourceConfiguration.md @@ -31,7 +31,7 @@ To authenticate with Microsoft Exchange, this resource required the following pe #### Role Groups -- +- ## Examples @@ -47,7 +47,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -59,7 +59,7 @@ Configuration Example IsSingleInstance = 'Yes' ResourcePropertySchema = @('Room/TV', 'Equipment/Laptop') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXORoleAssignmentPolicy.md b/docs/docs/resources/exchange/EXORoleAssignmentPolicy.md index df61d62546..5b74d5ddd4 100644 --- a/docs/docs/resources/exchange/EXORoleAssignmentPolicy.md +++ b/docs/docs/resources/exchange/EXORoleAssignmentPolicy.md @@ -48,7 +48,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -61,7 +61,7 @@ Configuration Example IsDefault = $True Roles = @("My Marketplace Apps","MyVoiceMail","MyDistributionGroups","MyRetentionPolicies","MyContactInformation","MyBaseOptions","MyTextMessaging","MyDistributionGroupMembership","MyProfileInformation","My Custom Apps","My ReadWriteMailbox Apps") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXORoleGroup.md b/docs/docs/resources/exchange/EXORoleGroup.md index 38a9c1bf1e..be6730c14f 100644 --- a/docs/docs/resources/exchange/EXORoleGroup.md +++ b/docs/docs/resources/exchange/EXORoleGroup.md @@ -49,7 +49,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -62,7 +62,7 @@ Configuration Example Members = @("Exchange Administrator") Roles = @("Address Lists") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSafeAttachmentPolicy.md b/docs/docs/resources/exchange/EXOSafeAttachmentPolicy.md index 0c68e7f95a..0de9f31932 100644 --- a/docs/docs/resources/exchange/EXOSafeAttachmentPolicy.md +++ b/docs/docs/resources/exchange/EXOSafeAttachmentPolicy.md @@ -54,7 +54,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -67,7 +67,7 @@ Configuration Example Redirect = $True RedirectAddress = "admin@contoso.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSafeAttachmentRule.md b/docs/docs/resources/exchange/EXOSafeAttachmentRule.md index 445f37c686..7cfae505f8 100644 --- a/docs/docs/resources/exchange/EXOSafeAttachmentRule.md +++ b/docs/docs/resources/exchange/EXOSafeAttachmentRule.md @@ -56,7 +56,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example SafeAttachmentPolicy = "Research Block Attachments" SentToMemberOf = "Research Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSafeLinksPolicy.md b/docs/docs/resources/exchange/EXOSafeLinksPolicy.md index 60430d1e65..914ef01f5f 100644 --- a/docs/docs/resources/exchange/EXOSafeLinksPolicy.md +++ b/docs/docs/resources/exchange/EXOSafeLinksPolicy.md @@ -61,7 +61,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example ScanUrls = $True UseTranslatedNotificationText = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSafeLinksRule.md b/docs/docs/resources/exchange/EXOSafeLinksRule.md index d99cc8b2f8..be69811e5d 100644 --- a/docs/docs/resources/exchange/EXOSafeLinksRule.md +++ b/docs/docs/resources/exchange/EXOSafeLinksRule.md @@ -56,7 +56,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example SafeLinksPolicy = "Research Block URL" SentToMemberOf = "Research Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSharedMailbox.md b/docs/docs/resources/exchange/EXOSharedMailbox.md index 164d55b7cc..45d3beccb1 100644 --- a/docs/docs/resources/exchange/EXOSharedMailbox.md +++ b/docs/docs/resources/exchange/EXOSharedMailbox.md @@ -48,7 +48,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -60,7 +60,7 @@ Configuration Example PrimarySMTPAddress = "Test@O365DSC1.onmicrosoft.com" EmailAddresses = @("Joufflu@o365dsc1.onmicrosoft.com", "Gilles@O365dsc1.onmicrosoft.com") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOSharingPolicy.md b/docs/docs/resources/exchange/EXOSharingPolicy.md index 553692def5..c5b35441ef 100644 --- a/docs/docs/resources/exchange/EXOSharingPolicy.md +++ b/docs/docs/resources/exchange/EXOSharingPolicy.md @@ -48,7 +48,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -61,7 +61,7 @@ Configuration Example Domains = @("Anonymous:CalendarSharingFreeBusyReviewer", "*:CalendarSharingFreeBusySimple") Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOTransportConfig.md b/docs/docs/resources/exchange/EXOTransportConfig.md index a274554773..2cdc5dc865 100644 --- a/docs/docs/resources/exchange/EXOTransportConfig.md +++ b/docs/docs/resources/exchange/EXOTransportConfig.md @@ -71,7 +71,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -101,7 +101,7 @@ Configuration Example ReplyAllStormProtectionEnabled = $True; Rfc2231EncodingEnabled = $False; SmtpClientAuthenticationDisabled = $True; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/exchange/EXOTransportRule.md b/docs/docs/resources/exchange/EXOTransportRule.md index eb1dc62556..84632f4127 100644 --- a/docs/docs/resources/exchange/EXOTransportRule.md +++ b/docs/docs/resources/exchange/EXOTransportRule.md @@ -213,7 +213,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -229,7 +229,7 @@ Configuration Example RejectMessageReasonText = "Messages sent between the Sales and Brokerage departments are strictly prohibited." Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneASRRulesPolicyWindows10.md b/docs/docs/resources/intune/IntuneASRRulesPolicyWindows10.md index 6a5518c9aa..4ef85eabbc 100644 --- a/docs/docs/resources/intune/IntuneASRRulesPolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneASRRulesPolicyWindows10.md @@ -94,7 +94,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -126,7 +126,7 @@ Configuration Example UntrustedExecutableType = 'block' UntrustedUSBProcessType = 'block' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.md b/docs/docs/resources/intune/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.md index a09adf9fb5..3a996ae17b 100644 --- a/docs/docs/resources/intune/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.md +++ b/docs/docs/resources/intune/IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicy.md @@ -85,7 +85,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -97,7 +97,7 @@ Configuration Example DisplayName = "Account Protection LAPS Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/docs/docs/resources/intune/IntuneAccountProtectionLocalUserGroupMembershipPolicy.md b/docs/docs/resources/intune/IntuneAccountProtectionLocalUserGroupMembershipPolicy.md index 66f885fa15..0d2b5d029d 100644 --- a/docs/docs/resources/intune/IntuneAccountProtectionLocalUserGroupMembershipPolicy.md +++ b/docs/docs/resources/intune/IntuneAccountProtectionLocalUserGroupMembershipPolicy.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -98,7 +98,7 @@ Configuration Example DisplayName = "Account Protection LUGM Policy"; Description = "My revised description"; Ensure = "Present"; - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_IntuneAccountProtectionLocalUserGroupMembershipPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/docs/docs/resources/intune/IntuneAccountProtectionPolicy.md b/docs/docs/resources/intune/IntuneAccountProtectionPolicy.md index d9299c7cbf..830672c46a 100644 --- a/docs/docs/resources/intune/IntuneAccountProtectionPolicy.md +++ b/docs/docs/resources/intune/IntuneAccountProtectionPolicy.md @@ -89,7 +89,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -104,7 +104,7 @@ Configuration Example PinMinimumLength = 5 PinSpecialCharactersUsage = 'required' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAntivirusPolicyWindows10SettingCatalog.md b/docs/docs/resources/intune/IntuneAntivirusPolicyWindows10SettingCatalog.md index fd77087cd5..9ac12462fa 100644 --- a/docs/docs/resources/intune/IntuneAntivirusPolicyWindows10SettingCatalog.md +++ b/docs/docs/resources/intune/IntuneAntivirusPolicyWindows10SettingCatalog.md @@ -137,7 +137,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -158,7 +158,7 @@ Configuration Example excludedprocesses = @('processes.exe', 'process2.exe') templateId = '45fea5e9-280d-4da1-9792-fb5736da0ca9_1' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAppConfigurationPolicy.md b/docs/docs/resources/intune/IntuneAppConfigurationPolicy.md index 2265c08211..4a1428918e 100644 --- a/docs/docs/resources/intune/IntuneAppConfigurationPolicy.md +++ b/docs/docs/resources/intune/IntuneAppConfigurationPolicy.md @@ -81,7 +81,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -92,7 +92,7 @@ Configuration Example DisplayName = 'ContosoNew' Description = 'New Contoso Policy' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -108,7 +108,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -119,7 +119,7 @@ Configuration Example DisplayName = 'ContosoOld' Description = 'Old Contoso Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAppProtectionPolicyAndroid.md b/docs/docs/resources/intune/IntuneAppProtectionPolicyAndroid.md index 4ee5e663eb..42722cb98d 100644 --- a/docs/docs/resources/intune/IntuneAppProtectionPolicyAndroid.md +++ b/docs/docs/resources/intune/IntuneAppProtectionPolicyAndroid.md @@ -101,7 +101,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -132,7 +132,7 @@ Configuration Example SaveAsBlocked = $True SimplePinBlocked = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAppProtectionPolicyiOS.md b/docs/docs/resources/intune/IntuneAppProtectionPolicyiOS.md index 49887c9b90..93b7f7c7c4 100644 --- a/docs/docs/resources/intune/IntuneAppProtectionPolicyiOS.md +++ b/docs/docs/resources/intune/IntuneAppProtectionPolicyiOS.md @@ -107,7 +107,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -143,7 +143,7 @@ Configuration Example SaveAsBlocked = $True SimplePinBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneApplicationControlPolicyWindows10.md b/docs/docs/resources/intune/IntuneApplicationControlPolicyWindows10.md index e1c48c48fe..6376ac0eb2 100644 --- a/docs/docs/resources/intune/IntuneApplicationControlPolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneApplicationControlPolicyWindows10.md @@ -76,7 +76,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -90,7 +90,7 @@ Configuration Example SmartScreenBlockOverrideForFiles = $True SmartScreenEnableInShell = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.md b/docs/docs/resources/intune/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.md index 7f0d84ea6f..1b31fc6ced 100644 --- a/docs/docs/resources/intune/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.md +++ b/docs/docs/resources/intune/IntuneAttackSurfaceReductionRulesPolicyWindows10ConfigManager.md @@ -96,7 +96,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -109,7 +109,7 @@ Configuration Example Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCategory.md b/docs/docs/resources/intune/IntuneDeviceCategory.md index eb91351fca..4b617798e4 100644 --- a/docs/docs/resources/intune/IntuneDeviceCategory.md +++ b/docs/docs/resources/intune/IntuneDeviceCategory.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -68,7 +68,7 @@ Configuration Example DisplayName = 'Contoso' Description = 'Contoso Category' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCleanupRule.md b/docs/docs/resources/intune/IntuneDeviceCleanupRule.md index 9c6fe539b7..3a9d963656 100644 --- a/docs/docs/resources/intune/IntuneDeviceCleanupRule.md +++ b/docs/docs/resources/intune/IntuneDeviceCleanupRule.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example IsSingleInstance = 'Yes' DeviceInactivityBeforeRetirementInDays = 30 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroid.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroid.md index f0996db32f..a33c1fb241 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroid.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroid.md @@ -263,7 +263,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -293,7 +293,7 @@ Configuration Example SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } } } @@ -309,7 +309,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -319,7 +319,7 @@ Configuration Example { DisplayName = 'Test Android Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidDeviceOwner.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidDeviceOwner.md index ba656427b6..6cbc1758cd 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidDeviceOwner.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidDeviceOwner.md @@ -207,7 +207,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -233,7 +233,7 @@ Configuration Example PasswordPreviousPasswordCountToBlock = 13 StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -249,7 +249,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -259,7 +259,7 @@ Configuration Example { DisplayName = 'DeviceOwner' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidWorkProfile.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidWorkProfile.md index 4fa0bb44b8..9df58bf12b 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidWorkProfile.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyAndroidWorkProfile.md @@ -215,7 +215,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -243,7 +243,7 @@ Configuration Example SecurityRequireVerifyApps = $False StorageRequireEncryption = $True Ensure = 'Present' - Credential = $credsglobaladmin + Credential = $Credscredential } } } @@ -269,7 +269,7 @@ Configuration Example { DisplayName = 'Test Android Work Profile Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyMacOS.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyMacOS.md index 25235462a5..4209ed459f 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyMacOS.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyMacOS.md @@ -172,7 +172,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -200,7 +200,7 @@ Configuration Example FirewallBlockAllIncoming = $False FirewallEnableStealthMode = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -216,7 +216,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -226,7 +226,7 @@ Configuration Example { DisplayName = 'Demo MacOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyWindows10.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyWindows10.md index 530284dd08..8d59130cbd 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyWindows10.md @@ -288,7 +288,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -331,7 +331,7 @@ Configuration Example deviceCompliancePolicyScript = $null ValidOperatingSystemBuildRanges = @() Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -347,7 +347,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -357,7 +357,7 @@ Configuration Example { DisplayName = 'Demo Windows 10 Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyiOs.md b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyiOs.md index 5f78664519..b9a6f53451 100644 --- a/docs/docs/resources/intune/IntuneDeviceCompliancePolicyiOs.md +++ b/docs/docs/resources/intune/IntuneDeviceCompliancePolicyiOs.md @@ -101,7 +101,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -126,7 +126,7 @@ Configuration Example DeviceThreatProtectionRequiredSecurityLevel = 'medium' ManagedEmailProfileRequired = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } @@ -143,7 +143,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -153,7 +153,7 @@ Configuration Example { DisplayName = 'Demo iOS Device Compliance Policy' Ensure = 'Absent' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.md index 0efdff945f..dc31b63289 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceAdministrator.md @@ -135,7 +135,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -200,7 +200,7 @@ Configuration Example WebBrowserCookieSettings = 'allowAlways' WiFiBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceOwner.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceOwner.md index 00d19e82bd..f615837c91 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceOwner.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidDeviceOwner.md @@ -306,7 +306,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -357,7 +357,7 @@ Configuration Example WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfilePasswordRequireUnlock = 'deviceDefault' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject.md index ac8bbb717a..3ffe20eeb6 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidOpenSourceProject.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -108,7 +108,7 @@ Configuration Example ScreenCaptureBlocked = $True StorageBlockExternalMedia = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidWorkProfile.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidWorkProfile.md index 60a883a61a..c177b82e37 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidWorkProfile.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyAndroidWorkProfile.md @@ -115,7 +115,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -145,7 +145,7 @@ Configuration Example WorkProfilePasswordRequiredType = 'deviceDefault' WorkProfileRequirePassword = $False Ensure = 'Present' - Credential = $Credsglobaladmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyMacOS.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyMacOS.md index 2d3090e490..669fc4a713 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyMacOS.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyMacOS.md @@ -188,7 +188,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -290,7 +290,7 @@ Configuration Example UpdateDelayPolicy = @('delayOSUpdateVisibility', 'delayAppUpdateVisibility', 'delayMajorOsUpdateVisibility') WallpaperModificationBlocked = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyiOS.md b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyiOS.md index 844dcf9e3d..ad1be6a9ed 100644 --- a/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyiOS.md +++ b/docs/docs/resources/intune/IntuneDeviceConfigurationPolicyiOS.md @@ -362,7 +362,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -480,7 +480,7 @@ Configuration Example VoiceDialingBlocked = $False WallpaperBlockModification = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceEnrollmentConfigurationWindows10.md b/docs/docs/resources/intune/IntuneDeviceEnrollmentConfigurationWindows10.md index 7ce9b28b17..d403201a36 100644 --- a/docs/docs/resources/intune/IntuneDeviceEnrollmentConfigurationWindows10.md +++ b/docs/docs/resources/intune/IntuneDeviceEnrollmentConfigurationWindows10.md @@ -70,7 +70,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/intune/IntuneDeviceEnrollmentLimitRestriction.md b/docs/docs/resources/intune/IntuneDeviceEnrollmentLimitRestriction.md index 473b5efa0d..b64ca34f14 100644 --- a/docs/docs/resources/intune/IntuneDeviceEnrollmentLimitRestriction.md +++ b/docs/docs/resources/intune/IntuneDeviceEnrollmentLimitRestriction.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example Description = 'My Restriction' Limit = 12 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneDeviceEnrollmentPlatformRestriction.md b/docs/docs/resources/intune/IntuneDeviceEnrollmentPlatformRestriction.md index 704dc33845..9c2ffae75d 100644 --- a/docs/docs/resources/intune/IntuneDeviceEnrollmentPlatformRestriction.md +++ b/docs/docs/resources/intune/IntuneDeviceEnrollmentPlatformRestriction.md @@ -94,7 +94,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -115,7 +115,7 @@ Configuration Example deviceAndAppManagementAssignmentFilterType = 'none' dataType = '#microsoft.graph.allDevicesAssignmentTarget' }); - Credential = $credsGlobalAdmin + Credential = $Credscredential Description = "This is the default Device Type Restriction applied with the lowest priority to all users regardless of group membership."; DeviceEnrollmentConfigurationType = "platformRestrictions"; DisplayName = "All users and all devices"; diff --git a/docs/docs/resources/intune/IntuneDeviceEnrollmentStatusPageWindows10.md b/docs/docs/resources/intune/IntuneDeviceEnrollmentStatusPageWindows10.md index 1202b2db43..40ab3957e5 100644 --- a/docs/docs/resources/intune/IntuneDeviceEnrollmentStatusPageWindows10.md +++ b/docs/docs/resources/intune/IntuneDeviceEnrollmentStatusPageWindows10.md @@ -85,7 +85,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/intune/IntuneEndpointDetectionAndResponsePolicyWindows10.md b/docs/docs/resources/intune/IntuneEndpointDetectionAndResponsePolicyWindows10.md index 3702a42565..8464c14696 100644 --- a/docs/docs/resources/intune/IntuneEndpointDetectionAndResponsePolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneEndpointDetectionAndResponsePolicyWindows10.md @@ -76,7 +76,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -89,7 +89,7 @@ Configuration Example Assignments = @() Description = 'My revised description' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneExploitProtectionPolicyWindows10SettingCatalog.md b/docs/docs/resources/intune/IntuneExploitProtectionPolicyWindows10SettingCatalog.md index 8066bb3fa3..54b59e32ea 100644 --- a/docs/docs/resources/intune/IntuneExploitProtectionPolicyWindows10SettingCatalog.md +++ b/docs/docs/resources/intune/IntuneExploitProtectionPolicyWindows10SettingCatalog.md @@ -80,7 +80,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -244,7 +244,7 @@ Configuration Example " Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneRoleAssignment.md b/docs/docs/resources/intune/IntuneRoleAssignment.md index 095fa35a86..f4d29b680b 100644 --- a/docs/docs/resources/intune/IntuneRoleAssignment.md +++ b/docs/docs/resources/intune/IntuneRoleAssignment.md @@ -65,7 +65,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -84,7 +84,7 @@ Configuration Example RoleDefinition = '2d00d0fd-45e9-4166-904f-b76ac5eed2c7' RoleDefinitionDisplayName = 'This is my role' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneRoleDefinition.md b/docs/docs/resources/intune/IntuneRoleDefinition.md index 5ca012eebe..4075158af5 100644 --- a/docs/docs/resources/intune/IntuneRoleDefinition.md +++ b/docs/docs/resources/intune/IntuneRoleDefinition.md @@ -62,7 +62,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example notallowedResourceActions = @() roleScopeTagIds = @('0', '1') Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneSettingCatalogASRRulesPolicyWindows10.md b/docs/docs/resources/intune/IntuneSettingCatalogASRRulesPolicyWindows10.md index 8b230f8f83..e837b06272 100644 --- a/docs/docs/resources/intune/IntuneSettingCatalogASRRulesPolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneSettingCatalogASRRulesPolicyWindows10.md @@ -96,7 +96,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -116,7 +116,7 @@ Configuration Example blockexecutablefilesrunningunlesstheymeetprevalenceagetrustedlistcriterion = 'audit' Description = 'Post' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneSettingCatalogCustomPolicyWindows10.md b/docs/docs/resources/intune/IntuneSettingCatalogCustomPolicyWindows10.md index a558c46678..522d15cfda 100644 --- a/docs/docs/resources/intune/IntuneSettingCatalogCustomPolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneSettingCatalogCustomPolicyWindows10.md @@ -173,7 +173,7 @@ Configuration Example { IntuneSettingCatalogCustomPolicyWindows10 'Example' { - Credential = $credsGlobalAdmin + Credential = $Credscredential Assignments = @( MSFT_DeviceManagementConfigurationPolicyAssignments{ deviceAndAppManagementAssignmentFilterType = 'none' diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidDeviceAdministrator.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidDeviceAdministrator.md index 6f67411c81..c9c92ee597 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidDeviceAdministrator.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidDeviceAdministrator.md @@ -78,7 +78,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -100,7 +100,7 @@ Configuration Example Ssid = 'sf' WiFiSecurityType = 'wpaEnterprise' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.md index f93fc0146e..43aa9ad5ef 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseDeviceOwner.md @@ -86,7 +86,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -110,7 +110,7 @@ Configuration Example ProxySettings = 'none' Ssid = 'MySSID - 3' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.md index 72741cf795..3cd0165671 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidEnterpriseWorkProfile.md @@ -79,7 +79,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -102,7 +102,7 @@ Configuration Example Ssid = 'MySSID' WiFiSecurityType = 'open' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidForWork.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidForWork.md index 7faab9e0cd..184820d1c0 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidForWork.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidForWork.md @@ -78,7 +78,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidOpenSourceProject.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidOpenSourceProject.md index 475051f03c..f4b935f437 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidOpenSourceProject.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyAndroidOpenSourceProject.md @@ -80,7 +80,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -103,7 +103,7 @@ Configuration Example Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyIOS.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyIOS.md index dceb1284e2..47f09235f3 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyIOS.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyIOS.md @@ -84,7 +84,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -109,7 +109,7 @@ Configuration Example Ssid = 'aaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyMacOS.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyMacOS.md index fe66de75fb..63d5bba30b 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyMacOS.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyMacOS.md @@ -83,7 +83,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -107,7 +107,7 @@ Configuration Example Ssid = 'aaaaaaaaaaaaa' WiFiSecurityType = 'wpaPersonal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyWindows10.md b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyWindows10.md index 51d05a6a23..5a0c7a0fc6 100644 --- a/docs/docs/resources/intune/IntuneWifiConfigurationPolicyWindows10.md +++ b/docs/docs/resources/intune/IntuneWifiConfigurationPolicyWindows10.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -113,7 +113,7 @@ Configuration Example Ssid = 'ssid' WifiSecurityType = 'wpa2Personal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/office365/O365AdminAuditLogConfig.md b/docs/docs/resources/office365/O365AdminAuditLogConfig.md index 449b0385df..2a92250c59 100644 --- a/docs/docs/resources/office365/O365AdminAuditLogConfig.md +++ b/docs/docs/resources/office365/O365AdminAuditLogConfig.md @@ -46,7 +46,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -57,7 +57,7 @@ Configuration Example IsSingleInstance = "Yes" UnifiedAuditLogIngestionEnabled = "Enabled" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/office365/O365Group.md b/docs/docs/resources/office365/O365Group.md index 910df4c2e8..0ab25d109d 100644 --- a/docs/docs/resources/office365/O365Group.md +++ b/docs/docs/resources/office365/O365Group.md @@ -60,7 +60,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -74,7 +74,7 @@ Configuration Example ManagedBy = "TenantAdmin@contoso.onmicrosoft.com" Members = @("Bob.Houle", "John.Smith") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/office365/O365OrgCustomizationSetting.md b/docs/docs/resources/office365/O365OrgCustomizationSetting.md index edef47f1af..a698e12c58 100644 --- a/docs/docs/resources/office365/O365OrgCustomizationSetting.md +++ b/docs/docs/resources/office365/O365OrgCustomizationSetting.md @@ -50,7 +50,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -61,7 +61,7 @@ Configuration Example { IsSingleInstance = "Yes" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/onedrive/ODSettings.md b/docs/docs/resources/onedrive/ODSettings.md index 11e9b015c6..cbd32d920b 100644 --- a/docs/docs/resources/onedrive/ODSettings.md +++ b/docs/docs/resources/onedrive/ODSettings.md @@ -95,7 +95,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -117,7 +117,7 @@ Configuration Example NotifyOwnersWhenInvitationsAccepted = $false NotificationsInOneDriveForBusinessEnabled = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/power-platform/PPPowerAppsEnvironment.md b/docs/docs/resources/power-platform/PPPowerAppsEnvironment.md index 14012a8bd9..8ebaf5e2dc 100644 --- a/docs/docs/resources/power-platform/PPPowerAppsEnvironment.md +++ b/docs/docs/resources/power-platform/PPPowerAppsEnvironment.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -69,7 +69,7 @@ Configuration Example EnvironmentSKU = "Production" Location = "canada" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/power-platform/PPTenantIsolationSettings.md b/docs/docs/resources/power-platform/PPTenantIsolationSettings.md index 959b1e4bcd..d2c4bd7166 100644 --- a/docs/docs/resources/power-platform/PPTenantIsolationSettings.md +++ b/docs/docs/resources/power-platform/PPTenantIsolationSettings.md @@ -69,7 +69,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -92,7 +92,7 @@ Configuration Example Direction = 'Both' } ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } @@ -109,7 +109,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -134,7 +134,7 @@ Configuration Example Direction = 'Both' } ) - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/power-platform/PPTenantSettings.md b/docs/docs/resources/power-platform/PPTenantSettings.md index e05cd013b7..5545656d97 100644 --- a/docs/docs/resources/power-platform/PPTenantSettings.md +++ b/docs/docs/resources/power-platform/PPTenantSettings.md @@ -68,7 +68,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -92,7 +92,7 @@ Configuration Example DisableShareWithEveryone = $false EnableGuestsToMake = $false ShareWithColleaguesUserLimit = 10000 - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCAuditConfigurationPolicy.md b/docs/docs/resources/security-compliance/SCAuditConfigurationPolicy.md index 9bba8195d9..4951cec9f5 100644 --- a/docs/docs/resources/security-compliance/SCAuditConfigurationPolicy.md +++ b/docs/docs/resources/security-compliance/SCAuditConfigurationPolicy.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -67,21 +67,21 @@ Configuration Example { Workload = "Exchange" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCAuditConfigurationPolicy 'OneDriveAuditPolicy' { Workload = "OneDriveForBusiness" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCAuditConfigurationPolicy 'SharePointAuditPolicy' { Workload = "SharePoint" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCCaseHoldPolicy.md b/docs/docs/resources/security-compliance/SCCaseHoldPolicy.md index 7429e8f258..52359422d6 100644 --- a/docs/docs/resources/security-compliance/SCCaseHoldPolicy.md +++ b/docs/docs/resources/security-compliance/SCCaseHoldPolicy.md @@ -63,7 +63,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example Comment = "This is a demo" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCCaseHoldRule.md b/docs/docs/resources/security-compliance/SCCaseHoldRule.md index 29f38f839e..945918bd4e 100644 --- a/docs/docs/resources/security-compliance/SCCaseHoldRule.md +++ b/docs/docs/resources/security-compliance/SCCaseHoldRule.md @@ -61,7 +61,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -75,7 +75,7 @@ Configuration Example Disabled = $false ContentMatchQuery = "filename:2016 budget filetype:xlsx" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCComplianceCase.md b/docs/docs/resources/security-compliance/SCComplianceCase.md index e5be3a9119..052184fa5c 100644 --- a/docs/docs/resources/security-compliance/SCComplianceCase.md +++ b/docs/docs/resources/security-compliance/SCComplianceCase.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example Description = "MyPolicy" Status = "Active" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCComplianceSearch.md b/docs/docs/resources/security-compliance/SCComplianceSearch.md index 8dbd71cfdc..206e271b73 100644 --- a/docs/docs/resources/security-compliance/SCComplianceSearch.md +++ b/docs/docs/resources/security-compliance/SCComplianceSearch.md @@ -68,7 +68,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -82,7 +82,7 @@ Configuration Example Language = "iv" AllowNotFoundExchangeLocationsEnabled = $False SharePointLocation = @("All") - Credential = $credsGlobalAdmin + Credential = $Credscredential Ensure = "Present" } } diff --git a/docs/docs/resources/security-compliance/SCComplianceSearchAction.md b/docs/docs/resources/security-compliance/SCComplianceSearchAction.md index 74cba08ffb..d5a6e59445 100644 --- a/docs/docs/resources/security-compliance/SCComplianceSearchAction.md +++ b/docs/docs/resources/security-compliance/SCComplianceSearchAction.md @@ -64,7 +64,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example RetryOnError = $False SearchName = "Demo Search" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCComplianceSearchAction 'ComplianceSearchActionExport' @@ -92,7 +92,7 @@ Configuration Example ActionScope = "IndexedItemsOnly" EnableDedupe = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SCComplianceSearchAction 'ComplianceSearchActionRetention' @@ -106,7 +106,7 @@ Configuration Example ActionScope = "IndexedItemsOnly" EnableDedupe = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCComplianceTag.md b/docs/docs/resources/security-compliance/SCComplianceTag.md index 82c0ddee81..5a071bd77a 100644 --- a/docs/docs/resources/security-compliance/SCComplianceTag.md +++ b/docs/docs/resources/security-compliance/SCComplianceTag.md @@ -79,7 +79,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -102,7 +102,7 @@ Configuration Example FilePlanPropertySubcategory = "DemoSub" } Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCDLPCompliancePolicy.md b/docs/docs/resources/security-compliance/SCDLPCompliancePolicy.md index 630221528b..b6ac07e2c0 100644 --- a/docs/docs/resources/security-compliance/SCDLPCompliancePolicy.md +++ b/docs/docs/resources/security-compliance/SCDLPCompliancePolicy.md @@ -77,7 +77,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -90,7 +90,7 @@ Configuration Example Priority = 1 SharePointLocation = "https://contoso.sharepoint.com/sites/demo" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCDLPComplianceRule.md b/docs/docs/resources/security-compliance/SCDLPComplianceRule.md index 81e1505645..2ca9d67bb4 100644 --- a/docs/docs/resources/security-compliance/SCDLPComplianceRule.md +++ b/docs/docs/resources/security-compliance/SCDLPComplianceRule.md @@ -135,7 +135,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -180,7 +180,7 @@ Configuration Example ReportSeverityLevel = 'Low' StopPolicyProcessing = $False Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCDeviceConditionalAccessPolicy.md b/docs/docs/resources/security-compliance/SCDeviceConditionalAccessPolicy.md index 4e717545b5..22dbffe5ee 100644 --- a/docs/docs/resources/security-compliance/SCDeviceConditionalAccessPolicy.md +++ b/docs/docs/resources/security-compliance/SCDeviceConditionalAccessPolicy.md @@ -59,7 +59,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example Comment = "Device Conditional Access Policy for Human Resources department" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCDeviceConfigurationPolicy.md b/docs/docs/resources/security-compliance/SCDeviceConfigurationPolicy.md index f7a6e3f9c1..6d1be42339 100644 --- a/docs/docs/resources/security-compliance/SCDeviceConfigurationPolicy.md +++ b/docs/docs/resources/security-compliance/SCDeviceConfigurationPolicy.md @@ -59,7 +59,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example Comment = "Device Configuration Policy for Human Resources department" Enabled = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertyAuthority.md b/docs/docs/resources/security-compliance/SCFilePlanPropertyAuthority.md index c809be5c89..24bf1f6cf8 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertyAuthority.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertyAuthority.md @@ -58,7 +58,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -69,7 +69,7 @@ Configuration Example { Name = 'My Authority' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertyCategory.md b/docs/docs/resources/security-compliance/SCFilePlanPropertyCategory.md index 47e3874164..e34c3961ae 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertyCategory.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertyCategory.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -67,7 +67,7 @@ Configuration Example { Name = "My Category" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertyCitation.md b/docs/docs/resources/security-compliance/SCFilePlanPropertyCitation.md index 092fdfeb20..2f786898c6 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertyCitation.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertyCitation.md @@ -59,7 +59,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example CitationURL = "https://contoso.com" CitationJurisdiction = "Federal" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertyDepartment.md b/docs/docs/resources/security-compliance/SCFilePlanPropertyDepartment.md index 1639aea6e2..646caa6b71 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertyDepartment.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertyDepartment.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -67,7 +67,7 @@ Configuration Example { Name = "Demo Department" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertyReferenceId.md b/docs/docs/resources/security-compliance/SCFilePlanPropertyReferenceId.md index 76b963c7e9..dcc06c23bd 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertyReferenceId.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertyReferenceId.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -67,7 +67,7 @@ Configuration Example { Name = "My Reference ID" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCFilePlanPropertySubCategory.md b/docs/docs/resources/security-compliance/SCFilePlanPropertySubCategory.md index 721bfc5f5b..e08a59824c 100644 --- a/docs/docs/resources/security-compliance/SCFilePlanPropertySubCategory.md +++ b/docs/docs/resources/security-compliance/SCFilePlanPropertySubCategory.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -68,7 +68,7 @@ Configuration Example Name = "My Sub-Category" Category = "My Category" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCLabelPolicy.md b/docs/docs/resources/security-compliance/SCLabelPolicy.md index f8e302366a..42f3cc5d72 100644 --- a/docs/docs/resources/security-compliance/SCLabelPolicy.md +++ b/docs/docs/resources/security-compliance/SCLabelPolicy.md @@ -82,7 +82,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -107,7 +107,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCProtectionAlert.md b/docs/docs/resources/security-compliance/SCProtectionAlert.md index c7d4b5d38c..9d6d67b29d 100644 --- a/docs/docs/resources/security-compliance/SCProtectionAlert.md +++ b/docs/docs/resources/security-compliance/SCProtectionAlert.md @@ -80,7 +80,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC diff --git a/docs/docs/resources/security-compliance/SCRetentionCompliancePolicy.md b/docs/docs/resources/security-compliance/SCRetentionCompliancePolicy.md index ee94b84019..f7f9ea48bd 100644 --- a/docs/docs/resources/security-compliance/SCRetentionCompliancePolicy.md +++ b/docs/docs/resources/security-compliance/SCRetentionCompliancePolicy.md @@ -75,7 +75,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -87,7 +87,7 @@ Configuration Example Comment = "Test Policy" SharePointLocation = "https://contoso.sharepoint.com/sites/demo" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCRetentionComplianceRule.md b/docs/docs/resources/security-compliance/SCRetentionComplianceRule.md index 1e9193f753..b233501c88 100644 --- a/docs/docs/resources/security-compliance/SCRetentionComplianceRule.md +++ b/docs/docs/resources/security-compliance/SCRetentionComplianceRule.md @@ -64,7 +64,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -78,7 +78,7 @@ Configuration Example RetentionComplianceAction = "Keep" RetentionDuration = "Unlimited" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCRetentionEventType.md b/docs/docs/resources/security-compliance/SCRetentionEventType.md index b12f8c7bd1..7f3e297081 100644 --- a/docs/docs/resources/security-compliance/SCRetentionEventType.md +++ b/docs/docs/resources/security-compliance/SCRetentionEventType.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -68,7 +68,7 @@ Configuration Example Name = "DemoEventType" Comment = "Demo event comment" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCSecurityFilter.md b/docs/docs/resources/security-compliance/SCSecurityFilter.md index 88520a3751..bf0b11e483 100644 --- a/docs/docs/resources/security-compliance/SCSecurityFilter.md +++ b/docs/docs/resources/security-compliance/SCSecurityFilter.md @@ -61,7 +61,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example Filters = @("Mailbox_CountryCode -eq '124'") Region = "AUS" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCSensitivityLabel.md b/docs/docs/resources/security-compliance/SCSensitivityLabel.md index b991c640c1..7f33634cf0 100644 --- a/docs/docs/resources/security-compliance/SCSensitivityLabel.md +++ b/docs/docs/resources/security-compliance/SCSensitivityLabel.md @@ -116,7 +116,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -200,7 +200,7 @@ Configuration Example ) ParentId = 'Personal' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCSupervisoryReviewPolicy.md b/docs/docs/resources/security-compliance/SCSupervisoryReviewPolicy.md index 339803cd2b..bf6e887629 100644 --- a/docs/docs/resources/security-compliance/SCSupervisoryReviewPolicy.md +++ b/docs/docs/resources/security-compliance/SCSupervisoryReviewPolicy.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example Comment = "Test Policy" Reviewers = @("admin@contoso.com") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/security-compliance/SCSupervisoryReviewRule.md b/docs/docs/resources/security-compliance/SCSupervisoryReviewRule.md index 1b5a4ac98c..bd7bf93985 100644 --- a/docs/docs/resources/security-compliance/SCSupervisoryReviewRule.md +++ b/docs/docs/resources/security-compliance/SCSupervisoryReviewRule.md @@ -59,7 +59,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -72,7 +72,7 @@ Configuration Example SamplingRate = 100 Policy = 'TestPolicy' Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOAccessControlSettings.md b/docs/docs/resources/sharepoint/SPOAccessControlSettings.md index c7b1ffc86e..7272278b04 100644 --- a/docs/docs/resources/sharepoint/SPOAccessControlSettings.md +++ b/docs/docs/resources/sharepoint/SPOAccessControlSettings.md @@ -97,7 +97,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -117,7 +117,7 @@ Configuration Example EmailAttestationRequired = $false EmailAttestationReAuthDays = 30 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOApp.md b/docs/docs/resources/sharepoint/SPOApp.md index 5be80d23f4..f81dcd182f 100644 --- a/docs/docs/resources/sharepoint/SPOApp.md +++ b/docs/docs/resources/sharepoint/SPOApp.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -98,7 +98,7 @@ Configuration Example Path = "C:\Demo\DemoApp.sppkg" Publish = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOApp 'ConfigureDemoApp2' @@ -107,7 +107,7 @@ Configuration Example Path = "C:\Demo\DemoApp2.app" Publish = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOBrowserIdleSignout.md b/docs/docs/resources/sharepoint/SPOBrowserIdleSignout.md index 1c150443e3..89c24222d1 100644 --- a/docs/docs/resources/sharepoint/SPOBrowserIdleSignout.md +++ b/docs/docs/resources/sharepoint/SPOBrowserIdleSignout.md @@ -84,7 +84,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example Enabled = $True SignOutAfter = "04:00:00" WarnAfter = "03:30:00" - Credential = $Credsglobaladmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOHomeSite.md b/docs/docs/resources/sharepoint/SPOHomeSite.md index a844a1d825..45ac4d6a5a 100644 --- a/docs/docs/resources/sharepoint/SPOHomeSite.md +++ b/docs/docs/resources/sharepoint/SPOHomeSite.md @@ -91,7 +91,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -102,7 +102,7 @@ Configuration Example IsSingleInstance = "Yes" Url = "https://contoso.sharepoint.com/sites/Marketing" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOHubSite.md b/docs/docs/resources/sharepoint/SPOHubSite.md index c65e97a2e7..8a904ef42b 100644 --- a/docs/docs/resources/sharepoint/SPOHubSite.md +++ b/docs/docs/resources/sharepoint/SPOHubSite.md @@ -96,7 +96,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -112,7 +112,7 @@ Configuration Example AllowedToJoin = @("admin@contoso.onmicrosoft.com", "superuser@contoso.onmicrosoft.com") SiteDesignId = "f7eba920-9cca-4de8-b5aa-1da75a2a893c" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOOrgAssetsLibrary.md b/docs/docs/resources/sharepoint/SPOOrgAssetsLibrary.md index 12569cd21e..3d1d871f28 100644 --- a/docs/docs/resources/sharepoint/SPOOrgAssetsLibrary.md +++ b/docs/docs/resources/sharepoint/SPOOrgAssetsLibrary.md @@ -84,7 +84,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example ThumbnailUrl = "https://contoso.sharepoint.com/sites/org/Branding/Logo/Owagroup.png" CdnType = "Public" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOPropertyBag.md b/docs/docs/resources/sharepoint/SPOPropertyBag.md index 4632cbd068..6de11f7495 100644 --- a/docs/docs/resources/sharepoint/SPOPropertyBag.md +++ b/docs/docs/resources/sharepoint/SPOPropertyBag.md @@ -84,7 +84,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example Key = "MyKey" Value = "MyValue" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSearchManagedProperty.md b/docs/docs/resources/sharepoint/SPOSearchManagedProperty.md index 402c4ed511..b17419f320 100644 --- a/docs/docs/resources/sharepoint/SPOSearchManagedProperty.md +++ b/docs/docs/resources/sharepoint/SPOSearchManagedProperty.md @@ -101,7 +101,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -129,7 +129,7 @@ Configuration Example Refinable = "Yes" TokenNormalization = $True Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSearchResultSource.md b/docs/docs/resources/sharepoint/SPOSearchResultSource.md index cadaafc311..b7670b1773 100644 --- a/docs/docs/resources/sharepoint/SPOSearchResultSource.md +++ b/docs/docs/resources/sharepoint/SPOSearchResultSource.md @@ -90,7 +90,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -103,7 +103,7 @@ Configuration Example Protocol = "Local" Type = "SharePoint" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSharingSettings.md b/docs/docs/resources/sharepoint/SPOSharingSettings.md index 892bc04489..f4705c8d92 100644 --- a/docs/docs/resources/sharepoint/SPOSharingSettings.md +++ b/docs/docs/resources/sharepoint/SPOSharingSettings.md @@ -107,7 +107,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -137,7 +137,7 @@ Configuration Example DefaultLinkPermission = "View" RequireAcceptingAccountMatchInvitedAccount = $false Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSite.md b/docs/docs/resources/sharepoint/SPOSite.md index bfbf2870ce..b0725164dc 100644 --- a/docs/docs/resources/sharepoint/SPOSite.md +++ b/docs/docs/resources/sharepoint/SPOSite.md @@ -107,7 +107,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -131,7 +131,7 @@ Configuration Example DefaultSharingLinkType = "None" DefaultLinkPermission = "None" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSiteAuditSettings.md b/docs/docs/resources/sharepoint/SPOSiteAuditSettings.md index 1fe7288547..af5e86368c 100644 --- a/docs/docs/resources/sharepoint/SPOSiteAuditSettings.md +++ b/docs/docs/resources/sharepoint/SPOSiteAuditSettings.md @@ -83,7 +83,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -93,7 +93,7 @@ Configuration Example { Url = "https://contoso.sharepoint.com/sites/DemoSite" AuditFlags = "All" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSiteDesign.md b/docs/docs/resources/sharepoint/SPOSiteDesign.md index 948d44c608..703159a128 100644 --- a/docs/docs/resources/sharepoint/SPOSiteDesign.md +++ b/docs/docs/resources/sharepoint/SPOSiteDesign.md @@ -89,7 +89,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -104,7 +104,7 @@ Configuration Example Description = "Created by DSC" PreviewImageAltText = "Office 365" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSiteDesignRights.md b/docs/docs/resources/sharepoint/SPOSiteDesignRights.md index 898e528346..0c00f41046 100644 --- a/docs/docs/resources/sharepoint/SPOSiteDesignRights.md +++ b/docs/docs/resources/sharepoint/SPOSiteDesignRights.md @@ -84,7 +84,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example UserPrincipals = "jdoe@contoso.onmicrosoft.com" Rights = "View" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSiteGroup.md b/docs/docs/resources/sharepoint/SPOSiteGroup.md index bffc56c2dd..ddc34f1022 100644 --- a/docs/docs/resources/sharepoint/SPOSiteGroup.md +++ b/docs/docs/resources/sharepoint/SPOSiteGroup.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -99,7 +99,7 @@ Configuration Example Owner = "admin@contoso.onmicrosoft.com" PermissionLevels = @("Edit", "Read") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOSiteGroup 'ConfigureTestSiteGroup2' @@ -109,7 +109,7 @@ Configuration Example Owner = "admin@contoso.onmicrosoft.com" PermissionLevels = @("Edit", "Read") Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOSiteScript.md b/docs/docs/resources/sharepoint/SPOSiteScript.md index d426579f8c..dda398ce51 100644 --- a/docs/docs/resources/sharepoint/SPOSiteScript.md +++ b/docs/docs/resources/sharepoint/SPOSiteScript.md @@ -86,7 +86,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -107,7 +107,7 @@ Configuration Example }' Description = "My custom site script" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOStorageEntity.md b/docs/docs/resources/sharepoint/SPOStorageEntity.md index f7bc257eca..42fa1e0444 100644 --- a/docs/docs/resources/sharepoint/SPOStorageEntity.md +++ b/docs/docs/resources/sharepoint/SPOStorageEntity.md @@ -87,7 +87,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -102,7 +102,7 @@ Configuration Example Comment = "Comment from DSC" SiteUrl = "https://contoso-admin.sharepoint.com" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOTenantCDNPolicy.md b/docs/docs/resources/sharepoint/SPOTenantCDNPolicy.md index 1ba166a42f..38c1c94178 100644 --- a/docs/docs/resources/sharepoint/SPOTenantCDNPolicy.md +++ b/docs/docs/resources/sharepoint/SPOTenantCDNPolicy.md @@ -86,7 +86,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -97,14 +97,14 @@ Configuration Example IncludeFileExtensions = @('.jpg', '.png') CDNType = "Public" ExcludeRestrictedSiteClassifications = @() - Credential = $credsGlobalAdmin + Credential = $Credscredential } SPOTenantCDNPolicy 'PrivateCDNPolicy' { IncludeFileExtensions = @('.gif') CDNType = "Private" ExcludeRestrictedSiteClassifications = @() - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOTenantCdnEnabled.md b/docs/docs/resources/sharepoint/SPOTenantCdnEnabled.md index 3db4c4a4a8..c1c7c0f3d3 100644 --- a/docs/docs/resources/sharepoint/SPOTenantCdnEnabled.md +++ b/docs/docs/resources/sharepoint/SPOTenantCdnEnabled.md @@ -85,7 +85,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -96,7 +96,7 @@ Configuration Example Enable = $True CdnType = "Public" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } diff --git a/docs/docs/resources/sharepoint/SPOTenantSettings.md b/docs/docs/resources/sharepoint/SPOTenantSettings.md index d02d6122a1..3128023107 100644 --- a/docs/docs/resources/sharepoint/SPOTenantSettings.md +++ b/docs/docs/resources/sharepoint/SPOTenantSettings.md @@ -107,7 +107,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -134,7 +134,7 @@ Configuration Example HideDefaultThemes = $false MarkNewFilesSensitiveByDefault = "AllowExternalSharing" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOTheme.md b/docs/docs/resources/sharepoint/SPOTheme.md index 525e8465c5..5e1de5d5d1 100644 --- a/docs/docs/resources/sharepoint/SPOTheme.md +++ b/docs/docs/resources/sharepoint/SPOTheme.md @@ -110,7 +110,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -133,7 +133,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/sharepoint/SPOUserProfileProperty.md b/docs/docs/resources/sharepoint/SPOUserProfileProperty.md index 98255cacf4..457211f8e7 100644 --- a/docs/docs/resources/sharepoint/SPOUserProfileProperty.md +++ b/docs/docs/resources/sharepoint/SPOUserProfileProperty.md @@ -92,7 +92,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -109,7 +109,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsCallingPolicy.md b/docs/docs/resources/teams/TeamsCallingPolicy.md index e02834627c..f316b2c8a1 100644 --- a/docs/docs/resources/teams/TeamsCallingPolicy.md +++ b/docs/docs/resources/teams/TeamsCallingPolicy.md @@ -76,7 +76,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -94,7 +94,7 @@ Configuration Example PreventTollBypass = $true BusyOnBusyEnabledType = 'Enabled' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsChannel.md b/docs/docs/resources/teams/TeamsChannel.md index e82a5fdc4a..58fb5741f4 100644 --- a/docs/docs/resources/teams/TeamsChannel.md +++ b/docs/docs/resources/teams/TeamsChannel.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example NewDisplayName = "SP2016 Review teams group" Description = "SP2016 Code reviews for SPFX" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsChannelsPolicy.md b/docs/docs/resources/teams/TeamsChannelsPolicy.md index 58e9b9342d..04569feb57 100644 --- a/docs/docs/resources/teams/TeamsChannelsPolicy.md +++ b/docs/docs/resources/teams/TeamsChannelsPolicy.md @@ -64,7 +64,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -82,7 +82,7 @@ Configuration Example AllowSharedChannelCreation = $True AllowUserToParticipateInExternalSharedChannel = $True Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsClientConfiguration.md b/docs/docs/resources/teams/TeamsClientConfiguration.md index 61a0cf8106..d103786a7f 100644 --- a/docs/docs/resources/teams/TeamsClientConfiguration.md +++ b/docs/docs/resources/teams/TeamsClientConfiguration.md @@ -69,7 +69,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -90,7 +90,7 @@ Configuration Example ContentPin = "RequiredOutsideScheduleMeeting" Identity = "Global" ResourceAccountContentAccess = "NoAccess" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsEmergencyCallRoutingPolicy.md b/docs/docs/resources/teams/TeamsEmergencyCallRoutingPolicy.md index 8a4d7f2460..fab9c4562a 100644 --- a/docs/docs/resources/teams/TeamsEmergencyCallRoutingPolicy.md +++ b/docs/docs/resources/teams/TeamsEmergencyCallRoutingPolicy.md @@ -69,7 +69,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -89,7 +89,7 @@ Configuration Example } ) Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsEmergencyCallingPolicy.md b/docs/docs/resources/teams/TeamsEmergencyCallingPolicy.md index a595212b66..659bd3f1a2 100644 --- a/docs/docs/resources/teams/TeamsEmergencyCallingPolicy.md +++ b/docs/docs/resources/teams/TeamsEmergencyCallingPolicy.md @@ -62,7 +62,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example NotificationGroup = 'john.smith@contoso.com' NotificationMode = "NotificationOnly" Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsFederationConfiguration.md b/docs/docs/resources/teams/TeamsFederationConfiguration.md index ba13c65da0..19942ea24c 100644 --- a/docs/docs/resources/teams/TeamsFederationConfiguration.md +++ b/docs/docs/resources/teams/TeamsFederationConfiguration.md @@ -64,7 +64,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -82,7 +82,7 @@ Configuration Example RestrictTeamsConsumerToExternalUserProfiles = $False; SharedSipAddressSpace = $False; TreatDiscoveredPartnersAsUnverified = $False; - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsGroupPolicyAssignment.md b/docs/docs/resources/teams/TeamsGroupPolicyAssignment.md index 5927d5aee7..8743770292 100644 --- a/docs/docs/resources/teams/TeamsGroupPolicyAssignment.md +++ b/docs/docs/resources/teams/TeamsGroupPolicyAssignment.md @@ -58,7 +58,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -73,7 +73,7 @@ Configuration Example PolicyName = 'AllowCalling' PolicyType = 'TeamsCallingPolicy' Priority = 1 - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsGuestCallingConfiguration.md b/docs/docs/resources/teams/TeamsGuestCallingConfiguration.md index 4764f83025..13408c8e25 100644 --- a/docs/docs/resources/teams/TeamsGuestCallingConfiguration.md +++ b/docs/docs/resources/teams/TeamsGuestCallingConfiguration.md @@ -55,7 +55,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -65,7 +65,7 @@ Configuration Example { Identity = "Global" AllowPrivateCalling = $True - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsGuestMeetingConfiguration.md b/docs/docs/resources/teams/TeamsGuestMeetingConfiguration.md index e9eab80238..5ecba7f55f 100644 --- a/docs/docs/resources/teams/TeamsGuestMeetingConfiguration.md +++ b/docs/docs/resources/teams/TeamsGuestMeetingConfiguration.md @@ -59,7 +59,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -71,7 +71,7 @@ Configuration Example AllowIPVideo = $True AllowMeetNow = $True ScreenSharingMode = "EntireScreen" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsGuestMessagingConfiguration.md b/docs/docs/resources/teams/TeamsGuestMessagingConfiguration.md index c5fa2585f9..c37379f7ef 100644 --- a/docs/docs/resources/teams/TeamsGuestMessagingConfiguration.md +++ b/docs/docs/resources/teams/TeamsGuestMessagingConfiguration.md @@ -63,7 +63,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -80,7 +80,7 @@ Configuration Example AllowUserDeleteMessage = $False AllowUserEditMessage = $True GiphyRatingType = "Moderate" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsMeetingBroadcastConfiguration.md b/docs/docs/resources/teams/TeamsMeetingBroadcastConfiguration.md index fa2eacceef..4a642c8b81 100644 --- a/docs/docs/resources/teams/TeamsMeetingBroadcastConfiguration.md +++ b/docs/docs/resources/teams/TeamsMeetingBroadcastConfiguration.md @@ -60,7 +60,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -74,7 +74,7 @@ Configuration Example SdnProviderName = "hive" SdnLicenseId = "5c12d0-d52950-e03e66-92b587" SdnApiTemplateUrl = "https://api.hivestreaming.com/v1/eventadmin?partner_token={0}" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsMeetingBroadcastPolicy.md b/docs/docs/resources/teams/TeamsMeetingBroadcastPolicy.md index 05731066cf..f6f4d23f1e 100644 --- a/docs/docs/resources/teams/TeamsMeetingBroadcastPolicy.md +++ b/docs/docs/resources/teams/TeamsMeetingBroadcastPolicy.md @@ -59,7 +59,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -73,7 +73,7 @@ Configuration Example BroadcastAttendeeVisibilityMode = "EveryoneInCompany" BroadcastRecordingMode = "AlwaysEnabled" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsMeetingConfiguration.md b/docs/docs/resources/teams/TeamsMeetingConfiguration.md index cfb74ad539..fd463d1e0c 100644 --- a/docs/docs/resources/teams/TeamsMeetingConfiguration.md +++ b/docs/docs/resources/teams/TeamsMeetingConfiguration.md @@ -67,7 +67,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -89,7 +89,7 @@ Configuration Example HelpURL = "https://github.com/Microsoft/Office365DSC/Help" LegalURL = "https://github.com/Microsoft/Office365DSC/Legal" LogoURL = "https://github.com/Microsoft/Office365DSC/Logo.png" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsMeetingPolicy.md b/docs/docs/resources/teams/TeamsMeetingPolicy.md index efb223cea3..005b1e7ea9 100644 --- a/docs/docs/resources/teams/TeamsMeetingPolicy.md +++ b/docs/docs/resources/teams/TeamsMeetingPolicy.md @@ -118,7 +118,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -145,7 +145,7 @@ Configuration Example MediaBitRateKb = 50000 ScreenSharingMode = "EntireScreen" Ensure = "Present" - Credential = $credsglobaladmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsMessagingPolicy.md b/docs/docs/resources/teams/TeamsMessagingPolicy.md index 6fee244358..567b005317 100644 --- a/docs/docs/resources/teams/TeamsMessagingPolicy.md +++ b/docs/docs/resources/teams/TeamsMessagingPolicy.md @@ -79,7 +79,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -105,7 +105,7 @@ Configuration Example AudioMessageEnabledType = "ChatsOnly" AllowOwnerDeleteMessage = $False Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsPstnUsage.md b/docs/docs/resources/teams/TeamsPstnUsage.md index 991a4085d7..2393755e3c 100644 --- a/docs/docs/resources/teams/TeamsPstnUsage.md +++ b/docs/docs/resources/teams/TeamsPstnUsage.md @@ -56,7 +56,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -66,7 +66,7 @@ Configuration Example { Usage = 'Long Distance' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsTeam.md b/docs/docs/resources/teams/TeamsTeam.md index f50d49b814..50460212f8 100644 --- a/docs/docs/resources/teams/TeamsTeam.md +++ b/docs/docs/resources/teams/TeamsTeam.md @@ -76,7 +76,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -105,7 +105,7 @@ Configuration Example AllowGuestCreateUpdateChannels = $true AllowGuestDeleteChannels = $true Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsTenantDialPlan.md b/docs/docs/resources/teams/TeamsTenantDialPlan.md index ea276b4b6b..aedc6c19ba 100644 --- a/docs/docs/resources/teams/TeamsTenantDialPlan.md +++ b/docs/docs/resources/teams/TeamsTenantDialPlan.md @@ -74,7 +74,7 @@ Configuration Example ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -99,7 +99,7 @@ Configuration Example OptimizeDeviceDialing = $true SimpleName = 'DemoPlan' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsUpgradeConfiguration.md b/docs/docs/resources/teams/TeamsUpgradeConfiguration.md index 6759f8c0a3..2a7f55b508 100644 --- a/docs/docs/resources/teams/TeamsUpgradeConfiguration.md +++ b/docs/docs/resources/teams/TeamsUpgradeConfiguration.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -69,7 +69,7 @@ Configuration Example IsSingleInstance = "Yes" DownloadTeams = $True SfBMeetingJoinUx = "NativeLimitedClient" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsUpgradePolicy.md b/docs/docs/resources/teams/TeamsUpgradePolicy.md index 73285a763f..2066af5abd 100644 --- a/docs/docs/resources/teams/TeamsUpgradePolicy.md +++ b/docs/docs/resources/teams/TeamsUpgradePolicy.md @@ -57,7 +57,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -68,7 +68,7 @@ Configuration Example Identity = 'Islands' Users = @("John.Smith@contoso.com", "Nik.Charlebois@contoso.com") MigrateMeetingsToTeams = $true - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsUser.md b/docs/docs/resources/teams/TeamsUser.md index c9aadd4463..895db84834 100644 --- a/docs/docs/resources/teams/TeamsUser.md +++ b/docs/docs/resources/teams/TeamsUser.md @@ -56,7 +56,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -68,7 +68,7 @@ Configuration Example User = "jdoe@contoso.com" Role = "Member" Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsVoiceRoute.md b/docs/docs/resources/teams/TeamsVoiceRoute.md index 211a930790..5da9a6af95 100644 --- a/docs/docs/resources/teams/TeamsVoiceRoute.md +++ b/docs/docs/resources/teams/TeamsVoiceRoute.md @@ -61,7 +61,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -76,7 +76,7 @@ Configuration Example OnlinePstnUsages = @('Long Distance', 'Local', 'Internal') Priority = 10 Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/resources/teams/TeamsVoiceRoutingPolicy.md b/docs/docs/resources/teams/TeamsVoiceRoutingPolicy.md index 02add150e5..0194070790 100644 --- a/docs/docs/resources/teams/TeamsVoiceRoutingPolicy.md +++ b/docs/docs/resources/teams/TeamsVoiceRoutingPolicy.md @@ -58,7 +58,7 @@ Configuration Example param( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -70,7 +70,7 @@ Configuration Example OnlinePstnUsages = @('Long Distance', 'Local', 'Internal') Description = 'This is a sample Voice Routing Policy' Ensure = 'Present' - Credential = $credsGlobalAdmin + Credential = $Credscredential } } } diff --git a/docs/docs/user-guide/get-started/authentication-examples.md b/docs/docs/user-guide/get-started/authentication-examples.md index 52728ba87a..fea61186d7 100644 --- a/docs/docs/user-guide/get-started/authentication-examples.md +++ b/docs/docs/user-guide/get-started/authentication-examples.md @@ -13,7 +13,7 @@ Configuration CredentialsExample ( [Parameter(Mandatory = $true)] [PSCredential] - $credsGlobalAdmin + $Credscredential ) Import-DscResource -ModuleName Microsoft365DSC @@ -27,7 +27,7 @@ Configuration CredentialsExample Template = "STS#3" TimeZoneId = 13 Ensure = "Present" - Credential = $credsGlobalAdmin + Credential = $Credscredential } } }