Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. NAME
  2. Get-Command
  3.  
  4. SYNOPSIS
  5. Gets all commands.
  6.  
  7.  
  8. SYNTAX
  9. Get-Command [[-Name] <String[]>] [[-ArgumentList] <Object[]>] [-All]
  10. [-CommandType {Alias | Function | Filter | Cmdlet | ExternalScript |
  11. Application | Script | Workflow | Configuration | All}]
  12. [-FullyQualifiedModule <ModuleSpecification[]>] [-ListImported] [-Module
  13. <String[]>] [-ParameterName <String[]>] [-ParameterType <PSTypeName[]>]
  14. [-ShowCommandInfo] [-Syntax] [-TotalCount <Int32>] [<CommonParameters>]
  15.  
  16. Get-Command [[-ArgumentList] <Object[]>] [-All] [-FullyQualifiedModule
  17. <ModuleSpecification[]>] [-ListImported] [-Module <String[]>] [-Noun
  18. <String[]>] [-ParameterName <String[]>] [-ParameterType <PSTypeName[]>]
  19. [-ShowCommandInfo] [-Syntax] [-TotalCount <Int32>] [-Verb <String[]>]
  20. [<CommonParameters>]
  21.  
  22.  
  23. DESCRIPTION
  24. The `Get-Command` cmdlet gets all commands that are installed on the
  25. computer, including cmdlets, aliases, functions, filters, scripts, and
  26. applications. `Get-Command` gets the commands from PowerShell modules and
  27. snap-ins and commands that were imported from other sessions. To get only
  28. commands that have been imported into the current session, use the
  29. ListImported parameter.
  30.  
  31. Without parameters, `Get-Command` gets all of the cmdlets, functions, and
  32. aliases installed on the computer. `Get-Command *` gets all types of
  33. commands, including all of the non-PowerShell files in the Path
  34. environment variable (`$env:Path`), which it lists in the Application
  35. command type.
  36.  
  37. `Get-Command` that uses the exact name of the command, without wildcard
  38. characters, automatically imports the module that contains the command so
  39. that you can use the command immediately. To enable, disable, and
  40. configure automatic importing of modules, use the
  41. `$PSModuleAutoLoadingPreference` preference variable. For more
  42. information, see about_Preference_Variables
  43. (About/about_Preference_Variables.md).
  44.  
  45. `Get-Command` gets its data directly from the command code, unlike
  46. `Get-Help`, which gets its information from help topics.
  47.  
  48. Starting in Windows PowerShell 5.0, results of the `Get-Command` cmdlet
  49. display a Version column by default. A new Version property has been added
  50. to the CommandInfo class.
  51.  
  52.  
  53. RELATED LINKS
  54. Online Version: http://go.microsoft.com/fwlink/?LinkId=821482
  55. Get-Help
  56.  
  57. REMARKS
  58. To see the examples, type: "get-help Get-Command -examples".
  59. For more information, type: "get-help Get-Command -detailed".
  60. For technical information, type: "get-help Get-Command -full".
  61. For online help, type: "get-help Get-Command -online"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement