Disk size calculation is wrong for Win2012 servers.

Steps to Reproduce

  1. Discover a windows 2012 server.
  2. Notice that the disk size is expressed in Petabytes (PB) instead of Gigabytes (GB).


  1. Navigate to System Definition > Script Includes.
  2. Open the DiscoveryWindows2012StorageSensor script include.
  3. Locate the following lines that set size units for storage parameters and change the 'GB' (gigabytes) values to 'B' (bytes):

    var size = new StorageDataSize(disk.Size, 'GB');

    var size = new StorageDataSize(partition.Size, 'GB');

    var size = new StorageDataSize(volume.Size, 'GB');

    var free_space = new StorageDataSize(volume.SizeRemaining, 'GB');

  4. Click Update.
  5. Navigate to System Update Sets > Local Update Sets and open the current update set record.
  6. In the Customer Updates related list, delete the update record for the change you just made to the script include.
    This protects your changes from being overwritten during an upgrade.



Related Problem: PRB626349

Seen In

Fuji Patch 2 Hot Fix 1

Fixed In


Associated Community Threads

There is no data to report.

Article Information

Last Updated:2015-12-02 14:03:07