O'Reilly logo

Automating Microsoft® SharePoint® 2010 Administration with Windows PowerShell® 2.0 by Shannon Bray, Gary Lapointe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Use Classic Remoting

With classic remoting, there is no Windows PowerShell–specific technology in use. Rather, each cmdlet that is capable of communicating with remote computers implements its own mechanism, which is usually RPC-or DCOM-based.

We can get a list of the cmdlets that support the ability to work with remote computers natively by using the Get-Command cmdlet:

Get-Command -CommandType Cmdlet | where {
  $_.Name -notlike “*WSMan*” -and `
  $_.Parameters.Keys -contains “ComputerName” -and `
  $_.Parameters.Keys -notcontains “Session”}

In the previous example, we retrieve all cmdlets that provide the -ComputerName parameter, and additionally, we exclude those cmdlets that are specific to Windows PowerShell Remoting by filtering out cmdlets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required