Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/24.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.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
.net WSMan PowerShell提供程序?_.net_Powershell - Fatal编程技术网

.net WSMan PowerShell提供程序?

.net WSMan PowerShell提供程序?,.net,powershell,.net,Powershell,如果你: Get-PSProvider 您看不到WSMan的提供程序,但您可以: Set-Location WSMan:\ 在PowerShell 3.0中,WSMAN是Microsoft.WSMAN.Management模块的一部分,默认情况下不会加载该模块。如果执行其中一个管理模块命令,PowerShell将隐式加载该模块,并且WSMAN驱动器可见 PS> Test-WSMan wsmid : http://schemas.dmtf.org/wbem/wsma

如果你:

Get-PSProvider
您看不到WSMan的提供程序,但您可以:

Set-Location WSMan:\

在PowerShell 3.0中,WSMAN是Microsoft.WSMAN.Management模块的一部分,默认情况下不会加载该模块。如果执行其中一个管理模块命令,PowerShell将隐式加载该模块,并且WSMAN驱动器可见

PS> Test-WSMan

wsmid           : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor   : Microsoft Corporation
ProductVersion  : OS: 0.0.0 SP: 0.0 Stack: 3.0


PS> Get-PSProvider | ft name

Name
----
Alias
Environment
FileSystem
Function
Registry
Variable
WSMan

或者,您可以显式加载管理模块。

我在powershell v3.0上,我可以在powershell 3上的
get-psprovider
im列表中看到wsman,但我没有启用任何类似psremoting的功能,是吗?是的。Psremoting在此启用。对我来说,是winrm服务没有运行,所以我必须通过winrm配置启动它,然后测试WSMan是否工作。