我执行了一个命令,并且使用了“fl”格式列表。输出是“fl”不被识别为内部或外部命令。我也遇到了与“Get-WmiObject”相同的问题。随意评论任何其他信息。格式列表无法在PowerShell中识别
C:\Windows\system32>powershell.exe -Command Get-WmiObject -query "select * from msiscsi_nicconfig where Instancename LIKE '%ROOT\\ISCSIPRT\\0000_0%'" -namespace "root/wmi" | fl MacAddress
输出:
'fl' is not recognized as an internal or external command,
operable program or batch file.
当我执行上面的命令我得到输出“拒绝访问” @Tony – sam
你搜索“否认获得-WmiObject可以访问“?这就是我会做的。这是一个完全独立的问题。 –
我刚刚执行了你指定的命令,输出是“拒绝访问” – sam