This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Field Type='Geolocation' DisplayName='Geolocation' Name='geolocation' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$web = Get-SPOWeb | |
Set-SPOPropertyBagValue -Key "BING_MAPS_KEY" -Value "<Your API KEY>" -Web $web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Disable AD Sync | |
Set-ADSyncScheduler –SyncCycleEnabled $false | |
# Enable AD Sync | |
Set-ADSyncScheduler –SyncCycleEnabled $true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start a delta synchronization | |
Start-ADSyncSyncCyle -PolicyType Delta | |
# Start a initial synchronization | |
Start-ADSyncSyncCyle -PolicyType Initial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cred = Get-AutomationPSCredential -Name "AutomateO365Cred" | |
Connect-MsolService -Credential $cred |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$UsageLocation = @{ | |
'US' = @{ | |
domain = 'domain1.com','domain2.com' | |
} | |
'NL' = @{ | |
domain = 'domain3.nl' | |
} | |
} | |
foreach ($location in $UsageLocation.Keys) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Licenses = @{ | |
'E3-SPOnly' = @{ | |
LicenseSKU = 'acornelissen:ENTERPRISEPACK' | |
EnabledPlans = 'SHAREPOINTENTERPRISE','SHAREPOINTWAC','SWAY','YAMMER_ENTERPRISE','INTUNE_O365' | |
Group = '1-O365E3SPOnlyLicense' | |
} | |
'E3' = @{ | |
LicenseSKU = 'acornelissen:ENTERPRISEPACK' | |
Group = '1-O365E3License' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$msoExchangeUrl = "https://ps.outlook.com/powershell" | |
$msoExchSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $msoExchangeUrl -Credential $cred -AllowRedirection -Authentication Basic | |
Import-PSSession $msoExchSession | |
Write-Output "Get all group members" | |
$GroupID = (Get-MsolGroup -All | Where-Object {$_.DisplayName -eq "1-O365E3License"}).ObjectId | |
$GroupMembers = .\Get-GroupMembers.ps1 -GroupObjectId $GroupID | |
Write-Output "Go thru all users" | |
foreach ($user in $GroupMembers) |