0

I have an app that needs to run the GetConversionStatus method of the Win32_EncryptableVolume class in WMI to detect various information about the state of Bitlocker on the current machine.

The MSDN page for this method defines a parameter named 'PrecisionFactor'. They describe this as:

A value from 0 to 4 that specifies the precision level

What is this for? Does anyone know what this actually affects or what difference this has on the output? Is there an English description of what this parameter actually does?

GoldieLocks
  • 845
  • 7
  • 22
  • My first guess would be that it affects the precision of the returned percentage. Care to test it out? – Theodoros Chatzigiannakis May 26 '17 at 13:49
  • @TheodorosChatzigiannakis yeah I sure can if nobody on here knows for sure. I was hoping for a more conclusive answer rather than relying on what it *appears* to do when I run it. – GoldieLocks May 26 '17 at 13:56

2 Answers2

1

The percentages are returned always as UInt32. So, to give the users the flexibility of the decimal digits, the PrecisionFactor is taken as input.

Based on the precision factor, the percentages accurate to those many decimal digits would be returned but as UInt32. The following script explains the behavior:

PS C:\> 0..4 | % { $encVol.GetConversionStatus($_).EncryptionPercentage } | ft

For my fully encrypted volume, the outputs were

100
1000
10000
100000
1000000
0

I'd recommend pinging them via MSDN forum directly. I dug through old references and it looks like they may have dropped documentation somewhere.

T 3
  • 1
  • 2
  • 1
    Care to enlighten us on what the old references say that is different? – Cody Gray - on strike May 26 '17 at 14:22
  • Sure, from when I was working there I remember it had a mapping kind of like http://wutils.com/wmi/root/cimv2/win32_volume/ -> ChkDsk method. Where the value determined at was target end configuration it was going to be in. – T 3 May 26 '17 at 22:32
  • Thanks, I've asked the question here: https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/fafe1e7c-2d66-4988-af4c-3b901d723e4d – GoldieLocks May 30 '17 at 08:53