Thursday, February 13, 2014

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
follow me:- http://msexchange.me
Regards
Sukhija Vikas

No comments:

Post a Comment