Hello,
The operating system used is Windows.
How can I apply this script to my VM via PowerCLI?
How do I proceed to indicate the vm to MODIFY?
in the script, how can I indicate the name of the VM modify has ?
The script:
Function Rename-ComputerName ([string]$NewComputerName){
&NewComputerName= TOTO
$ComputerInfo = Get-WmiObject -Class Win32_ComputerSystem
$ComputerInfo.rename($NewComputerName)
}
Thank you very much friends.