Last active
August 29, 2015 14:23
-
-
Save nervouswiggles/70c647e290415c0d12ce to your computer and use it in GitHub Desktop.
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
-- | |
Set-ExecutionPolicy RemoteSigned -Force | |
$LiveCred = Get-Credential | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection | |
Get-PSSession | |
Import-PSSession $Session -AllowClobber | Out-Null | |
Import-Module MSOnline | |
connect-msolservice -credential $LiveCred | |
Get-MsolUser -All | measure | |
New-MsolUser -UserPrincipalName danielredfern2@technicalconfessions.onmicrosoft.com -DisplayName "David Redfern" -FirstName "David" -LastName "Redfern" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment