VMware Cloud Community
joeflint
Enthusiast
Enthusiast
Jump to solution

Using Powershell to Poweron VMs

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Is something like this sufficient ?

$vmName = Read-Host "VMname"
Get-VM -Name $vmName | Start-VM


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Is something like this sufficient ?

$vmName = Read-Host "VMname"
Get-VM -Name $vmName | Start-VM


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
joeflint
Enthusiast
Enthusiast
Jump to solution

Thanks - I'll give this a try.

0 Kudos