IT tutorials
 
Applications Server
 

Sharepoint 2010 : Windows PowerShell Remoting (part 1)

11/18/2014 8:19:25 PM
- Windows 10 Product Activation Keys Free 2019 (All Versions)
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire

Windows PowerShell offers great remote features through Windows Remote Management. Windows Remote Management is the Microsoft implementation of the WS-Management console protocol, which is a SOAP-based protocol designed as a common way for exchanging management information between heterogeneous systems.

To run Windows PowerShell remotely, you need to enable Windows Remote Management, which is included in Windows 7 and Windows Server 2008 Release 2. Enabling Windows Remote Management requires administrative privileges.

Figure 1 demonstrates running the Enable-PSRemoting cmdlet to configure the computer to receive Windows PowerShell remote commands that are sent using the WS-Management protocol. With this set up, you can run Windows PowerShell commands remotely from a different computer on the network.

Figure 1. Enabling Windows Remote Management

Running SharePoint 2010 cmdlets in a remote session also has two additional implications that you must consider:

  • Authentication The Windows Remote Management (or WinRM, which is the “backbone” for PowerShell remoting) supports a variety of authentication mechanisms, from clear password-based to Kerberos. However, since many of the SharePoint 2010 cmdlets communicate directly with the SQL server, they require a means of securely delegating a user’s credentials from the remote client through the SharePoint 2010 server and onto the backend server (scenario commonly known as “double hop”). The authentication protocol that does this best for WinRM is Microsoft’s Credential Security Support Provider (CredSSP), which means it must be enabled for you to be able to use SharePoint 2010 cmdlets and object model remotely. You can enable CredSSP on the server using the following command:

         PS > Enable-WSManCredSSP -Role Server

    It is also required to enable CredSSP on each client as demonstrated here:

         PS > Enable-WSManCredSSP -role client -delegatecomputer
    SPServer01.powershell.nu
  • Memory Limit WinRM implements a set of quotas for remote users, designed to make the service more robust and reliable. One of such quotas is the maximum amount of memory that can be allocated to a remote shell, which by default is set to 150MB. Now, some SharePoint 2010 cmdlets can potentially use large amounts of memory (even with all the memory management logic in place), which means they can fail if run in this default configuration. If you run SharePoint 2010 cmdlets remotely you should consider increasing the quota setting to at least 1000MB as demonstrated here:

         PS > Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1000
 
Others
 
- Sharepoint 2010 : Windows PowerShell Scripts (part 3) - Writing Comment-Based Help Topics in Scripts,Using Functions in Scripts , Customizing Windows PowerShell with Profile Scripts
- Sharepoint 2010 : Windows PowerShell Scripts (part 2) - Executing Scripts, Using Parameters in Scripts
- Sharepoint 2010 : Windows PowerShell Scripts (part 1) - Setting the Execution Policy
- Sharepoint 2010 : Windows PowerShell Functions
- Sharepoint 2013 : Security and Policy - SharePoint Users
- Sharepoint 2013 : Security and Policy - Permissions and Permission Levels (part 2) - Creating Custom Permission Levels
- Sharepoint 2013 : Security and Policy - Permissions and Permission Levels (part 1)
- Sharepoint 2013 : Security and Policy - Security Administration
- Installing Exchange Server 2010 : Command-Line Setup (part 2) - Command-Line Server Recovery Options , Command-Line Delegated Server Installation , Installing Language Packs
- Installing Exchange Server 2010 : Command-Line Setup (part 1) - Command-Line Installation Options
 
 
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
programming4us programming4us
 
Popular tags
 
Video Tutorail Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS