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: ,,,

About these ads
This entry was posted in PowerShell V2. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s