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
# | |
# Managed Office 365 Delegated Admin Tenants.ps1 | |
# | |
# Basic connection stuff | |
$cred = Get-Credential | |
Import-Module MsOnline | |
Connect-MsolService -Credential $cred | |
# Get list of tenants & loop |
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
# | |
# Manage Exchange Online Delegated Tenants.ps1 | |
# | |
# Setup credentials | |
$cred = Get-Credential | |
Connect-MsolService -Credential $cred | |
# Get list of tenants & loop | |
Get-MsolPartnerContract -All | ForEach { |