Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 220961

Re: I want to move VMs to a folder name called Linux, but we have multiple folder by the same name in our Datacenter, please provide me PowerCLI Script to move exactly

$
0
0

Hi LucD,

 

I saved the below content as MoveVM.PS1 and ran the command but its still giving error as earlier.

 

 

. ./FolderByPath.ps1

 

$folder = Get-FolderByPath  -Path "LTX01-G8\LTX-Servers\LTX Servers 0000 - 0299\Linux"

 

Get-VM -Name ltxl0278 | Move-VM -Destination $folder

 

Error Screenshot:

 

 


Viewing all articles
Browse latest Browse all 220961

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>