Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On the Server:

...

  1. To configure the station to receive remote commands
    1. Enter Enable-PSRemoting –Force  
       
  2. To enable Credential Security Service Provider (CREDSSP) authentication on the local server
    1. Enter Enable-WSManCredSSP –Role Server  

  3. To increase the maximum number of PS shells per user to 25 and to increase the max memory per shell to 600MB
    1. Enter winrm set winrm/config/winrs '@{MaxShellsPerUser="25"}' 
    2. Enter winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="600"}' 

       

  4. To Return all users who have the SharePoint_Shell_Access role
    1. Enter Get-SPShellAdmin
       
  5. If the desired user is not listed, you can add a specified service account to the SharePoint_Shell_Access role for a given database
    1. Enter Add-SPShellAdmin -UserName Domain\Username -Database (Get-SPContentDatabase -Identity “ContentDatabaseName”)  
    2. Replace Domain\Username with the desired user
    3. Replace ContentDatabaseName with the desired Content Database

      Info
      Note: You will need to run this command for all content databases for the user(s) who need access.  To grant access to all Content Databases enter Get-SPDatabase | Add-SPShellAdmin DOMAIN\UserName
  6. To Return all users who have the SharePoint_Shell_Access role and confirm the desired user is now listed
    1. Enter Get-SPShellAdmin
       
  7. To open the permissions dialog box
    1. Enter Set-PSSessionConfiguration -Name Microsoft.PowerShell32 –ShowSecurityDescriptorUI
    2.  Add the desired user(s) and ensure they have Read and Execute permissions
    3. Click OK to save the changes

  8. Follow step 7a to ensure the permissions were successfully applied

...