Post by jayakumar on Sept 22, 2020 11:51:03 GMT
<Action Type="WMIRead" Namespace="root\cimv2" Class="Win32_LogicalDisk" KeyQualifier='deviceid="C:"' Property="FreeSpace" Variable="FreeSpaceX" />
<Check Text="Free Space > 25GB" Description="Free Space Check" ErrorDescription="Please ensure the system has more than 25GB free space in C drive" CheckCondition='"%FreeSpaceX%" >= "26843545600"' />
The above conditions are working fine in Laptops but the condition returns False in VM.
I'm trying to evaluate the above condition on a VM and '173772779520' is the result I'm getting in the Editable tab for that variable but still the condition is not satisfied.
Am I missing something? Need help please.
On a VM:
--------
* Loaded WMI value from (namespace) root\cimv2, (class) Win32_LogicalDisk, (property) FreeSpace, (key) deviceid="C:" : 173840490496 UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
+ Set the task sequence variable 'FreeSpaceX' to the value '173840490496' UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
* Evaluating Condition for <CheckCondition> Free Space > 25GB: "%FreeSpaceX%" >= "26843545600" ?? "173840490496" >= "26843545600" UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
= Condition evaluated to false UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
On a Laptop:
------------
* Loaded WMI value from (namespace) root\cimv2, (class) Win32_LogicalDisk, (property) FreeSpace, (key) deviceid="C:" : 345248821248 01-01-1601 00:00:00 0 (0x0000)
+ Set the task sequence variable 'FreeSpaceX' to the value '345248821248' 01-01-1601 00:00:00 0 (0x0000)
* Evaluating Condition for <CheckCondition> Free Space > 25GB: "%FreeSpaceX%" >= "26843545600" ?? "345248821248" >= "26843545600" 01-01-1601 00:00:00 0 (0x0000)
= Condition evaluated to true 01-01-1601 00:00:00 0 (0x0000)
<Check Text="Free Space > 25GB" Description="Free Space Check" ErrorDescription="Please ensure the system has more than 25GB free space in C drive" CheckCondition='"%FreeSpaceX%" >= "26843545600"' />
The above conditions are working fine in Laptops but the condition returns False in VM.
I'm trying to evaluate the above condition on a VM and '173772779520' is the result I'm getting in the Editable tab for that variable but still the condition is not satisfied.
Am I missing something? Need help please.
On a VM:
--------
* Loaded WMI value from (namespace) root\cimv2, (class) Win32_LogicalDisk, (property) FreeSpace, (key) deviceid="C:" : 173840490496 UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
+ Set the task sequence variable 'FreeSpaceX' to the value '173840490496' UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
* Evaluating Condition for <CheckCondition> Free Space > 25GB: "%FreeSpaceX%" >= "26843545600" ?? "173840490496" >= "26843545600" UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
= Condition evaluated to false UI++ 9/22/2020 9:12:14 AM 2884 (0x0B44)
On a Laptop:
------------
* Loaded WMI value from (namespace) root\cimv2, (class) Win32_LogicalDisk, (property) FreeSpace, (key) deviceid="C:" : 345248821248 01-01-1601 00:00:00 0 (0x0000)
+ Set the task sequence variable 'FreeSpaceX' to the value '345248821248' 01-01-1601 00:00:00 0 (0x0000)
* Evaluating Condition for <CheckCondition> Free Space > 25GB: "%FreeSpaceX%" >= "26843545600" ?? "345248821248" >= "26843545600" 01-01-1601 00:00:00 0 (0x0000)
= Condition evaluated to true 01-01-1601 00:00:00 0 (0x0000)