powershell - powershell 在不同的服务器上运行时给出不同的结果
问题描述
'get-wmiobject -class win32_share' 在从 Windows 2k12 R2 远程运行和从 Windows 2k8 R2 本地运行时给出不同的结果
我有一个托管在 Windows 2k8 R2 上的文件服务器。我正在运行 command( get-wmiobject -class win32_share
) 以在本地生成文件共享,并且它提供了正确的数据。但是当我get-wmiobject -class win32_share -computername <<server_name>>
从 Windows 2012 R2 服务器运行 command() 时,它提供了更多的共享。
get-wmiobject -class win32_share
get-wmiobject -class win32_share -computername <<server_name>>
解决方案
推荐阅读
- django - Django DRF - 如何使用 CURL 与 POST 端点交互?
- python - 如果未找到元素,则继续执行脚本
- python - 测试 pygame.font.Font 的相等性
- node.js - 在 Node 应用程序中使用我的网络应用程序代码时,$.ajax 不是一个函数
- firebase - 通过 Firebase 身份验证从 Dart 调用 Google Cloud Run gRPC:证书由未知机构签名
- javascript - 如果存在,如何更新数组中的对象,否则将其作为新对象添加到 javascript 中的数组中?
- flutter - Flutter:在小部件测试中增加后结果没有获得最新值
- python - 当我在一个类中继承 sqlalchemy (flask app) 时,它无法识别 Column() 等函数
- arrays - 使用 Yield 和 Ruby 包装 HTML 标签
- reactjs - useSelector hook:如何正确使用第二个参数(shallowEqual)