Powershell Script to manage Storage onm ESX 5.1 Hosts

Hi there i am looking to be able to list all Storage that is presented to a test ESX 5.1 Host, then take the LUN names ( Starts with naa.600 ), then be able to tweek Disk.QFullSampleSize and Disk.QFullThreshold then apply the changes to all our other ESX 5.1 hosts.

The script should be able to output the current storage that is presented to the hosts to file, and then after the process above is complete to then list the storage that is presented again and output to compare results.
Mark_MckieAsked:
Who is Participating?
 
Mark_MckieConnect With a Mentor Author Commented:
I have found this

http://yaztech.co.uk/blog/?x=entry:entry121031-195226;comments:1

But could this same thing be scripted in Powershel to be ran from a windows 7 workstation? and to also change the settings on multiple hosts.
0
 
Pramod UbheCommented:
I don't think powershell can grab any information from esx as it is Linux based OS.
You may check with a Linux admin for pearl script or something similar to it.
0
 
Pramod UbheCommented:
I forgot but vcli or vc module of powershell, so there are chances.
0
 
Pramod UbheCommented:
Yes you can run these commands from windows 7 desktop provided it has powercli/virtual center snapin installed.
0
 
Mark_MckieAuthor Commented:
Found solution on this site
0
All Courses

From novice to tech pro — start learning today.