In addition to the system and hardware requirements, the following must be installed on the VitalSigns workstation/server.
- Powershell 4.0
- .NET Framework 4.5.1
The administration account must have the following:
- Active Directory credentials
- Member of Exchange Administrators group is ideal
- Requires the right to run remote Powershell commands
Return all users who have the SharePoint_Shell_Access role:
No Format |
---|
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”) |
Server Requirements:
Configure the station to receive remote commands:
No Format |
---|
Enable-PSRemoting –Force |
Enable Credential Security Service Provider (CREDSSP) authentication on the local server:
No Format |
---|
Enable-WSManCredSSP –Role Server |
Increase the maximum number of PS shells per user to 25:
No Format |
---|
winrm set winrm/config/winrs '@{MaxShellsPerUser="25"}' |
Increase the max memory per shell to 600MB:
No Format |
---|
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="600"}' |
.
Highlight |
---|
To grant access to all Content Databases: |
No Format |
---|
Get-SPDatabase | Add-SPShellAdmin DOMAIN\UserName |
Return all users who have the SharePoint_Shell_Access role and confirm the desired user is now listed:
No Format |
---|
Get-SPShellAdmin |
Open the permissions dialog box and enter:
No Format |
---|
Set-PSSessionConfiguration -Name Microsoft.PowerShell32 –ShowSecurityDescriptorUI |
Click OK to save the changes.
Once the server requirements have been met, please review the Client Requirements.
Client Requirements:
- Enter Enable-WSManCredSSP -Role client -DelegateComputer “SharePointServerName”
Enter $s=new-PSsession “SharePointServerName” - authentication credssp -credential $cred
- Enter Invoke-Command -Session $s -ScriptBlock {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
- Enter Invoke-Command -Session $s -ScriptBlock {get-SPContentDatabase}
- Enter Invoke-Command -Session $s -ScriptBlock {get-spserviceinstance}