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
Try test-wsman remotemachine
to check if remote is running.
User contributions licensed under CC BY-SA 3.0