Once installed or if already installed the worklet is setup to install updates then parse through a log to provide some details on what updates, if any were installed.
Good callout on considering a newer version of Dell Command. Looks like hot off the press too! I will get that link updated above.
What is really cool is using this worklet “should” also update the version of Dell Command when dcu-cli.exe /applyUpdates is used. Here is an example of that happening in the activity log.
Sorry, my bad I was tested directly from powershell if you push it though automox there is not pop up! 🙂
Can you assist with adding in IF the workstation has “Dell Command | Update for Windows 10” installed, to remove it and install “Dell Command | Update”
“Dell Command | Update for Windows 10” is the universal version and it won’t update or install this version if that version is installed on the computer. Also the universal version doesn’t allow for scripts to be run to initiate silent updates etc.
Thank you in advance. The provided script works great otherwise!
Also, using the remediation script you provided in the original post…the updates aren’t being carried out.
This is what i receive in the Activity log. However when i run Dell Command manually, there are several updates, including critical, recommended and optional.
Installing Dell Command. Installed Dell Command. Starting Dell Command Update Process. 2021-06-06 02:10 PM Checking for updates. 2021-06-06 03:07 PM found u0] updates. 2021-06-07 11:40 AM found u0] updates. 2021-06-07 11:40 AM found u0] updates.
The output is parsing XML from Dell Command after running dcu-clie.exe /applyupdates. Perhaps Dell Command is not configured as expected? You can look with this.
Sorry i am very new to powershell and am working through your script, so i apologize. This is helping me tremendously and will help with my other scripts too, so thank you!
From my understanding, the snippet you provided will look for ANY version of the software named ‘Dell Command | Update for Windows 10’ and uninstall it … correct?
So what i am looking to accomplish in my script is combing both that and what you originally provided.
So i want it to remove the ‘Dell Command | Update for Windows 10’ if it exists and then install the correct one otherwise just install the correct one. Can you show me what the final code would look like?
Thank you for helping!
Can you help me understand the difference between “Dell Command | Update” and “Dell Command | Update for Windows 10”. When I install the binaries linked in the original post, it shows up in Programs and Features as “Dell Command | Update for Windows 10”. By adding that logic to the entire code the solution would uninstall/install Dell Command every time it runs. I’m curious if there is something else that differentiates the difference between the two.
So there are 2 versions, the one you have in your script with " Dell Command | Update for Windows 10 " is the universal app and the other one I am referring to is the normal app and just shows up as “Dell Command | Update” . I have a mixture of the 2 in my environment and would like to just have the normal one installed, so trying to incorporate the uninstall of the other and install of the new into the script .
I had read an article not long ago that there was something wrong with CLI on the universal app, but maybe it is fixed now. In either case, I’d like to just get one version of the app on all machines.
You are correct. The original script is looking for ANY version that is a match of DisplayName “Dell Command” which would include both application titles. Really appreciate you for pointing that out as up until now didn’t even realize two versions existed.
To your other ask. This code will follow the same logic as above. Removing any version less than 4.2 as well as versions of “Dell Command | Update for Windows 10”.
# Dell Command | Update executable uploaded to worklet
Write-Output "Something isn't working right. Recommend running this locally and analyzing output: 'C:\Program Files\Dell\CommandUpdate\dcu-cli.exe' /applyUpdates "
Write-Output $activity
}else{Write-Output "Dell Command failed to install. "}
}
}
}else{Write-Host "Not recognized as Dell Manufacturer. Not running." }
With that script, it’s not removing the Universal one from my test computer.
When looking at your script, how is $title defined? I’ve been starring at this script for a while and starting to lose track as to what each part is doing. HAHA
$software is a variable that could collect multiple objects. For example if you had ‘Dell Command | Update’ and ‘Dell Command | Update for Windows 10’ installed at the same time. In this case $title becomes the ONE object being looked at at the time of the for each loop. You could rename $title to almost anything you want.