我尝试以非管理员用户身份查询 MSFT 类
Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Users\john.doe> Get-WmiObject -Query "SELECT * FROM MSFT_Disk"
-Namespace Root/Microsoft/Windows/Storage Get-WmiObject : Access denied At line:1 char:1
+ Get-WmiObject -Query "SELECT * FROM MSFT_Disk" -Namespace Root/Microsoft/Window ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
PS C:\Users\john.doe>
我可以查询其他命名空间,例如 CIMv2
我验证了“Root/Microsoft/Windows/Storage”命名空间安全性已为 john.doe 用户(域用户)设置了所有复选框
看起来 Root/Microsoft/Windows/* 命名空间需要一些额外的权限(例如,我对 MSFT_SmbConnection 的访问也被拒绝),但我不知道需要什么权限