[英]Executing a script remotely on non-domain Target from server on Domain
我陷入一个非常具体的问题:
我的基础架构:
我需要做什么:
我的问题是我无法使用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
我试过的
使用的先决条件:
而不是映射驱动器...为什么不对远程计算机运行文件 ?
Invoke-Command -ComputerName $targetVm `
-Credential $credentials `
-FilePath Z:\example\file.ps1
尝试使用test-wsman remotemachine
来检查remote是否正在运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.