Required Power shell Script To Run VM Hosted On another Domain. RRS feed

  • Question

  • Hi Guys ,,This is Kirti ,,

    Please Help Me On This.....

    I am using this script

    ($password = ConvertTo-SecureString "passwordofmachine" -AsPlainText -Force $cred= New-Object System.Management.Automation.PSCredential ("domainname", $password ) Invoke-Command -ComputerName computername -ScriptBlock { Get-ChildItem "F:" -Recurse | Move-Item -Destination "E:" } -credential $cred ) to enter in my VM and run this script. But am getting an error that this Vm is registered on another domain. can anyone tell me how can i access my VM registered on another domain by my local machine. if anyone know than please tell me.



    Thursday, November 16, 2017 10:12 AM