Sharepoint - How do I install the 2013 SharePoint PowerShell module on my Windows 7 client computer?
Instead of using PowerShell Remoting with SharePoint you could consider another approach.
Since SharePoint 2013 supports several sets of APIs, you could utilize client APIs (CSOM/REST) in PowerShell.
As you already mentioned Microsoft released Windows PowerShell for SharePoint Online for working with SharePoint Online. This SDK uses CSOM as the underlying API for SharePoint Online cmdlets.
To summarize, instead of using PowerShell based on Server Side Object Model (SSOM), it is proposed to perform an operations using client APIs (CSOM/REST) in PowerShell
Example
Get-SPFeature cmdlet returns the SharePoint Features, for example:
Get-SPFeature -Limit ALL | Where-Object {$_.Scope -eq "SITE"}
The CSOM version:
$context = New-Object Microsoft.SharePoint.Client.ClientContext($url)
$siteFeatures = $context.Site.Features
$context.Load($siteFeatures)
$context.ExecuteQuery()
The REST version:
$Url = "https://tenant.sharepoint.com/_api/site/features"
$data = Invoke-RestSPO $Url Get $UserName $Password
Invoke-RestSPO
is a custom cmdlet, follow this post for a details.
References
- Choose the right API set in SharePoint 2013
- Consuming the SharePoint 2013 REST API from PowerShell
You have to be either on the sharepoint server, or use the PSSession module (PSRemote)
New-PSSession -ComputerName SP2013Server
Then add:
Add-PSSnapin Microsoft.SharePoint.Powershell