Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Powershell SDK 3_C#_.net_Powershell 3.0 - Fatal编程技术网

C# Powershell SDK 3

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

要让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  -InterfaceIndex $_.InterfaceIndex -NetworkCategory Private}

正在讨论的模块。。i、 e.
NetConnection
不是Powershell SDK的一部分。 它是Windows Server 2012/8本身的一部分。 见-

关键是,即使您在这些较旧的操作系统上单独安装了Powershell V3,它也不会对您有所帮助。 所讨论的模块很可能依赖于其他一些核心windows组件本身。
(例如,它是位于
根/StandardCimv2/MSFT\u NetConnectionProfile
的WMI类的包装器)

现在我明白了。非常感谢。