Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Software and Operating SystemEnterprise Client Management
All Forum Topics
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 11 of 23

Re:Lenovo System Update

2021-10-06, 14:14 PM

This seems to work has desired.

 

Thanks man!

I would have never found this in a million years:

/CM -search A -action INSTALL -includerebootpackages 1,3,4,5 -packagetypes 1,2,4 -exporttowmi -noicon -noreboot -nolicense -defaultupdate -schtask

 

I am gonna do a pilot and provide further feedback.

 

 

 

 

 

Reply
Options

7255 Posts

10-29-2009

United States of America

17925 Signins

168550 Page Views

  • Posts: 7255
  • Registered: ‎10-29-2009
  • Location: United States of America
  • Views: 168550
  • Message 12 of 23

Re:Lenovo System Update

2021-10-06, 14:33 PM

Sounds good.  Did you disable the default scheduled tasks that are created by System Update?  After installing System Update, do this:

 

schtasks /delete /TN "\TVT\TVSUUpdateTask" /F
schtasks /delete /TN "\TVT\TVSUUpdateTask_UserLogOn" /F

 

and then set following registry to make sure System Update GUI does not allow your end users to re-enable them:

 

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lenovo\System Update\Preferences\UserSettings\Scheduler]
"SchedulerAbility"="NO"
"SchedulerLock"="HIDE"

 

 

Reply
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 13 of 23

Re:Lenovo System Update

2021-10-06, 14:36 PM

Hi,

 

Yes, I have applied the 2 registry key after the installation:

 

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lenovo\System Update\Preferences\UserSettings\Scheduler]
"SchedulerAbility"="NO"
"SchedulerLock"="HIDE"

 

And the default scheduled task was never created (but I will double check during the pilot).

Thanks.

Reply
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 14 of 23

Re:Lenovo System Update

2021-10-08, 9:08 AM

Added lines to the script to disable the 'native' tasks:

# Disable the default System Update scheduled tasks
Get-ScheduledTask -TaskPath "\TVT\" | Disable-ScheduledTask
 
Thanks.
Reply
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 15 of 23

Re:Lenovo System Update

2021-11-25, 9:47 AM

Hi,
The solution is now in pilot, and worked as expected for the past month.

 

The tvsu application was updated to the latest version .131. But there is now a problem and new updates are not being installed:

 

The scheduled task run successfully but is not downloading/installing the missing updates.

 

I am attaching the logs, you assistance would be appreciated.

 

Thanks.

Reply
Options

7255 Posts

10-29-2009

United States of America

17925 Signins

168550 Page Views

  • Posts: 7255
  • Registered: ‎10-29-2009
  • Location: United States of America
  • Views: 168550
  • Message 16 of 23

Re:Lenovo System Update

2021-11-26, 13:35 PM

Sorry for the slow reply, it's a holiday week in the US, and I probably won't have another chance to reply again until next week.  I remember helping you previously, and I think we deployed System Update version 127 at that time.  At some point in the last few weeks, Lenovo released System Update version 131, and we configured our update server to tell clients to automatically update to this version.

 

The way this works, is that "tvsu.exe /CM" will focus on updating the application that one time, and not do anything else.  Then the next "tvsu.exe /CM" will go back to searching for updates to install.

 

This is what I tested here just now:

  1. deploy System Update 127, disable the default scheduled tasks, and configure AdminCommandLine registry
  2. call "tvsu.exe /CM" - this causes the application to update from 127 to 131 (no other updates are installed at this time)
  3. call "tvsu.exe /CM" again - this causes the application to search for and download the available updates (according to AdminCommandLine registry).

Knowing this, could it explain what you are seeing?  On that PC where you posted the screenshot, if you call "tvsu.exe /CM" again, will those updates be installed?

Reply
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 17 of 23

Re:Lenovo System Update

2021-11-26, 14:07 PM

Hi, thanks a lot for the prompt response.

 

So, I run tvsu.exe /CM command  (which is the same command that run in TaskScheduler) after about 30 seconds completes.

 

 

No update is downloaded or installed. I am attaching the logs (this test happened around 3pm).

 

Enjoy your holidays!

Thanks.

Reply
Options

7255 Posts

10-29-2009

United States of America

17925 Signins

168550 Page Views

  • Posts: 7255
  • Registered: ‎10-29-2009
  • Location: United States of America
  • Views: 168550
  • Message 18 of 23

Re:Lenovo System Update

2021-11-29, 13:30 PM

"tvsu.exe /CM" always exits within ~30 seconds or so.  If this is working properly, then it will kick off "tvsukernel.exe" prior to exiting, and this is what does the actual work of downloading and installing the updates.  So can you please check Task Manager and watch the behavior of tvsu.exe and tvsukernel.exe?

 

Also, please double-check whether your AdminCommandLine registry is still present as expected.

 

When I tested here, what I believe is the same configuration as you, it's all working for me.  It's strange that this was working OK for you for 1 month and then suddenly stopped, and currently I don't have any good idea about that.

Reply
Options

13 Posts

10-04-2021

Malta

8 Signins

45 Page Views

  • Posts: 13
  • Registered: ‎10-04-2021
  • Location: Malta
  • Views: 45
  • Message 19 of 23

Re:Lenovo System Update

2021-11-29, 15:57 PM

The registry setting is well and safe (image attached), the only think I could think about is the exclusion (BIOS updates are excluded).....is it possible to check the type of updates that are pending? I could not find it in the Info.

 

 

 

Maybe they are classified incorrectly? In the meanwhile I am going to try a reinstall, just in case. Rather than that, verbose logging and some log analysis?

Many thanks.

Michele

Reply
Options

7255 Posts

10-29-2009

United States of America

17925 Signins

168550 Page Views

  • Posts: 7255
  • Registered: ‎10-29-2009
  • Location: United States of America
  • Views: 168550
  • Message 20 of 23

Re:Lenovo System Update

2021-11-29, 16:13 PM

From your screenshot of registry, I can tell your AdminCommandLine is messed up again.  It must start with /CM.  When I make my AdminCommandLine like yours (without /CM) then I can reproduce your problem.

Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms