Hi,
I have a SharePoint Farm setup, having 3 servers with SharePoint 2013 installed and a database server separate. I was trying to get data from all the servers using power shell remotely. I have already done following steps:
- Enabled PSRemoting.
- Followed steps to give user required privileges using Add-SPShellAdmin
- Using CredSSP authentication for remotely connecting using PowerShell.
- Added PSSnapin for SharePoint.
Now I am able to get data for Get-SPTimerJob and Get-SPServiceInstance but when I am trying to execute Get-SPWebApplication or Get-SPContentDatabase cmdlets then it is hanging forever and not returning any data or throwing any error. Someone please tell if I am missing some permissions or anything else and/or suggest any other solution [any other cmdlet to get similar data, etc.]. Also, please tell how can I log the errors or problems if it is throwing any but I am not able to see.
Its very urgent for my monitoring purpose. Thanks in advance.