Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Sharepoint 2010 Remote Admin

$
0
0

This may be a sharepoint problem, but it seems like a powershell issue so I'm starting here.

I want to use powershell to administer a remote sharepoint 2010 server running on Windows Server 2008R2 (WMF2.0) from my Windows 7 workstation (WMF3.0). If I run these commands on my workstation:

$s = New-PSSession servername.domain.com
Invoke-Command –Session $sScriptBlock {Add-PSSnapin Microsoft.SharePoint.PowerShell}
Import-PSSession $s -CommandName Get-SP*
get-spsite -identity "http://projects.domain.com/sites/b01411"

I get the error:

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.

If I log on to the server using RDP and the same user account, start the Sharepoin Management Shell and run the same get-spsite command, it works just fine. Does anyone have any idea what I'm doing wrong?

Thanks


Viewing all articles
Browse latest Browse all 13067

Trending Articles