IT tutorials
 
Applications Server
 

Managing Exchange Server 2010 : The Exchange Management Shell (part 2) - Remote PowerShell

12/20/2012 11:27:11 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

4 Remote PowerShell

The Remote Shell is new in Exchange Server 2010, making it possible to connect to an Exchange Server 2010 server at a remote location. The workstation doesn't have to be in the same domain or even have the Exchange Management Tools installed – as long as the proper credentials are used, it will work. With this kind of functionality, it's now as easy to manage your Exchange Servers in another part of the building as your Exchange Server in a datacenter in another part of the country.

When the Exchange Management Shell is opened via Start Menu> All Programs> Exchange Server 2010, the Exchange Management Shell will automatically connect to the Exchange Server 2010 you're logged on to. But using the remote options, it's also possible to connect to a remote Exchange Server at this stage.

To use the Remote Shell, you'll need to log on to a Windows Server 2008 (R2) server or Windows 7 workstation that has the Windows Management Framework installed. The Management Framework consists of PowerShell 2.0 and Windows Remote Management (WinRM) 2.0, and can be downloaded from the Microsoft website: HTTP://TINYURL.COM/POWERSHELL2

Make sure that the workstation (or server) supports remote signed scripts. Due to security constraints, this is disabled by default. You can enable this support by opening a Windows PowerShell command prompt and entering:



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:



The PowerShell on the workstation will now connect to the remote Exchange Server using a default SSL connection and, RBAC-permitting, all Exchange cmdlets will be available. It's incredibly easy.

Figure 2. Get Mailbox information on a remote PowerShell session.

To end the remote PowerShell session, just enter the following command:



Admittedly, the above example is from a server that's also a member of the same Active Directory Domain. To connect to a remote Exchange Server 2010 server that's available over the Internet, multiple steps are required. The first step is to create a variable in the PowerShell command prompt that contains the username and password for the remote session:



A pop-up box will appear, requesting a username and password for the remote Exchange environment. Once you've filled in the credentials, the following command will create a new session that will setup a connection to the Exchange environment. The $Credential variable is used to pass the credentials to the Exchange environment, and then the session is imported into PowerShell:



Figure 3. Getting Mailbox information using the Remote PowerShell from an Exchange Server that's somewhere in a datacenter.

NOTE

If you want to connect to a remote Exchange Server 2010 server over the Internet you have to remember to enable Basic authentication on the remote server. Open the Internet Information Services (IIS) Manager on the server, navigate to the Default Website and select the /PowerShell Virtual Directory. In the results pane, under IIS double-click on Authentication. Here you can enable Basic Authentication.

The examples were for the Active Directory Domain Administrator, who automatically has the remote management option enabled. To enable another user for remote management, enter the following command:


 
Others
 
- Managing Exchange Server 2010 : The Exchange Management Shell (part 1) - Pipelining, Bulk user creation in the Exchange Management Shell
- Installing Exchange Server 2010 into an existing Exchange Server 2007 environment
- Microsoft Dynamics CRM 2010 : Editing Dashboards
- Microsoft Dynamics CRM 2010 : Creating Additional Dashboards
- Exposing Hidden Features in Microsoft Dynamics GP 2010 : Gaining the option to Process Taxes in the General Ledger
- Exposing Hidden Features in Microsoft Dynamics GP 2010 : Improving information with Tax Dates in transactions
- Exposing Hidden Features in Microsoft Dynamics GP 2010 : Controlling Posting Dates when not posting by batch, Reducing posting steps with better Printing Control
- Using Windows Azure WCF Services in SharePoint and Office : WCF Services in Windows Azure and Excel Services
- Using Windows Azure WCF Services in SharePoint and Office : Map an External Content Type to Word 2010
- Using Windows Azure WCF Services in SharePoint and Office : Create an External Content Type by Using Web Services and BCS
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us