I have a requirement to prompt users for either an IP address or VM name and then power on the VM.
Does anyone know how to script this requirement?
Thanks
Is something like this sufficient ?
$vmName = Read-Host "VMname" Get-VM -Name $vmName | Start-VM
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Is something like this sufficient ?
$vmName = Read-Host "VMname" Get-VM -Name $vmName | Start-VM
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks - I'll give this a try.