I know this sounds easy, but just to be a reminder…
If you want to connect to Exchange server remotely, I would say the best way to do it is using PowerShell (actually you can just connect using remote desktop…), and to do that:
first create the user credentials:
PS C:\> $user1=Get-Credential
Then we need to create session options, these will be useful to avoid the certificate issues (if you were using self-signed or local CA certificate):
PS C:\> $sesop = New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck
Then, we create the session variable and link the user credentials to it:
PS C:\> $session2=New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://EXServerName/PowerShell -Credential $user1 -Authentication Basic -SessionOption $sesop
And then, we import the session into the PS:
PS C:\> Import-PSSession $session2
I have a note about connecting to Exchange using remote PowerShell, which is the Exchange server uses RBAC to give the user access to the cmdlets that are in his role group, so in case you did not see any command getting executed, you need to check the permissions on RBAC that the user you used has…
That was it, Thanks for reading
Recent Comments