Computername parameter

This is something I’ve been meaning to share for a while.  Many of the cmdlets in PowerShell v2 get an explicit remoting capability via the computername property.

get-help * -Parameter computername | sort name

Clear-EventLog
Connect-WSMan
Disconnect-WSMan
Enter-PSSession
Get-Counter
Get-EventLog
Get-HotFix
Get-Process
Get-PSSession
Get-Service
Get-WinEvent
Get-WmiObject
Get-WSManInstance
Invoke-Command
Invoke-WmiMethod
Invoke-WSManAction
Limit-EventLog
New-EventLog
New-PSSession
New-WSManInstance
Receive-Job
Register-WmiEvent
Remove-EventLog
Remove-PSSession
Remove-WmiObject
Remove-WSManInstance
Restart-Computer
Set-Service
Set-WmiInstance
Set-WSManInstance
Show-EventLog
Stop-Computer
Test-Connection
Test-WSMan
Write-EventLog

This is going to take a bit of working through but this expands the capabilities of PowerShell quite nicely.

Technorati Tags: ,,,

Leave a Reply