Perform the below steps on the SharePoint Server Machine: Open the PowerShell as administrator (Check if any Public network connection is available in the machine. If so, change it to Domain or Private and Proceed)
- Enable-PSRemoting -Force
- Enable-WSManCredSSP -Role Server -Force
Commands to increase maximum memory allocated per shell, recommended size is 1024 MB.
- Get-Item wsman:\localhost\shell\MaxMemoryPerShellMB (To check the current powershell memory size)
- Set-Item wsman:\localhost\shell\MaxMemoryPerShellMB -Value 1024 -Force ( Run this only if memory is less than 1024 MB)
- Set-Item wsman:\localhost\Plugin\Microsoft.PowerShell\Quotas\MaxMemoryPerShellMB -Value 1024 -Force ( Run this only if memory is less than 1024 MB)
- Restart-Service WinRM
Commands to increase maximum concurrent shells allowed per user, recommended count is 30.
- Get-Item wsman:\localhost\shell\MaxShellsPerUser (To check the maximum concurrent shells allowed per user)
- Set-Item wsman:\localhost\shell\MaxShellsPerUser -Value 30 -Force ( Run this only if count is less than 30)
- Restart-Service WinRM
Perform the below steps on the Local Machine (where SharePoint Manager Plus is installed): Open the PowerShell as administrator (Check if any Public network connection is available in the machine. If so, change it to Domain or Private and Proceed)
- Enable-PSRemoting -Force
- Enable-WSManCredSSP -Role Client -DelegateComputer "server.domain.com" (Fully Qualified Domain Name of the Remote server)
- Click here to check your Group policy settings.
Note: In case of remote server and local machine being in different domains, run the below commands in the local machine
- Enable-PSRemoting -Force
- Set-Item WSMan:\localhost\Client\TrustedHosts -Value "server.domain.com" (Fully Qualified Domain Name of the Remote server) -Concatenate -Force
- Restart-Service WinRM
This group policy settings needs to be done in machine where SharePoint Manager Plus application is installed.
To enable client-side CredSSP to allow user credential delegation for winrm for your target machine in the domain, set the following policy values:
- Computer Policy → Administrative Templates → System → Credentials Delegation → Allow Delegating Fresh Credentials → Set to enabled and add WSMAN/* to list of servers(For eg: WSMAN/mysharepointserver.domain.com), check the box for Concatenate OS defaults with input above
- Computer Policy → Administrative Templates → System → Credentials Delegation → Allow Delegating Fresh Credentials with NTLM-only server authentication → Set to enabled and add WSMAN/* to list of servers(For eg: WSMAN/mysharepointserver.domain.com), check the box for Concatenate OS defaults with input above
- Computer Policy → Administrative Templates → Windows Components → Windows Remote Management (WinRM) → WinRM Client → Allow CredSSP authentication → Set to enabled
Perform the below steps on the Local Machine (where SharePoint Manager Plus is installed): Open the PowerShell as administrator
- Enter-PSSession -ComputerName "FQDN_of_SharePoint_Server_name" -Credential "DOMAIN\farm_admin_username" -Authentication CredSSP (Press "Enter" and give password in the prompt opened)
- Add-PSSnapin Microsoft.SharePoint.PowerShell
- Get-SPFarm
Above command should display the name of the SharePoint Farm you are about to connect and it means successful configuration of the required PowerShell Pre-requisites. Now, you can connect the SharePoint Farm using the SharePoint Manager Plus application via this.
In case running the command "Get-SPFarm" throws the following error, please follow the below mentioned troubleshooting steps to finish the configuration,
Get-SPFarm : Microsoft SharePoint is not supported with version 4.0.30319.33440 of the Microsoft .Net Runtime.
At line:1 char:1
+ get-spfarm
+ ~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...SpCmdletGetFarm:SpCmdletGetFarm) [Get-SPFarm], PlatformN otSupportedException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SpCmdletGetFarm
Perform the below steps on the SharePoint Server Machine: Open the PowerShell as administrator,
Now, open the SharePoint Manager Plus installation location and go to ManageEngine\SharePoint Manager Plus\bin folder,
In the New Farm Details dialog box,
User account used for configuring the On-Premise Farm server must have the below mentioned privileges
Add-PSSnapin Microsoft.SharePoint.PowerShell
Get-SPDatabase | Add-SPShellAdmin DOMAIN\UserName [ Replace DOMAIN\UserName with actual User account]
Or you can do it by opening SQL Server Management Studio, assign the User with DBCREATOR, SECURITYADMIN and SYSADMIN Server Roles. Also, ensure that user has DBOWNER privilege over all the SharePoint databases.
Open up Central Web Administration, under manage web applications section, select each web application and click the user policy option on the top ribbon and add the user with Full Control privilege.
Or, to assign it through PowerShell Script, run the below script in the Remote machine's PowerShell
Add-PSSnapin Microsoft.SharePoint.PowerShell
$user = "DOMAIN\UserName"
$displayName = "User Display Name"
Get-SPWebApplication | foreach { `
$policy = $_.Policies.Add($user,$displayName) `
$role = $_.PolicyRoles.GetSpecialRole([Microsoft.SharePoint.Administration.SPPolicyRoleType]::FullControl) `
$policy.PolicyRoleBindings.Add($role) `
$_.Update() `
}
Also, ensure the user account have administrator access over all site collections in order to fetch in depth reports about site collections.
Copyright © 2024, ZOHO Corp. All Rights Reserved.