Report on Disk Alignment and Page Location

Report on Disk Alignment and Page Location

Scope:

One or more vCenters

Description:

Will examine each VM and check for disk alignment and the location of the page file. The custom attributes "Disk Align" and "Page Location" will be updated with 'OK' or the errored information.

This script relies on WMI for connectivity.  It will request 2 sets of credentials.  The first set is for vCenter and the second set is the local administrator account.  It will attempt a WMI connection using the vCenter creds first.  If it fails then the local admin is used.  If WMI is blocked on your network the time to run the script will considerably lengthen as it will wait for WMI timeouts.

Instructions:

1. Edit the script 'vm2vc-diskalign.ps1'

2. Replace the values of $inservers to match your vCenter(s)

3. (Line 4) Update your local administrator account to match your environment

4. (Line 104) Update with your desired page file location.

5. Run the script and enter credentials as requested.

Attachments
Version history
Revision #:
1 of 1
Last update:
‎07-06-2011 11:23 AM
Updated by: