我遇到了一个非常具体的问题:
我的基础设施:
我需要做什么:
我的问题是我无法使用Invoke-Command
连接到目标VM来执行驱动器映射脚本。我得到的错误是:
WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Negotiate authentication: A specified logon session does not exist. It may already have been terminated. Possibly because: -Kerberos accepts domain user names, but not local user names. But I do not have any domain user names, as the VM is not on domain
我尝试过:
使用的先决条件:
答案 0 :(得分:0)
而不是映射驱动器......为什么不直接对远程计算机运行文件?
Invoke-Command -ComputerName $targetVm `
-Credential $credentials `
-FilePath Z:\example\file.ps1
答案 1 :(得分:0)
尝试test-wsman remotemachine
检查遥控器是否正在运行。