I am stuck with a very specific problem:
My infrastructure:
What I need to do:
My problem is I am unable to connect to the Target VM with Invoke-Command
to execute the drive map script. The error I get is:
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
What I have tried:
Prerequisites used:
Instead of mapping the drive... why not just run the file against the remote machine?
Invoke-Command -ComputerName $targetVm `
-Credential $credentials `
-FilePath Z:\example\file.ps1
尝试使用test-wsman remotemachine
来检查remote是否正在运行。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.