Vmware powercli question – how to Interrogate VMs in sub folders locations

Home Forums Scripting PowerShell Vmware powercli question – how to Interrogate VMs in sub folders locations

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    ranjb
    Participant
    #167242
    [SIZE=13px]Hi Admins[/SIZE]
    [SIZE=13px]Any VMware Power Cli experts out there? [/SIZE]
    [SIZE=13px]I have got a question regarding a PowerShell script which was developed by one of our previous VM admins who was a bit of script guru who managed to create a script which we use as part of disaster recovery process. [/SIZE]
    [SIZE=13px]Unfortunately, my knowledge with PowerShell scripts is limited and I could do with some help. [/SIZE]
    [SIZE=13px]In summary we use this script as part of our DR recovery process to clone our volumes from our NetApp array using the NetApp flexclone method to bring our VMs online within minutes however the performance of that array is poor so we want to utilize another array which has higher performing disks. We use this PowerShell script to effectively interrogate a particular VM folder and it will literally process any VMs located on a particular storage which starts with the name ‘snap’ and if it identifies this, it will move to another storage array in a sequential order. [/SIZE]
    [SIZE=13px]As part of one of the variables defined we use $VM_LOCATION so the script knows which folder to look in to interrogate but ideally I need to amend this slightly so that it can interrogate sub folders within that main folder.[/SIZE]
    [SIZE=13px]I attach the script in txt format. [/SIZE]
    [SIZE=13px]Is this possible? Is anyone able to help me?[/SIZE]
    [SIZE=13px]I have tried to look for a variable which would meet this need but I cant seem to find one. [/SIZE]
    [SIZE=13px]Any help on this would be most appreciated.[/SIZE]
    [SIZE=13px]Many Thanks[/SIZE]
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.