VMware Cloud Community
radek1986
Contributor
Contributor

VM move between folders

Hi,

I have a question/problem because I must move virtual machines from one folder to another (in inventory) using vSphere CLI.

I couldn't find any script. Do you have any idea ? Smiley Happy

Regards,

Radek

Reply
0 Kudos
3 Replies
JimKnopf99
Commander
Commander

Hi,

you have to use the move-vm command.

Usage:

Move-VM -vm vmname Folder

http://www.vmware.com/support/developer/PowerCLI/PowerCLI41/html/Move-VM.html

Frank

If you find this information useful, please award points for "correct" or "helpful".
Reply
0 Kudos
radek1986
Contributor
Contributor

Hi, thanks for your reply.

I know the function, but I need use something for vSphareCLI, no PowerCLI.

I have to use the function from linux, and as i know powerCLI i can use only on Windows Systems..

Maybe it is possible to register the machine in destination folder ? To register VM i use vmregister.pl script, and i can't find the option there Smiley Wink

Reply
0 Kudos
JimKnopf99
Commander
Commander

mmh,

i am not familiar with that. But take a look at that.

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100093...

Frank

If you find this information useful, please award points for "correct" or "helpful".
Reply
0 Kudos