Where-Object[-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>]-Match[<CommonParameters>] PowerShell Where-Object[-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>]-CEQ[<CommonParameters>] PowerShell
Sort-Object [-Descending] [-Unique] -Bottom <Int32> [-InputObject <PSObject>] [[-Property] <Object[]>] [-Culture <String>] [-CaseSensitive] [<CommonParameters>]说明Sort-Object cmdlet 根据对象属性值按升序或降序对对象进行排序。 如果命令中不包含排序属性,PowerShell 将使用第一个输入对象的默认...
Select-Object[-InputObject <PSObject>] [[-Property] <Object[]>] [-ExcludeProperty <String[]>] [-ExpandProperty <String>] [-Unique] [-CaseInsensitive] [-Last <Int32>] [-First <Int32>] [-Skip <Int32>] [-Wait] [<CommonParameters>] ...
类型:String Position:Named 默认值:None 必需:False 接受管道输入:False 接受通配符:False -DifferenceObject 指定与引用对象进行比较的对象。 类型:PSObject[] Position:1 默认值:None 必需:True 接受管道输入:True 接受通配符:False -ExcludeDifferent 指示此 cmdlet 仅显示相等的比较对象的特征。 放弃对象之间的差异...
Select-String[-Culture <String>]-InputObject<PSObject> [-Pattern] <String[]>-Raw[-SimpleMatch] [-CaseSensitive] [-List] [-NoEmphasis] [-Include <String[]>] [-Exclude <String[]>] [-NotMatch] [-AllMatches] [-Encoding <Encoding>] [-Context <Int32[]>] [<CommonParameters>] ...
Group-Object Import-Alias Import-Clixml Import-Csv Import-LocalizedData Import-PowerShellDataFile Import-PSSession Invoke-Expression Invoke-RestMethod Invoke-WebRequest Join-String Measure-Command Measure-Object New-Alias New-Event New-Guid New-Object ...
Success! I now have converted text output to a PowerShell object. At this point, this is enough to become anOutput Handlerfor a Crescendo module. If we want to get fancier, we can parse the address columns into the IP Address and the Port. That data is in$column[1]and$column[2]. ...
[-UnixSocket <UnixDomainSocketEndPoint>] [-Proxy <Uri>] [-ProxyCredential <PSCredential>] [-ProxyUseDefaultCredentials] [-Body <Object>] [-Form <IDictionary>] [-ContentType <String>] [-TransferEncoding <String>] [-InFile <String>] [-OutFile <String>] [-PassThru] [-Resume] [-SkipHttp...
这里对应到我们的wmic.exe的命令就是wmic /NAMESPACE:"rootCIMV2" PATH Win32_OperatingSystem, 那么还有很多类可以调用,比如:Get-WmiObject -Class Win32_Process,这条命令会获取到所有的本地计算机的进程,我们选择一个进程来查看Get-WmiObject -Class Win32_Process | Where-Object {$_.name -like "*explorer...
Fix Get-ItemProperty to report non-terminating error for cast exception (#21115) (Thanks @ArmaanMcleod!) Add -PropertyType argument completer for New-ItemProperty (#21117) (Thanks @ArmaanMcleod!) Fix a bug in how Write-Host handles XmlNode object (#24669) (Thanks @brendandburns!) Code Cl...