Unsolved
1 Rookie
•
26 Posts
0
2346
April 5th, 2021 08:00
dcu-cli ignoring the -Reboot=Disable flag (DCU-CLI 4.1)
Here is the command line being run:
dcu-cli.exe /applyUpdates -autoSuspendBitLocker=disable -reboot=disable -outputLog="C:\ProgramData\Dell\UpdateService\Log\dcu-cli.log"
It runs, installs updates, then after installation, it does this according to the log:
[21-03-16 11:52:03] {Update.Operations.ApplyUpdateOperation->INFO} Reboot required [True]
[21-03-16 11:52:03] {Update.Operations.ApplyUpdateOperation->INFO} Resume pending updates [False]
[21-03-16 11:52:03] {Update.Operations.UpdateOperation->DEBUG} consent = False, isRebootNeeded = True, suppressNotification = True
[21-03-16 11:52:03] {Configuration.ServiceStateMonitor->INFO} [7] Current Service State changed from RebootRequired to RebootPending at 3/16/2021 11:52:03 AM
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} LoadOrCreate [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat]
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} 4 events loaded.
[21-03-16 11:52:03] {Scheduler.Scheduler->DEBUG} Register event: appID [DellCommandUpdate] eventID [6] type [OneTimeOnly] dayInterval [] day [] dayOfWeek [] time [11:52:33.2577541]
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} Event store save to [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat]
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} Event store changed starting watch window delay. File: [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat] [Changed]
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} Event store changed within watch window delay. File: [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat] [Changed]
[21-03-16 11:52:03] {Scheduler.Storage.EventStoreXml->DEBUG} Event store disposed
[21-03-16 11:52:03] {Scheduler.Scheduler->DEBUG} Scheduler disposed
[21-03-16 11:52:03] {Update.Operations.UpdateOperation->DEBUG} Stage [Applying] complete
[21-03-16 11:52:03] {UserSettings.Configuration.Settings->DEBUG} Deleted settings cache 2660dab3-ed48-4da5-ab1e-9948bde3418e;
[21-03-16 11:52:04] {Scheduler.Storage.EventStoreXml->DEBUG} Event store watch window delay expired. File: [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat] [Changed]
[21-03-16 11:52:04] {Scheduler.Storage.EventStoreXml->DEBUG} Invoking DataModified to update the event store
[21-03-16 11:52:04] {Scheduler.Storage.EventStoreXml->DEBUG} LoadOrCreate [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat]
[21-03-16 11:52:04] {Scheduler.Storage.EventStoreXml->DEBUG} 5 events loaded.
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Defined event: ID [1] Scheduled [EveryNumberOfDays] [3/16/2021 11:45:55 AM] Last Triggered [3/16/2021 11:45:55 AM] Now [3/16/2021 11:52:04 AM]
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Defined event: ID [2] Scheduled [OneTimeOnly] [3/19/2021 11:45:55 AM] Last Triggered [3/16/2021 11:45:55 AM] Now [3/16/2021 11:52:04 AM]
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Defined event: ID [4] Scheduled [EveryNumberOfDays] [3/16/2021 11:45:55 AM] Last Triggered [3/16/2021 11:45:55 AM] Now [3/16/2021 11:52:04 AM]
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Defined event: ID [5] Scheduled [OneTimeOnly] [12/31/9999 11:59:59 PM] Last Triggered [3/16/2021 11:45:55 AM] Now [3/16/2021 11:52:04 AM]
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Defined event: ID [6] Scheduled [OneTimeOnly] [3/16/2021 11:52:33 AM] Last Triggered [3/16/2021 11:52:03 AM] Now [3/16/2021 11:52:04 AM]
[21-03-16 11:52:04] {Scheduler.Scheduler->DEBUG} Set timer interval to trigger in 5000 mS
[21-03-16 11:52:09] {Configuration.ServiceStateMonitor->DEBUG} {v2.1.0.22} HB #8
[21-03-16 11:53:09] {Configuration.ServiceStateMonitor->DEBUG} {v2.1.0.22} HB #9
[21-03-16 11:53:09] {UpdateScheduler.UpdateScheduler->DEBUG} Triggered event: Reboot
[21-03-16 11:53:09] {Scheduler.Storage.EventStoreXml->DEBUG} Event store save to [C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat]
[21-03-16 11:53:09] {Scheduler.Storage.EventStoreXml->DEBUG} Saved in C:\ProgramData\Dell\UpdateService\Scheduler\UpdateScheduler.dat
[21-03-16 11:53:09] {UpdateScheduler.UpdateScheduler->INFO} The scheduler is rebooting the system...
[21-03-16 11:53:10] {Configuration.ServiceStateMonitor->INFO} [8] Current Service State changed from RebootPending to ShuttingDown at 3/16/2021 11:53:10 AM
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\WindowsManagement.Principal.dll' module unregistration is requested
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\WindowsManagement.Principal.dll' is unregistered
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\Update.Principal.dll' module unregistration is requested
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\Update.Principal.dll' is unregistered
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\Storage.Principal.dll' module unregistration is requested
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\Storage.Principal.dll' is unregistered
[21-03-16 11:53:12] {ServiceShell.ModuleManager->INFO} 'C:\Program Files (x86)\Dell\UpdateService\Service\UpdateScheduler.Principal.dll' module unregistration is requested
[21-03-16 11:53:12] {ServiceShell.Notifications.AppNotifications->DEBUG} Null notification URI detected. Checking application brand.
[21-03-16 11:53:12] {ServiceShell.Notifications.AppNotifications->DEBUG} Application process DellCommandUpdate is not running, the Shutdown notification should not be sent
[21-03-16 11:53:12] {ServiceShell.Notifications.AppNotifications->DEBUG} Notification result for type 0x7FFFFFFF Shutdown = Invalid
So here is the order.
1) dcu-cli runs and successfully installs updates; some updates want a reboot to complete (expected)
2) dcu-cli was told to NOT reboot, but it still reboots 1 minute after the program terminates.
3) it uses a scheduled task to do the reboot, I believe, not sure on this one.
Why is dcu-cli ignoring my -reboot=disable flag?



DELL-Chris H
Moderator
•
9.6K Posts
0
April 5th, 2021 13:00
tanielsen,
The issue is likely due to that tool not being supported to use on server, but is intended for laptop/desktops.
Hope this helps.
tanielsen
1 Rookie
•
26 Posts
0
April 12th, 2021 07:00
Hey Chris, this is being run on laptops.
I was able to verify that downgrading the version to 3.3 allowed the process to succeed as it should. Someone should inform the developers of 4.1 that this is happening. The -reboot=disable is being completely ignored.