次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン |
windows:powershell:commands:object_manipulation [2020/05/29 15:45] – 作成 ともやん | windows:powershell:commands:object_manipulation [2020/06/15 12:09] – ともやん |
---|
</style> | </style> |
</html> | </html> |
====== オブジェクト操作 *-Object ====== | ====== オブジェクト操作 (Select / Where / Group / Sort / ForEach -Object) ====== |
| |
===== オブジェクト操作関連のコマンドレット ===== | ===== オブジェクト操作関連のコマンドレット ===== |
</code> | </code> |
</WRAP> | </WRAP> |
| |
| **Microsoft.PowerShell.Utility** モジュールのコマンドレットを取得してソートする。\\ |
| <WRAP prewrap 100%> |
| <code powershell> |
| $ Get-Command | Where-Object {$_.ModuleName -eq 'Microsoft.PowerShell.Utility'} | Sort-Object -Property Name |
| </code> |
| </WRAP> |
| <WRAP prewrap 100% #result_long> |
| <code powershell> |
| CommandType Name Version Source |
| ----------- ---- ------- ------ |
| Cmdlet Add-Member 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Add-Type 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Clear-Variable 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Compare-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertFrom-Csv 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertFrom-Json 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertFrom-Markdown 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertFrom-SddlString 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertFrom-StringData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertTo-Csv 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertTo-Html 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertTo-Json 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet ConvertTo-Xml 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Debug-Runspace 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Disable-PSBreakpoint 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Disable-RunspaceDebug 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Enable-PSBreakpoint 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Enable-RunspaceDebug 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Export-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Export-Clixml 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Export-Csv 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Export-FormatData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Export-PSSession 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Format-Custom 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Format-Hex 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Format-List 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Format-Table 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Format-Wide 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Culture 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Date 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Error 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Event 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-EventSubscriber 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-FileHash 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-FormatData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Host 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-MarkdownOption 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Member 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-PSBreakpoint 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-PSCallStack 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Random 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Runspace 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-RunspaceDebug 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-TraceSource 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-TypeData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-UICulture 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Unique 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Uptime 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Variable 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Get-Verb 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Group-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-Clixml 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-Csv 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-LocalizedData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-PowerShellDataFile 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Import-PSSession 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Invoke-Expression 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Invoke-RestMethod 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Invoke-WebRequest 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Join-String 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Measure-Command 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Measure-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-Event 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-Guid 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-TemporaryFile 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-TimeSpan 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet New-Variable 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Out-File 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Out-GridView 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Out-Printer 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Out-String 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Read-Host 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Register-EngineEvent 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Register-ObjectEvent 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Remove-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Remove-Event 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Remove-PSBreakpoint 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Remove-TypeData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Remove-Variable 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Select-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Select-String 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Select-Xml 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Send-MailMessage 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-Alias 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-Date 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-MarkdownOption 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-PSBreakpoint 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-TraceSource 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Set-Variable 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Show-Command 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Show-Markdown 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Sort-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Start-Sleep 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Tee-Object 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Test-Json 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Trace-Command 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Unblock-File 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Unregister-Event 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Update-FormatData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Update-List 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Update-TypeData 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Wait-Debugger 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Wait-Event 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Debug 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Error 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Host 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Information 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Output 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Progress 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Verbose 7.0.0.0 Microsoft.PowerShell… |
| Cmdlet Write-Warning 7.0.0.0 Microsoft.PowerShell… |
| </code> |
| </WRAP> |
| |
| ===== 参考文献 ===== |
| [[https://docs.microsoft.com/ja-jp/powershell/scripting/samples/removing-objects-from-the-pipeline--where-object-|パイプラインからオブジェクトを削除する (Where-Object) - PowerShell | Microsoft Docs]]\\ |
| |