Where-Object[-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>]-CEQ[<CommonParameters>] PowerShell Where-Object[-InputObject <PSObject>] [-Property] <String> [[-Value] <Object>]-NE[<CommonParameters>] PowerShell Where-Object[-InputObject <PSObject>] [-Property] <String>...
有关详细信息,请参阅 about_Calculated_Properties。 展开表 类型: Object[] Position: 0 默认值: None 必需: False 接受管道输入: False 接受通配符: False 输入 PSObject 可以通过管道将任何对象传递给此 cmdlet。 输出 GroupInfo 默认情况下,此 cmdlet 返回 GroupInfo 对象。 Hashtable 使用AsHashTable 参数时...
The Equals() method returns True if the File and Size properties of two MyFileInfoSet objects are the same. PowerShell Copy class MyFileInfoSet : System.IEquatable[Object] { [string]$File [int64]$Size [bool] Equals([Object] $obj) { return ($this.File -eq $obj.File) -and ($...
$created = Get-WinEvent -FilterHashtable @{ ProviderName=“Microsoft-Windows-PowerShell”; Id = 4104 } | Where-Object { <Criteria> }$sortedScripts = $created | sort { $_.Properties[0].Value } $mergedScript = -join ($sortedScripts | % { $_.Properties[2].Value })...
Calls the static properties and methods of a .NET class. To find the static properties and methods of an object, use the Static parameter of theGet-Membercmdlet. The member name may be an expression. PowerShell [datetime]::Now'MinValue','MaxValue'|ForEach-Object{ [int]::$_} ...
expanding multiple properties Expired Users Greater than 30 Days Export - Import Machine Key -> IIS Export AD Attributes(LastLogon,WhenCreated,pwdLastSet) to CSV Export AD structure to CSV with OU breakdown Export ad user with member of group only Export AD username based on e-mail address expo...
This value identifies the recipient as a mail-enabled object, and shouldn't be confused with multiple email addresses for the same recipient (also known as proxy addresses). A recipient can have only one Alias value. The maximum length is 64 characters. The Alias value can contain letters, ...
This value identifies the recipient as a mail-enabled object, and shouldn't be confused with multiple email addresses for the same recipient (also known as proxy addresses). A recipient can have only one Alias value. The maximum length is 64 characters. The Alias value can contain letters, ...
This makes the PipelineVariable easier to use than a specific temporary variable, which might need to be assigned in multiple locations. Unlike $_ or $PSItem, using a PipelineVariable allows any pipeline command to access pipeline values passed (and saved) by commands other than the imm...
Multiple YAML documents Unserializing multiple documents results in an array representing the contents of each document. The result of this does not translate back to the same documents if you pass it back through ConvertTo-Yaml. Import-Modulepowershell-yaml PS C:\>$yaml=@"---anArray:- 1- ...