Versions Compared

Key

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

...

...

...

...

...

Tip

Open a Windows PowerShell session as administrator.

  1. To configure

    Configure the station to receive remote commands:

  2. Enter
  3. No Format
    Enable-PSRemoting –Force
  4.  
  5.  

  6. To enable

    Enable Credential Security Service Provider (CREDSSP) authentication on the local server:

    Enter
    No Format
    Enable-WSManCredSSP –Role Server
     
  7. To increase

    Increase the maximum number of PS shells per user to 25

    and to increase the max memory per shell to 600MBEnter winrm set

    :

    No Format
    winrm set winrm/config/winrs '@{MaxShellsPerUser="25"}'
     Enter winrm set
  8. Increase the max memory per shell to 600MB:

    No Format
    winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="600"}'
     

     

  9. To

    Return all users who have the SharePoint_Shell_Access role:

    No Format
    Enter
    Get-SPShellAdmin
     

    Highlight

    If the desired user is not listed, you can add a specified service account to the SharePoint_Shell_Access role for a given database:

    Note

    Replace Domain\Username with the desired user and ContentDatabaseName with the desired content database.

    No Format
    Enter Add-SPShellAdmin -UserName Domain\Username -Database (Get-SPContentDatabase -Identity “ContentDatabaseName”)
  10.   
  11. Replace Domain\Username with the desired user
  12. Replace ContentDatabaseName with the desired Content Database

    InfoNote:
  13.   
    Info
    You will need to run this command for all content databases for the user(s) who need access.
  14.  To
  15. Highlight
    To grant access to all Content Databases

  16. enter
  17. :

    No Format
    Get-SPDatabase | Add-SPShellAdmin DOMAIN\UserName
  18. To

    Return all users who have the SharePoint_Shell_Access role and confirm the desired user is now listed:

    Enter
    No Format
    Get-SPShellAdmin

    Anchor
    Step7

     

    Step7

  19. To open

    Open the permissions dialog box and enter:

    No Format
  20. Enter
  21.  Set-PSSessionConfiguration -Name Microsoft.PowerShell32 –ShowSecurityDescriptorUI
  22.  

  23. Add the desired user(s) and ensure they have Read and Execute permissions.

  24. Click OK to save the changes


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

    .

  26. Once the server requirements have been met, please

    view our

    review the Client Requirements

    page

    .

 

...

...