Quantcast
Viewing all articles
Browse latest Browse all 182126

Misaligned VMDK's Powercli Script Help

I have a script that I run against a vCenter server. Basically finds all vm's in vCenter and ruins a get-wmiobject command against them to get the VMNAME, Partition, Offset and Status and exports it to excel.

 

Here's a sample output of the data that gets exported to excel:

 

VMNamePartitionOffsetStatus
pdxvvmdb1Disk #0, Partition #18193150KBPartition NOT aligned
pdxvvmdb1Disk #0, Partition #18193150KBPartition NOT aligned

 

My "problem" is its not giving me the correct partition info in excel (via system info), see below.

 

Image may be NSFW.
Clik here to view.

 

It only has 1 vmdk with 2 partitions, so it should output both partition 1 and 2 and the offsets, since they're both incorrect?

 

Also looking to add a line to the script to add the datastore and the vmdk file location ([PDXESX1_RAID] pdxvvmdb1/pdxvvmdb1.vmdk) in this case and have that output to the excel. Possible?

 

I attached the script since its pretty long....


Viewing all articles
Browse latest Browse all 182126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>