在不同的服务器上运行时,powershell给出不同的结果

时间:2019-04-17 16:01:05

标签: powershell powershell-v2.0 powershell-remoting

从Windows 2k12 R2远程运行并从Windows 2k8 R2本地运行时,“ get-wmiobject -class win32_share”给出不同的结果

我有一个文件服务器,该服务器托管在Windows 2k8 R2上。我正在运行命令(get-wmiobject -class win32_share)以在本地生成文件共享,并且正在提供正确的数据。 但是,当我从Windows 2012 R2服务器运行命令(get-wmiobject -class win32_share -computername <<server_name>>)时,却分配了更多份额。

get-wmiobject -class win32_share

get-wmiobject -class win32_share -computername <<server_name>>

0 个答案:

没有答案
相关问题