Skip to content

Instantly share code, notes, and snippets.

@Josh00
Created July 12, 2019 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Josh00/456310900847c68f1275d508b9d76cb0 to your computer and use it in GitHub Desktop.
Save Josh00/456310900847c68f1275d508b9d76cb0 to your computer and use it in GitHub Desktop.
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