Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 4089

Copy a file to Hyper-V Host in different domain in Powershell

$
0
0

Hi Experts,

I am deploying my Linux VM from SCVMM template.

I need to run an exe file in the Selected Hyper-V host using SCVMM powershell.

I have written a script to copy the exe file to Hyper-V Host and run it from there using Powershell. For this, I use the Copy-item cmdlet to copy the file.

However if the destination Hyper-V host is in a different domain, my script fails since I don't have the credentials of the Hyper-V Server.

Is there any way to copy the file to Hyper-V host from SCVMM Powershell without entering the credentials?

If not, what is the best method to use with credenatils ?

Can I go with New-PSDrive cmdlet to create a drive in the remote Server and copy the file ?

Thanks in advance,

Saleem A


Viewing all articles
Browse latest Browse all 4089

Trending Articles