Created
July 12, 2019 10:49
-
-
Save Josh00/456310900847c68f1275d508b9d76cb0 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
Get-ExecutionPolicy | |
Set-ExecutionPolicy RemoteSigned | |
$UserCredential = Get-Credential | |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection | |
Import-PSSession $Session -DisableNameChecking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment