Enable Powershell Re-moting for SharePoint 2010

Hi Readers,

Today  I am sharing a way to enable power-shell remote for SharePoint 2010.

On the SharePoint server that you want to remote in enter below command:

Enable-PSRemoting

Capture1

Continue with Yes..

Increase memory of the remote shell (enter this on sharepoint server)

Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1024

by default its 150 MB only.

Now Setup CredSSP

Enable-WSManCredSSP –Role Server  (enter this on sharepoint server)

Capture2

Now go to client machine from which you will launch the shell remotely

Enable-WSManCredSSP -Role client -DelegateComputer *

* means all but you can restrict it as well by entering the Name.

Now you are ready to use the remote shell from client machine

Enter-PSSession -ComputerName “Server name” -Authentication CredSSP –Credential domain\userid

This will prompt you for  password, enter the password and you are in remote shell.

Capture3

Regards

Sukhija Vikas

Advertisements

One thought on “Enable Powershell Re-moting for SharePoint 2010

  1. Pingback: Sharepoint Content Database Size Report | Microsoft Technologies Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s