Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell to Inject Hostname into a Hyper-V based VM before Network Configuration

$
0
0

Hello Team,

I am looking for a powershell way of Injecting Hostname [Or lets say computer name rename] of a VM running on a Hyper-V Host. There is no Network Configuration on this VM, so PSremoting is not the option here, and not looking for unattended answer file injection into VHD.

I am looking for any Hyper-V WMI Class method to inject hostname into the vms running on top of this hyperv host or if there is any other way, please mention.


Thank You.

Regards,

Subhash


Regards,
Subhash Konduru
------------------------------------------------------------------------------------
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>