Pro Exchange Server 2013 Administration by Jaap Wesselius

Pro Exchange Server 2013 Administration by Jaap Wesselius

Author:Jaap Wesselius
Language: eng
Format: epub
ISBN: 9781430246954
Publisher: Apress


Remote PowerShell

As in Exchange 2010, it is possible in Exchange 2013 to use a remote PowerShell as well, making it feasible to connect a local Windows PowerShell instance to an Exchange 2013 server at a remote location. The workstation doesn’t have to be in the same domain; as long as the proper credentials and authentication method are used, it will work. With this kind of function, it’s now as easy to manage your Exchange 2013 servers in another part of the building as those servers in a datacenter in another part of the country. Needless to say, if you are using a nondomain client for remote PowerShell, you cannot use Kerberos. You have to change authentication on the PowerShell Virtual Directory to Basic Authentication for this to happen.

When the Exchange Management Shell is opened, it will automatically connect to the Exchange 2013 server you’re logged into. However, this is only true if you are logged into an Exchange server (Console or RDP) at the time. If you are on a management workstation, it will choose any Exchange server within your Active Directory site. Alternatively, by using the remote option it’s possible to connect to a remote Exchange server at this stage.

To use remote PowerShell, you need to log on to a Windows server or workstation that has the Windows Management Framework 3.0 installed. The Management Framework consists of PowerShell 3.0 and Windows Remote Management (WinRM) 3.0. Also, make sure that the workstation (or server) supports remote signed scripts. Owing to security constraints, this is disabled by default. You can enable the support by opening an elevated Windows PowerShell command prompt and entering:

Set-ExecutionPolicy RemoteSigned

The next step is to create a session that will connect to the remote Exchange server. When the session is created, it can be imported into PowerShell:

$Session = New-PSSession –ConfigurationName Microsoft.Exchange –ConnectionUri https://ams-exch01.contoso.com/PowerShell-Authentication Kerberos



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.