Tuesday, 4 July 2017

PowerCLI Script to Backup all VMX files to Local Disk (2017)

Requirements:
Windows Server/Windows Machine with Powershell.
PowerCLI from Vmware.

Open PowerCLI with administrator rights and type the below commands.

connect-VISERVER nameofhostorvcenter

cd vmstore:\datacenter\nameofdatastore

Copy-DatastoreItem -Item *\.vmx -Destination S:\nameoflocaldrive

To copy the files back

Copy-DatastoreItem -Item S:\nameoflocaldrive\*.vmx -Destination vmstore:\datacenter\nameofdatastore

2 comments:

  1. Thanks for sharing such informative article. Know about Know about English to Tamil from techfizy.

    ReplyDelete
  2. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
    Cyber Security Projects for Final Year

    JavaScript Training in Chennai

    Project Centers in Chennai

    JavaScript Training in Chennai

    ReplyDelete