Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Remove/Recompose/Refresh a desktop vm from PowerCLI script

$
0
0

Hi,

we want to automate a part our View infrastructure to delete a VM when it is not longer needed in a dedicated pool.

PowerCLI has no commandlet to do this within a script.

I tried to delete a VM with sviconfig to get rid of the composer DB entries and the virtual machine in our vCenter, the LDAP entries are easy to be removed on the connections servers.

But is sviconfig a clean way to delete a vm? I mean does it realy delete all the files from the datastores, or does it just delete the entries in its vCenter database?

If it does not remove all files used by the vm, I could find them before I delete it using vCO or other nice scripts.

 

Hmm, PowerCLI is mighty but cannot do such easy things .

 

Would be great if you have an idea or comment

 

thanks in advance

 

Manuel


Viewing all articles
Browse latest Browse all 179681

Trending Articles