Page 1 of 1

Listing all the commands in PowerShell

PostPosted: Wed May 04, 2016 2:42 pm
by admin
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.