PowerCLI

 View Only
  • 1.  Deleting the possibly Zombie file through power cli script

    Posted Sep 07, 2016 05:01 PM

    HI all,

    I have extracted the lists of 3000 Zombie file in excelsheet from RV tools and script both, but want to delete through power cli script rather manual

    visiting each data store. Can anyone guide me for deleting from power cli script.  Thanks in advance

    [VNX2_P0_T1_LUN_100] DCDPHLLAW08/DCDPHLLAW08_3.vmdk Possibly a Zombie vmdk file! Please check.

    [VNX1_P0_T1_LUN_100] DCDDALLNX2054_CE/DCDDALLNX2054_CE_1.vmdk Possibly a Zombie vmdk file! Please check.

    [VNX1_P0_T1_LUN_100] DCDDALLNX2054_CE/zombi-DCDDALLNX2054_CE_1.vmdk Possibly a Zombie vmdk file! Please check.

    [VNX1_P0_T1_LUN_100] DCDDALPAPP5000_CE/DCDDALPAPP5000_CE.vmx Possibly a Zombie VM! Please check.

    [VNX1_P0_T1_LUN_140] DCDDALPAPP5000_CE/DCDDALPAPP5000_CE.vmdk Possibly a Zombie vmdk file! Please check.

    thanks

    vmk2014



  • 2.  RE: Deleting the possibly Zombie file through power cli script

    Posted Sep 07, 2016 07:11 PM

    You could do this based on the script I gave you in  9.  Re: is it possible to move the Zombie file from specified path to temporary data store ?

    Instead of a Move-Item, it would have to be a Remove-Item.



  • 3.  RE: Deleting the possibly Zombie file through power cli script

    Posted Sep 07, 2016 07:11 PM

    Sorry that this isn't an answer, but I would be cautious before I deleted any possible zombie vmdk files from RVTools, especially with a script.  I've seen it report on a lot of legitimate files from VMs that were actually registered and powered on within vCenter.  It may be best to manually check first.