Posted: Wed Sep 12, 2018 2:53 pm
To help you better we need some information from you.
Code: Select all
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: PowerShell Studio 2018 version 5.5.154
32 or 64 bit version of product: 64 bit
32 or 64 bit OS:64 bit
*** Please add details and screenshots as needed below. ***
I am running PowerShell Studio 2018 version 5.5.154
I can connect to the remote server without any issues
I can list the SharePoint cmdlet get-spsite and it shows up
When I try and run get-spsite (see below) I receive an error on any SharePoint command.
I am the admin of the SharePoint 2016 server and the SQL server
Any ideas why I receive the error?
[SERVERNAME]: PS C:\Users\Username\Documents> Add-PSSnapin Microsoft.SharePoint.Powershell
[SERVERNAME]: PS C:\Users\Username\Documents> get-command get-spsite
CommandType Name Version Source
----------- ---- ------- ------
Cmdlet Get-SPSite 126.96.36.199 Microsoft.SharePoint.Powershell
[SERVERNAME]: PS C:\Users\Username\Documents> get-spsite
Cannot access the local farm. Verify that the local farm is properly configured, currently available, and that you have the appropriate permissions to access
the database before trying again.
+ CategoryInfo : InvalidData: (Microsoft.Share...SPCmdletGetSite:SPCmdletGetSite) [Get-SPSite], SPCmdletException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetSite
DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM