PowerShell 复制 Get-LogProperties [-Name] <Object> [<CommonParameters>]说明此cmdlet 仅在 Windows 平台上可用。此cmdlet 获取 Windows 事件日志的配置设置。 此 cmdlet 由 Enable-PSTrace 和Disable-PSTrace cmdlet 使用。示例示例1:获取 Windows PowerShell 事件日志的配置设置PowerShell 复制 ...
Win32_BIOS.Name="Phoenix ROM BIOS Options : System.Management.ObjectGetOptions ClassPath : \\JUNE-PC\root\cimv2:Win32_BIOS Properties : {BiosCharacteristics, BIOSVersion, BuildNumber, Caption...} SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...} Qualifiers : {dynamic, ...
about_Properties 项目 2024/05/09 1 个参与者 本文内容 简短说明 长说明 属性值 成员访问枚举 另请参阅 简短说明 介绍如何在 PowerShell 中使用对象属性。 长说明 PowerShell 使用称为 对象的结构化信息集合来表示数据存储中的项或计算机的状态。 通常,可以使用属于 Microsoft .NET Framework的对象,但也可以在 ...
默认情况下,所有模块的LogPipelineExecutionDetails属性设置为$False。 若要为模块启用模块日志记录,请使用以下命令格式。 模块必须导入到会话中,并且设置仅在当前会话中有效。 PowerShell复制 Import-Module<Module-Name> (Get-Module<Module-Name>).LogPipelineExecutionDetails =$true 若要为特定计算机上的所有会话...
PS>$object= [pscustomobject]@{ name ='USA'children = [pscustomobject]@{ name ='Southwest'} } PS>$objectname children --- --- USA @{name=Southwest}# Create a new object with selected propertiesPS>$newObject= [pscustomobject]@{ country =$object.name children =$object.children } ...
有关详细信息,请参阅about_Calculated_Properties。 类型:Object[] Position:0 默认值:Default properties 必需:False 接受管道输入:False 接受通配符:True -Stable 排序对象按照排序条件相等的顺序传递。 此参数已添加到 PowerShell v6.2.0 中。 展开表
如何从证书文件的Get-ChildItem命令列表中添加一个noteproperty FULLNAME,并将其传递给$obj New-Object ...
($snapshot in $snapshotSet) { Write-Host "快照标识符:" $snapshot.InstanceId Write-Host "创建时间:" $snapshot.Timestamp # 可以输出其他快照的信息,如大小、状态等 # Write-Host "大小:" $snapshot.GetSnapshotProperties().SnapshotDeviceObject.Size } # 释放 VSSBackupComponents 对象 $backup...
This example creates objects that have theName,Id, and working set (WS) properties of process objects. PowerShell Get-Process|Select-Object-PropertyProcessName, Id, WS Example 2: Select objects by property and format the results This example gets information about the modules used by the process...
Move-ItemProperty : The input object can't be bound to any parameters for the command either because the command doesn't take pipeline input or the input and its properties do not match any of the parameters that take pipeline input. At line:1 char:23 + $a | Move-ItemProperty <<< -Pa...