PowerTip: Determine If PowerShell Command Exists

PowerTip: Determine If PowerShell Command Exists

  • Comments 3
  • Likes

Summary: Use Get-Help to determine if a Windows PowerShell command exists.

Hey, Scripting Guy! Question How can I find if a Windows PowerShell command (cmdlet or function) exists in my version of Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get-Help cmdlet. If Help returns, you can read about the command.
          If it does not return, follow up with Get-Command:

get-help my-coolfunction

get-command my-coolfunction

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Cool Stuff. In Order to check the help command online (Just to ensure the command availability in PowerShell Versions) We can use Get-Help Invoke-WebRequest -Online [We can easily check the versions] provided we have internet :)

  • gd