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.
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):
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
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.