Skip to main content

All Windows 10 Workstations

I tried 1 of the Dell Command Update Worklets and get this error on some workstations:

Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
At C:\Program Files (x86)\Automox\execDir2926109883\execcmd3901365964.ps1:59 char:16
+ ...       void](Start-Process -FilePath $exe -ArgumentList "/s /l='$log'" ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) lStart-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
 

COMMAND TIMED OUT.

 

I’m looking to either find out why this error is happening or get a worklet with evaluation and  remediation code that can be used to successfully check which patches are needed and then install them and let me know which ones get installed.

 

thanks.

Hi @jasonehand !

From the error you are receiving, it looks like the worklet is unable to find the $exeused in the Start-Process command.


Given there are a handful of Dell Command Update worklets within the Community here, can you share the one that you are using?


@jasonehand 

I’ve got two worklets going. One that ensures Dell Command is installed and one that runs Dell Command. 

This recent thread has the code, a bit all over the place, but all the parts are there. 

 

 


@jack.smith 

 

thanks, no errors, but what does this mean under reports, did it just not find anything to install? How can i see what it found to install and when it’s installed? If it does find something to install, will it show it installed?

 

Currently Dell Command | Update version 5.4.0 Installed. 
Starting Dell Command Update Process. 
Dell Command Reported Command execution was successful.
2024-10-07 11:00 PM Checking for updates. 
2024-10-07 11:00 PM Checking for updates


@jasonehand ,

That’s only scrubbing a part of the activity due to this snippet of the code in the Get-DellCommandActivity function:

-and ($_.message -match 'found' -or $_.message -match 'Checking for updates' -or $_.message -match 'verified')

 

This updated Get-DellCommandActivity function will output the last 24 hours of the log. A lot easier to just get all of it and see exactly what’s going on. 

Function Get-DellCommandActivity {
# Get Activity Log and parse intalled updates in last 24 hours
/xml]$a = Get-Content "C:\ProgramData\dell\UpdateService\Log\Activity.log"
$range = (Get-Date).AddHours(-24)
# Write output on Checking Updates
$events = $a.LogEntries.LogEntry | Select timestamp,message | where { datetime]$_.timestamp -gt $range } | % {
$timestamp = (Get-Date $_.timestamp -Format 'yyyy-MM-dd hh:mm tt')
$message = $_.message.replace(' verified.','')
pscustomobject] @{
timestamp = $timestamp
message = $message
}
}
foreach ($event in $events)
{
Write-Output "$($event.timestamp) $($event.message). "
}
}

 


running now and i get the following, still looking to see a confirmation on which updates are installed if possible.

 

Currently Dell Command | Update version 5.4.0 Installed. 
Starting Dell Command Update Process. 
Dell Command Reported Command execution was successful.
2024-10-17 07:42 AM Checking for updates. 
2024-10-17 09:52 AM Checking for updates. 
2024-10-17 09:52 AM Checking for updates. 
2024-10-17 09:52 AM Applicable updates were retrieved from the cache.. 
2024-10-17 09:54 AM Checking for updates. 
2024-10-17 09:54 AM Applicable updates were retrieved from the cache.. 
2024-10-17 09:54 AM Checking for updates. 


@jasonehand did you update the function to stop parsing the log and just give you all output? Right now its incorrectly parsing the log, and due to changes over time, the output is not great anymore. In hindsight I should have just dumped the entire log for X hours which is what that function should be doing. 


i updated the remediation script with the change you mentioned, but what I just entered is what I see in Automox, it never confirms if installs were made and what they were.


@jasonehand the function then should pull the entire log. if that’s what it shows in activity with that specific function, then it did nothing but check for updates. 


Reply