Powershell Get-Help

One of the most popular tips for getting into PowerShell is to use the

Get-Help Cmdlet.

Using Get-Help is very handy but I had not realised how handy.

I thought what’s the big deal its only one of many handy Cmdlet’s but then I realised what was the big deal.

I wanted to get all the Cmdlet’s that supported remoting by using the “computername” parameter. I tried numerous ways including help from Twitter users, and all the solutions required 2 or 3 lines of PowerShell code.

I then found out that I could find out any Cmdlet parameter by using the Get-Help Cmdlet.

All you have to do is type get-help * –Parameter then the chosen parameter.

So typing get-help * -Parameter computername into my computer gives me:

Get-WinEvent
Cmdlet
Gets events from event logs and event tracing log files on local and remote computers.

Get-Counter
Cmdlet
Gets performance counter data from local and remote computers.

Test-WSMan
Cmdlet
Tests whether the WinRM service is running on a local or remote computer.

Invoke-WSManAction
Cmdlet
Invokes an action on the object that is specified by the Resource URI and by the selectors.

Connect-WSMan
Cmdlet
Connects to the WinRM service on a remote computer.

Disconnect-WSMan
Cmdlet
Disconnects the client from the WinRM service on a remote computer.

Get-WSManInstance
Cmdlet
Displays management information for a resource instance specified by a Resource URI.

Set-WSManInstance
Cmdlet
Modifies the management information that is related to a resource.

Remove-WSManInstance
Cmdlet
Deletes a management resource instance.

New-WSManInstance
Cmdlet
Creates a new instance of a management resource.

Invoke-Command
Cmdlet
Runs commands on local and remote computers.

New-PSSession
Cmdlet
Creates a persistent connection to a local or remote computer.

Get-PSSession
Cmdlet
Gets the Windows PowerShell sessions (PSSessions) in the current session.

Remove-PSSession
Cmdlet
Closes one or more Windows PowerShell sessions (PSSessions).

Receive-Job
Cmdlet
Gets the results of the Windows PowerShell background jobs in the current session.

Enter-PSSession
Cmdlet
Starts an interactive session with a remote computer.

Get-EventLog
Cmdlet
Gets the events in an event log, or a list of the event logs, on the local or remote computers.

Clear-EventLog
Cmdlet
Deletes all entries from specified event logs on the local or remote computers.

Write-EventLog
Cmdlet
Writes an event to an event log.

Limit-EventLog
Cmdlet
Sets the event log properties that limit the size of the event log and the age of its entries.

Show-EventLog
Cmdlet
Displays the event logs of the local or a remote computer in Event Viewer.

New-EventLog
Cmdlet
Creates a new event log and a new event source on a local or remote computer.

Remove-EventLog
Cmdlet
Deletes an event log or unregisters an event source.

Get-WmiObject
Cmdlet
Gets instances of Windows Management Instrumentation (WMI) classes or information about the available classes.

Invoke-WmiMethod
Cmdlet
Calls Windows Management Instrumentation (WMI) methods.

Get-Process
Cmdlet
Gets the processes that are running on the local computer or a remote computer.

Remove-WmiObject
Cmdlet
Deletes an instance of an existing Windows Management Instrumentation (WMI) class.

Register-WmiEvent
Cmdlet
Subscribes to a Windows Management Instrumentation (WMI) event.

Get-Service
Cmdlet
Gets the services on a local or remote computer.

Set-Service
Cmdlet
Starts, stops, and suspends a service, and changes its properties.

Set-WmiInstance
Cmdlet
Creates or updates an instance of an existing Windows Management Instrumentation (WMI) class.

Get-HotFix
Cmdlet
Gets the hotfixes that have been applied to the local and remote computers.

Test-Connection
Cmdlet
Sends ICMP echo request packets ("pings") to one or more computers.

Restart-Computer
Cmdlet
Restarts ("reboots") the operating system on local and remote computers.

Stop-Computer
Cmdlet
Stops (shuts down) local and remote computers.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

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

%d bloggers like this: