| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | 
| windows:powershell:commands:get-command [2020/02/18 13:02]  –  ともやん | windows:powershell:commands:get-command [2022/06/04 04:11] (現在)  –  ともやん | 
|---|
| <html> | ====== Get-Command (alias: gcm) ====== | 
| <style> |  | 
| #result pre { |  | 
| height: 300px; |  | 
| overflow: scroll; |  | 
| overflow-x: hidden; |  | 
| font-size: 12px; |  | 
| } |  | 
| </style> |  | 
| </html> |  | 
| ====== Get-Command ====== |  | 
| 現在のセッションで使用できるコマンドを取得する。\\ | 現在のセッションで使用できるコマンドを取得する。\\ | 
|  |  | 
|  | ===== which コマンド (Linux) としての利用 ===== | 
|  | **which** コマンドは、PATH に登録されているディレクトリにある実行可能ファイルを、PATH の登録順で最初に見つかったファイルだけを表示する。\\ | 
|  |  | 
|  | Windows の PowerShell の場合。\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ Get-Command python | Select-Object Source | 
|  | </code> | 
|  | or | 
|  | <code powershell> | 
|  | $ gcm python | select Source | 
|  | </code> | 
|  | <WRAP> | 
| <WRAP prewrap 100% #result> | <WRAP prewrap 100% #result> | 
| <code powershell> | <code powershell> | 
| PS > Get-Command |  | 
|  | Source | 
|  | ------ | 
|  | C:\Users\tomoyan\scoop\apps\python\current\python.exe | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Linux の [[linux:powershell|PowerShell]] では、**which** を使うこともできるし、**Get-Command (alias: gcm)** を使うこともできる。\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ which python | 
|  | /usr/bin/python | 
|  |  | 
|  | $ gcm python | select Source | 
|  |  | 
|  | Source | 
|  | ------ | 
|  | /usr/bin/python | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Windows のコマンドプロンプトでは、もともと **where** コマンドが使える🤔\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code batch> | 
|  | > where python | 
|  | </code> | 
|  | </WRAP> | 
|  | <WRAP> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code batch> | 
|  | C:\Users\tomoyan\scoop\apps\python\current\python.exe | 
|  | C:\Users\tomoyan\scoop\shims\python.exe | 
|  | C:\Users\tomoyan\AppData\Local\Microsoft\WindowsApps\python.exe | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | しかし、Windows の PowerShell では、**where** コマンドは Alias の関係で使えない😅\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ where python | 
|  | $ | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Alias は **where** が **Where-Object** の別名になっているためである。(コマンドプロンプトのように PowerShell を利用すると混乱する😅💦)\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ gal where | 
|  | </code> | 
|  | </WRAP> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code powershell> | 
|  |  | 
|  | CommandType     Name                                               Version    Source | 
|  | -----------     ----                                               -------    ------ | 
|  | Alias           where -> Where-Object | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Windows の PowerShell では、**where.exe** とすると使える🙄\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ where.exe python | 
|  | </code> | 
|  | </WRAP> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code powershell> | 
|  | C:\Users\tomoyan\scoop\apps\python\current\python.exe | 
|  | C:\Users\tomoyan\scoop\shims\python.exe | 
|  | C:\Users\tomoyan\AppData\Local\Microsoft\WindowsApps\python.exe | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Windows の **where** コマンドは、以下に存在している🤯\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ gcm where.exe | 
|  | </code> | 
|  | </WRAP> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code powershell> | 
|  |  | 
|  | CommandType     Name                                               Version    Source | 
|  | -----------     ----                                               -------    ------ | 
|  | Application     where.exe                                          10.0.2020… C:\WINDOWS\system32\where.exe | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | Windows の PowerShell で **where** コマンドは容量だけ食って使い物にならなくなった😒ので、**where.exe** の別名として **which** を登録しておくと良い😁\\ | 
|  | <WRAP prewrap 100%> | 
|  | <code powershell> | 
|  | $ echo "sal which where.exe" >> $profile | 
|  | $ . $profile | 
|  | $ which python | 
|  | </code> | 
|  | </WRAP> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code powershell> | 
|  | C:\Users\tomoyan\scoop\apps\python\current\python.exe | 
|  | C:\Users\tomoyan\scoop\shims\python.exe | 
|  | C:\Users\tomoyan\AppData\Local\Microsoft\WindowsApps\python.exe | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | もしくは、[[windows:scoop|Scoop]] の [[windows:gow|Gow]] または [[windows:busybox|BusyBox]] をインストールすると **which** コマンドが使えるようになる😍\\ | 
|  | [[windows:gow|Gow (Gnu On Windows) - Linux コマンド群 (Cygwin 軽量版)]]\\ | 
|  | [[windows:busybox|BusyBox - UNIXコマンド詰め合わせセット🤤]]\\ | 
|  |  | 
|  | ===== Windows 10 ===== | 
|  | PowerShell の Cmdlet, Function, Alias などを調べる。\\ | 
|  | <code powershell> | 
|  | $ gcm Get-Command | 
|  | </code> | 
|  | <WRAP prewrap 100% #result> | 
|  | <code powershell> | 
|  |  | 
|  | CommandType     Name                                               Version    Source | 
|  | -----------     ----                                               -------    ------ | 
|  | Cmdlet          Get-Command                                        7.0.3.0    Microsoft.PowerShell.Core | 
|  |  | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | PowerShell モジュール内のコマンドを一覧する。\\ | 
|  | <code powershell> | 
|  | $ gcm -Module Microsoft.PowerShell.Management | 
|  | </code> | 
|  | <WRAP prewrap 100% #result_long> | 
|  | <code powershell> | 
|  |  | 
|  | CommandType     Name                                               Version    Source | 
|  | -----------     ----                                               -------    ------ | 
|  | Cmdlet          Add-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-Content                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-Item                                         7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-ItemProperty                                 7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-RecycleBin                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Convert-Path                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Copy-Item                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Copy-ItemProperty                                  7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Debug-Process                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ChildItem                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Clipboard                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ComputerInfo                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-HotFix                                         7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ItemPropertyValue                              7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Process                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-PSDrive                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-PSProvider                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Service                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-TimeZone                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Invoke-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Join-Path                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Move-Item                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Move-ItemProperty                                  7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-PSDrive                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-Service                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Pop-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Push-Location                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-ItemProperty                                7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-PSDrive                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-Service                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Rename-Computer                                    7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Rename-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Rename-ItemProperty                                7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Resolve-Path                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Restart-Computer                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Restart-Service                                    7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Resume-Service                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Clipboard                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Service                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-TimeZone                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Split-Path                                         7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Start-Process                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Start-Service                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Stop-Computer                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Stop-Process                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Stop-Service                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Suspend-Service                                    7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Test-Connection                                    7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Test-Path                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Wait-Process                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  |  | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | <code powershell> | 
|  | $ gcm | 
|  | </code> | 
|  | <WRAP prewrap 100% #result_long> | 
|  | <code powershell> | 
|  |  | 
| CommandType     Name                                               Version    Source | CommandType     Name                                               Version    Source | 
| </code> | </code> | 
| </WRAP> | </WRAP> | 
|  |  | 
|  | ===== Fedora 31 ===== | 
|  | <code powershell> | 
|  | PS > Get-Command | 
|  | </code> | 
|  | <WRAP prewrap 100% #result_long> | 
|  | <code> | 
|  |  | 
|  | CommandType     Name                                               Version    Source | 
|  | -----------     ----                                               -------    ------ | 
|  | Function        cd.. | 
|  | Function        cd\ | 
|  | Function        Clear-Host | 
|  | Function        Compress-Archive                                   1.2.4.0    Microsoft.PowerShell.Archive | 
|  | Function        Configuration                                      2.0.5      PSDesiredStateConfiguration | 
|  | Function        Expand-Archive                                     1.2.4.0    Microsoft.PowerShell.Archive | 
|  | Function        Find-Command                                       2.2.3      PowerShellGet | 
|  | Function        Find-DSCResource                                   2.2.3      PowerShellGet | 
|  | Function        Find-Module                                        2.2.3      PowerShellGet | 
|  | Function        Find-RoleCapability                                2.2.3      PowerShellGet | 
|  | Function        Find-Script                                        2.2.3      PowerShellGet | 
|  | Function        Get-CredsFromCredentialProvider                    2.2.3      PowerShellGet | 
|  | Function        Get-DscResource                                    2.0.5      PSDesiredStateConfiguration | 
|  | Function        Get-InstalledModule                                2.2.3      PowerShellGet | 
|  | Function        Get-InstalledScript                                2.2.3      PowerShellGet | 
|  | Function        Get-PSRepository                                   2.2.3      PowerShellGet | 
|  | Function        help | 
|  | Function        Install-Module                                     2.2.3      PowerShellGet | 
|  | Function        Install-Script                                     2.2.3      PowerShellGet | 
|  | Function        Invoke-DscResource                                 2.0.5      PSDesiredStateConfiguration | 
|  | Function        New-DscChecksum                                    2.0.5      PSDesiredStateConfiguration | 
|  | Function        New-ScriptFileInfo                                 2.2.3      PowerShellGet | 
|  | Function        oss | 
|  | Function        Pause | 
|  | Function        prompt | 
|  | Function        PSConsoleHostReadLine                              2.0.0      PSReadLine | 
|  | Function        Publish-Module                                     2.2.3      PowerShellGet | 
|  | Function        Publish-Script                                     2.2.3      PowerShellGet | 
|  | Function        Register-PSRepository                              2.2.3      PowerShellGet | 
|  | Function        Save-Module                                        2.2.3      PowerShellGet | 
|  | Function        Save-Script                                        2.2.3      PowerShellGet | 
|  | Function        Set-PSRepository                                   2.2.3      PowerShellGet | 
|  | Function        TabExpansion2 | 
|  | Function        Test-ScriptFileInfo                                2.2.3      PowerShellGet | 
|  | Function        Uninstall-Module                                   2.2.3      PowerShellGet | 
|  | Function        Uninstall-Script                                   2.2.3      PowerShellGet | 
|  | Function        Unregister-PSRepository                            2.2.3      PowerShellGet | 
|  | Function        Update-Module                                      2.2.3      PowerShellGet | 
|  | Function        Update-ModuleManifest                              2.2.3      PowerShellGet | 
|  | Function        Update-Script                                      2.2.3      PowerShellGet | 
|  | Function        Update-ScriptFileInfo                              2.2.3      PowerShellGet | 
|  | Cmdlet          Add-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Add-History                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Add-Member                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Add-Type                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Clear-Content                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-History                                      7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Clear-Item                                         7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-ItemProperty                                 7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Clear-Variable                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Compare-Object                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Convert-Path                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          ConvertFrom-Csv                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertFrom-Json                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertFrom-Markdown                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertFrom-SecureString                           7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          ConvertFrom-StringData                             7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertTo-Csv                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertTo-Html                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertTo-Json                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          ConvertTo-SecureString                             7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          ConvertTo-Xml                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Copy-Item                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Copy-ItemProperty                                  7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Debug-Job                                          7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Debug-Process                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Debug-Runspace                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Disable-ExperimentalFeature                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Disable-PSBreakpoint                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Disable-RunspaceDebug                              7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Enable-ExperimentalFeature                         7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Enable-PSBreakpoint                                7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Enable-RunspaceDebug                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Enter-PSHostProcess                                7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Enter-PSSession                                    7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Exit-PSHostProcess                                 7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Exit-PSSession                                     7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Export-Alias                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Export-Clixml                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Export-Csv                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Export-FormatData                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Export-ModuleMember                                7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Export-PSSession                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Find-Package                                       1.4.6      PackageManagement | 
|  | Cmdlet          Find-PackageProvider                               1.4.6      PackageManagement | 
|  | Cmdlet          ForEach-Object                                     7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Format-Custom                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Format-Hex                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Format-List                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Format-Table                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Format-Wide                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Alias                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-ChildItem                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Clipboard                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Command                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Credential                                     7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          Get-Culture                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Date                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Error                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Event                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-EventSubscriber                                7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-ExecutionPolicy                                7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          Get-ExperimentalFeature                            7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-FileHash                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-FormatData                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Help                                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-History                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-Host                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-ItemPropertyValue                              7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-Job                                            7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-MarkdownOption                                 7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Member                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Module                                         7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-Package                                        1.4.6      PackageManagement | 
|  | Cmdlet          Get-PackageProvider                                1.4.6      PackageManagement | 
|  | Cmdlet          Get-PackageSource                                  1.4.6      PackageManagement | 
|  | Cmdlet          Get-PfxCertificate                                 7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          Get-Process                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-PSBreakpoint                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-PSCallStack                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-PSDrive                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-PSHostProcessInfo                              7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-PSProvider                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-PSReadLineKeyHandler                           2.0.0      PSReadLine | 
|  | Cmdlet          Get-PSReadLineOption                               2.0.0      PSReadLine | 
|  | Cmdlet          Get-PSSession                                      7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Get-Random                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Runspace                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-RunspaceDebug                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-TimeZone                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Get-TraceSource                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-TypeData                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-UICulture                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Unique                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Uptime                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Variable                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Get-Verb                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Group-Object                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-Alias                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-Clixml                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-Csv                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-LocalizedData                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-Module                                      7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Import-PackageProvider                             1.4.6      PackageManagement | 
|  | Cmdlet          Import-PowerShellDataFile                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Import-PSSession                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Install-Package                                    1.4.6      PackageManagement | 
|  | Cmdlet          Install-PackageProvider                            1.4.6      PackageManagement | 
|  | Cmdlet          Invoke-Command                                     7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Invoke-Expression                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Invoke-History                                     7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Invoke-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Invoke-RestMethod                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Invoke-WebRequest                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Join-Path                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Join-String                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Measure-Command                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Measure-Object                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Move-Item                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Move-ItemProperty                                  7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-Alias                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-Event                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-Guid                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-Module                                         7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-ModuleManifest                                 7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-Object                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-PSDrive                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          New-PSRoleCapabilityFile                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-PSSession                                      7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-PSSessionOption                                7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-PSTransportOption                              7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          New-TemporaryFile                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-TimeSpan                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          New-Variable                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Out-Default                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Out-File                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Out-Host                                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Out-Null                                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Out-String                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Pop-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Push-Location                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Read-Host                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Receive-Job                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Register-ArgumentCompleter                         7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Register-EngineEvent                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Register-ObjectEvent                               7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Register-PackageSource                             1.4.6      PackageManagement | 
|  | Cmdlet          Remove-Alias                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Remove-Event                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Remove-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-ItemProperty                                7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-Job                                         7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Remove-Module                                      7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Remove-PSBreakpoint                                7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Remove-PSDrive                                     7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Remove-PSReadLineKeyHandler                        2.0.0      PSReadLine | 
|  | Cmdlet          Remove-PSSession                                   7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Remove-TypeData                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Remove-Variable                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Rename-Item                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Rename-ItemProperty                                7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Resolve-Path                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Save-Help                                          7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Save-Package                                       1.4.6      PackageManagement | 
|  | Cmdlet          Select-Object                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Select-String                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Select-Xml                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Send-MailMessage                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-Alias                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-Clipboard                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Content                                        7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Date                                           7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-ExecutionPolicy                                7.0.0.0    Microsoft.PowerShell.Security | 
|  | Cmdlet          Set-Item                                           7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-ItemProperty                                   7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-Location                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Set-MarkdownOption                                 7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-PackageSource                                  1.4.6      PackageManagement | 
|  | Cmdlet          Set-PSBreakpoint                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-PSDebug                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Set-PSReadLineKeyHandler                           2.0.0      PSReadLine | 
|  | Cmdlet          Set-PSReadLineOption                               2.0.0      PSReadLine | 
|  | Cmdlet          Set-StrictMode                                     7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Set-TraceSource                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Set-Variable                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Show-Markdown                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Sort-Object                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Split-Path                                         7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Start-Job                                          7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Start-Process                                      7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Start-Sleep                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Start-ThreadJob                                    2.0.3      ThreadJob | 
|  | Cmdlet          Start-Transcript                                   7.0.0.0    Microsoft.PowerShell.Host | 
|  | Cmdlet          Stop-Job                                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Stop-Process                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Stop-Transcript                                    7.0.0.0    Microsoft.PowerShell.Host | 
|  | Cmdlet          Tee-Object                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Test-Connection                                    7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Test-Json                                          7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Test-ModuleManifest                                7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Test-Path                                          7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Trace-Command                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Unblock-File                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Uninstall-Package                                  1.4.6      PackageManagement | 
|  | Cmdlet          Unregister-Event                                   7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Unregister-PackageSource                           1.4.6      PackageManagement | 
|  | Cmdlet          Update-FormatData                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Update-Help                                        7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Update-List                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Update-TypeData                                    7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Wait-Debugger                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Wait-Event                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Wait-Job                                           7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Wait-Process                                       7.0.0.0    Microsoft.PowerShell.Management | 
|  | Cmdlet          Where-Object                                       7.0.0.0    Microsoft.PowerShell.Core | 
|  | Cmdlet          Write-Debug                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Error                                        7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Host                                         7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Information                                  7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Output                                       7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Progress                                     7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Verbose                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | Cmdlet          Write-Warning                                      7.0.0.0    Microsoft.PowerShell.Utility | 
|  | </code> | 
|  | </WRAP> | 
|  |  | 
|  | ===== 参考文献 ===== | 
|  | [[https://docs.microsoft.com/ja-jp/powershell/module/microsoft.powershell.core/get-command|Get-Command (Microsoft.PowerShell.Core) - PowerShell | Microsoft Docs]]\\ | 
|  |  |