1
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
リモートマシン上でコマンドをローカルに実行すると、アプリケーションプールのリストが返されます。変更が必要なセキュリティ設定はありますか?IISにアクセスする方法:Powershell経由でリモートマシンでドライブする?