I'm working with VMware Workstation and have it running Windows Server 2016. I'm a bit stuck on how to provision virtual machines within my vCenter workspace using PowerShell. Any guidance or resources would be appreciated!
4 Answers
Make sure to enable the REST web server in VMware Workstation. Once that's done, you can provision VMs using that API.
You can use the `New-VM` cmdlet after authenticating with `Connect-VIServer`. Just make sure your VMware Workstation is correctly set up to communicate with vCenter, as that will affect your approach.
Check out the VMware PowerCLI Module documentation—it’s a great resource for installation and usage. There are also some useful YouTube videos that cover VM creation and configuration, which can really help. If you have trouble with the PowerCLI module installation, feel free to reach out! I even have some personal notes that I could share to assist you if needed.
Yeah, definitely enable that REST web server feature. It'll allow you to manage your VMs through PowerShell more effectively!

Just keep in mind that these guides are mainly for ESXi and might not directly apply to VMware Workstation.