0
我试图找到一个64位版本的“win32_computersystem”Get-WmiObject及其属性的等价物?我一直在寻找,但无法找到它。任何建议,将不胜感激..寻找64位版本的32位等效WmiObject
function GetStatus ($system = $_.name) {
$userlogon = $null
$userlogon= gwmi -Class win32_computersystem -ComputerName $system | select -ExpandProperty username -ErrorAction Stop
}
感谢,
米奇
你会期待“win32_computersystem”的64位版本是什么?前缀'Win32_'大多是历史性的,并不意味着它在64位进程中不可用(例如比较32位和64位PowerShell实例中的代码结果)。 – Richard 2013-04-23 08:28:02