Tags

,


To make things more organized in vCenter, I use folders to categorize the servers with the same functions together. The folders can be Production with subfolders SQL server, Linux server … But somehow, two servers refused to move. Everything looks fine, they just did not want to move to a new folder.

After being frustrated by that in vSphere client, I decided to try vSphere PowerCLI. And it turns out I have more luck out there : )

Just simply connect the vCenter server, then list the folder names, use the move-vm to move the VM wherever you want them to be.

1) Connect-VIServer vcs-server-name -User jackie.chen  -Password **********

2) Get-Folder

3) Move-VM -VM vm-name -Destination folder-name

Advertisements