如何通过Powershell访问远程计算机上的IIS:驱动器?
在远程计算机上本地运行该命令将返回应用程序池列表。是否有必须更改的安全设置?您忘记加载WebAdministration模块:如何通过Powershell访问远程计算机上的IIS:驱动器?,powershell,iis,Powershell,Iis,在远程计算机上本地运行该命令将返回应用程序池列表。是否有必须更改的安全设置?您忘记加载WebAdministration模块: PS C:\WINDOWS\system32> Invoke-Command -ComputerName "UABEP1" -ScriptBlock { Get-ChildItem -Path IIS:\AppPools } Cannot find drive. A drive with the name 'IIS' does not exist. +
PS C:\WINDOWS\system32> Invoke-Command -ComputerName "UABEP1" -ScriptBlock { Get-ChildItem -Path IIS:\AppPools }
Cannot find drive. A drive with the name 'IIS' does not exist.
+ CategoryInfo : ObjectNotFound: (IIS:String) [Get-ChildItem], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
+ PSComputerName : UABEP1
{ Import-Module WebAdministration; Get-ChildItem -Path IIS:\AppPools }