C# Powershell SDK 3
要让Powershell 3 SDK功能在Windows XP、Vista和7下工作,而用户无需安装Powershell 3,正确的方法是什么 程序集:system.management.automation.dll 基本上,此命令必须在Windows上运行,而无需安装Powershell 3.0:C# Powershell SDK 3,c#,.net,powershell-3.0,C#,.net,Powershell 3.0,要让Powershell 3 SDK功能在Windows XP、Vista和7下工作,而用户无需安装Powershell 3,正确的方法是什么 程序集:system.management.automation.dll 基本上,此命令必须在Windows上运行,而无需安装Powershell 3.0: Import-Module NetConnection Get-NetConnectionProfile | ForEach-Object {Set-NetConnectionProfile -I
Import-Module NetConnection
Get-NetConnectionProfile | ForEach-Object {Set-NetConnectionProfile -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private}
正在讨论的模块。。i、 e.
NetConnection
不是Powershell SDK的一部分。
它是Windows Server 2012/8本身的一部分。
见-
关键是,即使您在这些较旧的操作系统上单独安装了Powershell V3,它也不会对您有所帮助。
所讨论的模块很可能依赖于其他一些核心windows组件本身。
(例如,它是位于
根/StandardCimv2/MSFT\u NetConnectionProfile
的WMI类的包装器)现在我明白了。非常感谢。