Listing all the commands in PowerShell

Listing all the commands in PowerShell

Postby admin » Wed May 04, 2016 2:42 pm

One of the first things to do if you are new to PowerShell is to list all the PowerShell commands.

To do this, open up the PowerShell console.

Type in the following and hit Enter :

get-command

This will display a long list of commands and functions you can use with PowerShell.
If the server is running particular roles such as Hyper-V you will see PowerShell commands relating to managing the Hyper-V environment and virtual machines.

In PowerShell, commands are called "cmdlets".

To display the list of commands page by page, you can pipe it to the more command.

Type in the following and hit Enter :

get-command | more


You can now see the display one page at a time.

By looking at the cmdlet and function names and seeing their description you would be able to pick which ones to use to perform the tasks that you require.
admin
Site Admin
 
Posts: 106
Joined: Mon Jan 18, 2010 11:05 am

Return to Powershell

Who is online

Users browsing this forum: No registered users and 5 guests

cron