Run: driverRestore - Dell Command Update - Windows
| 0 Votes |
Description
This task will (work in progress)
Property Details
| 6046 | |
| Alpha - Code that was just developed | |
| Run: driverRestore - Dell Command Update - Windows | |
| BESC | |
| Software Sharing | |
| 0 | |
| Internal | |
| jgstew | |
| 10/23/2014 12:00:00 AM | |
| jgstew on 5/6/2015 12:36:02 PM | |
| jgstew on 5/6/2015 12:36:02 PM | |
| 3360 Views / 3 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
Windows Only (Relevance 2997197)
/* Windows Only */ windows of operating system
/* Windows Vista or Higher */ version of operating system >= "6.0"
/* DELL Only */ exists values "vendor" whose(it as string as uppercase contains "DELL") of structures "bios_information" of smbios
/* check for supported model: OptiPlex, Latitude, Precision, Venue Tablets, XPS */ exists ((value "product_name" of structures "system_information" of smbios) as string as uppercase) whose(it starts with "OPTIPLEX" OR it starts with "LATITUDE" OR it starts with "PRECISION" OR it starts with "XPS" OR it starts with "VENUE")
| Used in 3 fixlets | * Results in a true/false |
/* the CLI is available */ exists file "dcu-cli.exe" whose(version of it >= "2.0.0.565") of folder ( unique value of pathnames of folders ( unique values of (it as string) of ( ( values "InstallLocation" of keys whose(value "DisplayName" of it as string as trimmed string starts with "Dell Command | Update" AND value "DisplayVersion" of it as string as version >= "2.0.0") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (registry;native registry) ) ; ( values "InstallPath" of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Dell\CommandUpdate" of (registry;native registry) ) ) ) )
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
// http://support.bigfix.com/fixlet/documents/WinActions_20081110.pdfSuccess Criteria
action launch preference low-priority
// http://www.dell.com/support/Manuals/us/en/19/Topic/dell-comnd-update-v2.0/DCU_formerly_DCSU_UG-v2/en-us/GUID-5A058BEF-5A75-4037-A9C2-65628F818EB7
waithidden { pathname of file "dcu-cli.exe" whose(version of it >= "2.0.0.565") of folder ( unique value of pathnames of folders ( unique values of (it as string) of ( ( values "InstallLocation" of keys whose(value "DisplayName" of it as string as trimmed string starts with "Dell Command | Update" AND value "DisplayVersion" of it as string as version >= "2.0.0") of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of (registry;native registry) ) ; ( values "InstallPath" of keys "HKEY_LOCAL_MACHINE\SOFTWARE\Dell\CommandUpdate" of (registry;native registry) ) ) ) ) } /silent /driverRestore /log "{ (pathname of folder "__BESData\__Global\Logs" of parent folder of client) }\Logs_DellUpdate"
// Return Codes:
// 0 = OK/Success
// 1 = Reboot Required
// 2 = Fatal Error
// 3 = Error
// 4 = Invalid System
// http://www.dell.com/support/Manuals/us/en/19/Topic/dell-comnd-update-v2.0/DCU_formerly_DCSU_UG-v2/en-us/GUID-E3858402-1574-40EB-9ADB-3E9C4C9DB431
// Report failure if bad return code, continue if good return code
continue if{ exists (exit codes of active action) whose(it = 1 OR it = 0) }
// http://support.bigfix.com/inspectors/World%20Objects_Any.html
// pending restart "DellUpdatesInstalled"
// Require reboot if return code = 1
if{ exists (exit codes of active action) whose(it = 1) }
action requires restart "DellUpdatesInstalled"
endif
// Running this task will affect analysis properties, so this will force them to be updated right away
notify client ForceRefresh
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |

