reboot pending ques...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

reboot pending question

3 Posts
3 Users
0 Reactions
506 Views
(@rtruss)
Estimable Member Registered
Joined: 6 years ago
Posts: 88
Topic starter   [#948]

I know I asked about a year ago, almost to the day about getting the desired output, which i figured out by using display:%4 

NOW when I try it by putting the code directly into the ini it always says no reboot pending.  I tell the ini to go back to the stand-alone ps1 file and all is right with the world.

Has anyone else run into this?  Have a fix?  I'm testing on v 3.21.  Just grabbed 3.22, but have not tried it yet.

I'm calling it like this (the actual code is pulled right from the desktopinfo-advanced.ini for reboot pending):

SET-SECTION=key:pending-reboot,value:pending-reboot.ps1
CMD=interval:10800,font-size:120%,color:%Red%,font-face:Tahoma,text:Reboot Pending,trim:1,file:powershell.exe,parameters:%pending-reboot%,code-page:437,thread:1,display:%4,no-wait:2,hide-no-result:1
 
I have manually confirmed a reboot is indeed needed.
 
If I need to keep it stand-alone no worries at least it will be the only one I need like that now, instead of 3 ps1 files (password expire, windows update, reboot pending).

 

 



   
Quote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 2066
 

i just tested this on v3.22. Desktop Info displays No Reboot Pending. If I run the script from the powershell command line it displays Reboot Pending.

It may have something to do with the function parameter ComputerName trying to read the environment



   
ReplyQuote
(@emilyhong)
Active Member Registered
Joined: 3 months ago
Posts: 7
 

That's a handy feature to have. One thing I've noticed is that Windows can sometimes leave a reboot-pending flag behind even after updates finish, so checking multiple indicators instead of relying on a single registry key tends to give more reliable results.



   
ReplyQuote
Glenn's Page