Run: Install Updates - Dell Command Update - Windows
2 Votes |
Description
This task will install Dell Updates using Dell Command Update.
Steps to using Dell Command Update:
- Install/Update: Dell Command Update - Windows (Only once for each client)
- Run: Check for updates - Dell Command Update - Windows (Once every 60 days)
- Check Results in Analysis: Dell Command Update Audit - Windows
- Run: Install Updates - Dell Command Update - Windows (Only if updates are needed)
- Reboot Computer (Only if reboot is actually required)
- Run: Notify User to Reboot System with pending restart due to Dell Updates - Dell Command Update - Windows
- Run: Reboot System if no user is logged on with pending restart due to Dell Updates - Dell Command Update - Windows
Property Details
3902 | |
Beta - Preliminary testing ready for more | |
Run: Install Updates - Dell Command Update - Windows | |
BESC | |
Software Sharing | |
0 | |
Internal | |
jgstew | |
10/25/2014 12:00:00 AM | |
jgstew on 10/29/2014 1:06:32 PM | |
jgstew on 10/29/2014 1:06:32 PM | |
17621 Views / 112 Downloads | |
* Average over 1 rating. ** 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) ) ) ) )
Used in 1 fixlet | * Results in a true/false |
/* Dell Command Update has run in the past 60 days */ exists (maxima of modification times of files "ActivityLog.xml" of folders "Logs_DellUpdate" of folders "__BESData\__Global\Logs" of parent folder of client) whose (now - it < 60 * day)
Used in 1 fixlet | * Results in a true/false |
exists (files "results_DellUpdate.xml" of folders "__BESData\__Global\Logs" of parent folder of client)
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
// delete old results, if they exist
delete "{ (pathname of folder "__BESData\__Global\Logs" of parent folder of client) }\results_DellUpdate.xml"
// INSTALL: Updates
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 /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
// Check for Updates
// 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 /report "{ (pathname of folder "__BESData\__Global\Logs" of parent folder of client) }\results_DellUpdate.xml" /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: |
Comments
|
|
please post a message with a link to this in forum.bigfix.com and put @jgstew in it. |
|
|
I got error in line 12 chr 40 evaluation error relevance clauses must be surrounded by { and } guards. help please |
|
|
I got error in line 12 chr 40 evaluation error relevance clauses must be surrounded by { and } guards. help please |