mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-15 18:33:43 +00:00
ps correction
This commit is contained in:
@ -53,7 +53,7 @@ Use this procedure if you use Exchange on-prem.
|
|||||||
```ps1
|
```ps1
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy Unrestricted
|
||||||
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
$cred=Get-Credential -Message "Please use your Office 365 admin credentials"
|
||||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://outlook.office365.com/ps1-liveid/' -Credential $cred -Authentication Basic -AllowRedirection
|
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://ps.outlook.com/powershell' -Credential $cred -Authentication Basic -AllowRedirection
|
||||||
Import-PSSession $sess
|
Import-PSSession $sess
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user