Advertisement
Guest User

Untitled

a guest
Mar 19th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $credential = Get-Credential
  2.     Import-Module MsOnline
  3.     Connect-MSolService -Credential $credential
  4. $NewPassword = Read-Host -Prompt "What is the new Password you would like to use?"
  5. $Tenants = Get-MsolPartnerContract -All
  6. $ClientDomains = $Tenants | foreach {$Domains = $_.TenantId; Get-MsolDomain -TenantId $Domains | Where-Object {($_.Status -eq "Verified") -and ($_.Name -notlike "*.onmicrosoft.com")}} | sort name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement