|
Post by gbmacman on Feb 8, 2019 19:54:30 GMT
Id like to see this as a built in variable, but in the interim, please help. The wmi action below doesn't run. Ive tried the production and beta versions.
XML:
<ActionGroup Name="Preflight"> <Action Type="DefaultValues" ShowProgress="True" ValueTypes="All" /> <Action Type="WMIRead" Namespace="root\wmi" Class="MSStorageDriver_FailurePredictStatus" Property="PredictFailure" Variable="YSystemDiskSMARTStatus" /> <Action Type="Preflight" Title="NWIS Preflight Checks..." Timeout="120" TimeoutAction="ContinueOnWarning" Size="Tall"> <Check Text="System Drive SMART Status" Description="Windows deployment requires the drive to be in good condition." CheckCondition="%YSystemDiskSMARTStatus% = "False"" ErrorDescription="STOP: System drive has failed the SMART check. Have it serviced immediately before continuing!" />
Log:
Found <WMIRead> Action: UI++ 2/8/2019 2:27:58 PM 14356 (0x3814) Initiating <WMIRead> Action: UI++ 2/8/2019 2:27:58 PM 14356 (0x3814)
|
|
|
Post by Jason on Feb 13, 2019 1:52:00 GMT
Have you manually tried querying this class from PowerShell or any other WMI tool? When I try on my system I get a Not Supported Error. The class exists on my system, but when I try to query it I get that error. Does the same happen wherever you are testing UI++ and the above configuration?
|
|
|
Post by gbmacman on Feb 13, 2019 11:58:34 GMT
Yes, this works from PowerShell and WMI Explorer. Tested on W10x64 1709, 1803, 1809 with single drive system. UI++ fails to run the query and set the variable.
Blog: Its old but still works
Get-WmiObject -Namespace Root\WMI -Class MSStorageDriver_FailurePredictStatus
__GENUS : 2 __CLASS : MSStorageDriver_FailurePredictStatus __SUPERCLASS : MSStorageDriver __DYNASTY : MSStorageDriver __RELPATH : MSStorageDriver_FailurePredictStatus.InstanceName="SCSI\\Disk&Ven_SAMSUNG&Prod_SSD\\4&2d8daf9a&0&000000_0" __PROPERTY_COUNT : 4 __DERIVATION : {MSStorageDriver} __SERVER : WUSGB185115-CD5 __NAMESPACE : Root\WMI __PATH : \\WUSGB185115-CD5\Root\WMI:MSStorageDriver_FailurePredictStatus.InstanceName="SCSI\\Disk&Ven_SAMSUNG&Prod_SSD\\4&2d8daf9a&0&000000_0" Active : True InstanceName : SCSI\Disk&Ven_SAMSUNG&Prod_SSD\4&2d8daf9a&0&000000_0 PredictFailure : False Reason : 0 PSComputerName : WUSGB185115-CD5
(Get-WmiObject -Namespace Root\WMI -Class MSStorageDriver_FailurePredictStatus).PredictFailure
False
|
|
|
Post by gbmacman on Mar 7, 2019 14:48:29 GMT
Bump. see reply above....
|
|
|
Post by Jason on Apr 17, 2019 2:22:31 GMT
Unfortunately, I don't have a system with SMART enabled hard drives handy to really test this; however, there was a WMIRead bug in 2.11.1.1 that prevented WMIRead from working at all so maybe that's your issue as well. I'll be releasing 2.11.1.2 shortly and so hopefully that'll address this issue as well.
|
|