IT Questions and Answers :)

Friday, August 30, 2019

Which of the following is NOT a *standard* way to get information on a cmdlet or what it will do in PowerShell?

Which of the following is NOT a *standard* way to get information on a cmdlet or what it will do in PowerShell?

  • Get-Help <cmdlet>
  • help <cmdlet>
  • <cmdlet> -WhatIf
  • <cmdlet> -Help 

EXPLANATION

Get-Help

Once you have found the cmdlet you are looking for using Get-Command, you are going to want to know the syntax and how you can use that specific cmdlet. This is where Get-Help comes in, if you have ever used the command line in Windows you probably did something like this:

ipconfig /?
Well that doesn’t work in PowerShell, this is because in PowerShell a space is used to separate a command from its parameters. So instead we use Get-Help and pass a cmdlets name to Get-Help as a parameter.
Get-Help Get-Process

 

Share:

0 comments:

Post a Comment

Popular Posts