如何在 Windows 7 上使用带有 Powershell 3.0 的 new-smbshare?

Jes*_*lgo 8 powershell windows-7

我在 Windows 7 机器上安装了 Windows Management Framework 3.0 并尝试使用 New-SMBShare cmdlet,但是当我运行 get-command new-smb* 时,没有找到任何 cmdlet。如何在 Windows 7 中使用这个新的 cmdlet 以及任何其他新的 cmdlet?

Ste*_*ski 11

SMB 命令(和其他几个模块)特定于 Windows 8 和 Server 2012。您可以通过远程处理从 Windows 7 使用它们,但它们不针对 Windows 7 或 Server 2008 R2。

SMB 命令针对早期版本的操作系统中不存在的新 WMI 命名空间 (ROOT/Microsoft/Windows/SMB)。