July 2017
Intermediate to advanced
648 pages
31h 9m
English
In the previous example, we explicitly set the credentials used to create the remote shell connection. This is optional and not required if the account you are currently logged on with has the appropriate Exchange permissions assigned. To create a remote shell session using your currently logged on credentials, use the following syntax to create the session object:
$session = New-PSSession -ConfigurationName Microsoft.Exchange `
-ConnectionUri http://tlex01.testlabs.se/PowerShell/
Once again, import the session:
Import-PSSession $session
When the tasks have been completed, remove the session:
Remove-PSSession $session
You can see here that the commands are almost identical to the previous example, except this time we've ...
Read now
Unlock full access