A Desktop Shutdown Shortcut No Longer Working


OK, for a minute let's forget the Shutdown shortcut since it now works fine. My question now is why doesn't that script to automatically create a System Restore point upon booting not work? I know I am in the correct Startup folder because I was told so above. But to be sure here is what I am using C:\Users\newuser\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup. It's as if that folder and anything in it is being ignored. The above script is the only thing in it and I'm sure it works fine for many but for me it is failing. Is it possible the Startup folder mentioned above is being ignored? There is no other user accounts on these machines so I assume I am using the correct Startup folder. Any ideas how to make the script work for me?

I looked at step 7 above and, if this script would work, it seems much simpler to me.
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
My question now is why doesn't that script to automatically create a System Restore point upon booting not work?
That script in post #6 is incomplete. It defines a Function but does not run it.

Go to the tutorial and download the script you want from there. There is a choice of scripts so consider each one then make your selection.
Make a Create System Restore Point Shortcut - TenForumsTutorials
and then you can do that Windows 10 / Windows 11 substitution I saw you talking about earlier.
Personally, I think you could make a version of the script that works in both Windows 10 & Windows 11 by changing the script line​
If GetOS = "Windows 8" Or GetOS = "Windows 10" Then
to​
If GetOS = "Windows 8" Or GetOS = "Windows 10" Or GetOS = "Windows 11" Then
but I have not tested that. I don't use Restore points; I rely on system images instead.
I've also suggested this change in that tutorial thread.​


Best of luck,
Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Thank you. I tool a cursory look at the link and I am going to have to try to understand it when I get through here. I did try the task scheduling mentioned in post #7. I got it all completed and then on the very last step where it asks for your password, it bombed. I do not use passwords on any of my computers so, according to the error message I got, I cannot schedule a Restore Point creation with the task manager. I was hoping to find a batch file that I could use to create the Restore Point without doing anything else but if I can't find that, I will try to make sense of that tutorial you mentioned. Thanks again.
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
Exactly what asks for your password?
If you are logged in with an Admin account and start Task scheduler then you will be required to give Admn permission to proceed. There should not be any further approval required as long as you are running a task using that user account and without Run whether user is logged in or not selected.

Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I tool a cursory look at the link and I am going to have to try to understand it when I get through here
And Brink has now amended the tutorial to allow you to use its scripts in both Windows 10 & 11 without having to alter the scripts.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Exactly what asks for your password?
If you are logged in with an Admin account and start Task scheduler then you will be required to give Admn permission to proceed. There should not be any further approval required as long as you are running a task using that user account and without Run whether user is logged in or not selected.

Denis
Page 7 of the tutorial. See attachment. It stopped me both times I tried it. Scan2023-07-12_103630.jpg
And Brink has now amended the tutorial to allow you to use its scripts in both Windows 10 & 11 without having to alter the scripts.


Denis
I will look at it again.
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
I was expecting a reply about Make a Create System Restore Point Shortcut - TenForumsTutorials but your reply is clearly about another one.
If you tell me which one I'll have a look at it but, in the meantime,
  • Check that the shortcut runs if you just double-click it manually in File explorer i.e outside of trying to set it up in task scheduler,
  • It is my understanding that the shortcut should work without needing to be elevated. It would help me if you confirmed that [since I do not use Restore points].
  • Check that you are running Task scheduler from an Admin account,
  • Check that it is that account's name that appears in the task's General tab,
  • Check that you are not trying to run the task Whether or not you are logged in at the time [also shown in the General tab].
I think I might end up having to ask you to post a screenshot of each of the task definition tabs [General, Triggers, Actions, Conditions, Settings] so I might as well ask now. Please crop the screenshots around the edge of the tabs to cut out the unnecessary rest of the screen.



All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I was expecting a reply about Make a Create System Restore Point Shortcut - TenForumsTutorials but your reply is clearly about another one.
If you tell me which one I'll have a look at it but, in the meantime,
  • Check that the shortcut runs if you just double-click it manually in File explorer i.e outside of trying to set it up in task scheduler,
  • It is my understanding that the shortcut should work without needing to be elevated. It would help me if you confirmed that [since I do not use Restore points].
  • Check that you are running Task scheduler from an Admin account,
  • Check that it is that account's name that appears in the task's General tab,
  • Check that you are not trying to run the task Whether or not you are logged in at the time [also shown in the General tab].
I think I might end up having to ask you to post a screenshot of each of the task definition tabs [General, Triggers, Actions, Conditions, Settings] so I might as well ask now. Please crop the screenshots around the edge of the tabs to cut out the unnecessary rest of the screen.



All the best,
Denis
I wish I had read this before I tried creating a task again. please let me address the need for a password first because that is why I tried creating a task again. If necessary, I will be glad to post a screenshot of all the steps if this forum accepts that many attachments in a post. For now, I am posting the last step of the created task and then the error box I get. Please see both attachments.

1.jpg2.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
I am not at all sure what shortcut you are asking about. The shortcut that started this thread works perfectly now that I ran sfc /scannow and it seemed to fix some errors. Otherwise, I am not sure what shortcut you mean.

There is only one account on this machine and I do have admin privileges, at least I believe I do since that is how it was setup when I had it built. I wouldn't know how to check to see if task manager was running under my assumed admin privileges. I hope I have answered what you asked about. Thank you.

I found this if it helps.account1.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
Page 7 of the tutorial
Which tutorial?
I wouldn't know how to check to see if task manager was running under my assumed admin privileges.
I think you must mean Task scheduler.
When you run it, do you have to give Admin permission to proceed?
  • This is normal if the account you are logged into is an Admin account.
  • The dialog looks like this
1689178504679.png
- If not then we'll need to stop and find out why not. It could well be the reason Task scheduler is giving you grief.


please let me address the need for a password first because that is why I tried creating a task again
I cannot say anything sensible until I see all those Task manager tabs for the task and find out if you are giving Admin permission when Task scheduler opens.


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Which tutorial?

I think you must mean Task scheduler.
When you run it, do you have to give Admin permission to proceed?
  • This is normal if the account you are logged into is an Admin account.
  • The dialog looks like this
View attachment 64592
- If not then we'll need to stop and find out why not. It could well be the reason Task scheduler is giving you grief.



I cannot say anything sensible until I see all those Task manager tabs for the task and find out if you are giving Admin permission when Task scheduler opens.


All the best,
Denis
The tutorial is the one in post #7 of this thread.

When following the steps in the tutorial to open the task scheduler, I type taskschd.msc in the run window after hitting the Windows key + the R key. When the task scheduler opens, I do not get the window you show asking about making changes to my device. You said if I didn't get that window we should stop and figure out why. I think we should do that but let me try only that far on another computer first before I post this.

OK, I tried it on 2 other computers and both of them opened to the task scheduler without opening that dialog box you mention above.

So how do we find out why.

I decided to check two other computers and all of them opened as I mentioned. When I paste taskschd.msc into the run window I get what can be seen in the attachment. Have no idea why I don't get that dialog box on any of my computers.task.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
If I am logged in to an Admin account in Windows 11 [or Windows 10], when I run taskschd.msc then I get that Admin challenge dialog.
1 Do you get that challenge if you right-click on the Start button & select Windows PowerShell (Admin)?
2 What is the "UAC" setting? - There are four levels and you can either tell me or post a screenshot of it.
Start button,​
[search for] Control panel,​
[set it to] View by - Small icons,​
User accounts,​
Change User account control settings,​
[there should also be an Admin challenge at this point].​


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Question 1. I get no challenge when opening any of the power Shell options Question 1. I get no challenge when opening any of the power Shell options which can be seen in the attachment.

PowerShell1.jpgacount2.jpg
Question 2. I get no challenge for this procedure either and can be seen in the second attachment. Sorry about the images splitting the text. I tried to fix it but made it worse.
 

Attachments

  • PowerShell.jpg
    PowerShell.jpg
    171.1 KB · Views: 2

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
1 I have no idea why the Windows PowerShell (Admin) is not an option for you. Yes, I have - you have not done what I suggested. Right-click on the Start button.

2 You have not clicked on Change User account control settings - it is shown in your diagram but you have not clicked on it.


Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
I'm logging off for the night.


All the best,
Denis
 

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447
Boy! Y'all have totally lost me!
The question I answered was how to create an Automatic Restore point, like I do on every boot.
The answer was so simple.... and now the topic has gone completely off of the rails!!!

Maybe because I use the "Classic Shell" the whole process is easier for me.
My own path to Startup is so simple....Start Button > All Programs > Startup,,, then open the folder and paste the Restore Point script into the Startup folder. And make sure the Script Host service is not disabled, but running on Automatic.
 

My Computer

System One

  • OS
    Win-11/Pro/64, Optimum 11 V5, 23H2 22631.3374
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Made w/Gigabyte mobo/DX-10
    CPU
    AMD FX 6350 Six Core
    Motherboard
    Gigabyte, DX-10, GA-78LMT-USB3
    Memory
    Crucial, 16 GB
    Graphics Card(s)
    NVIDEA GeForce 210, 1GB DDR3 Ram.
    Sound Card
    Onboard
    Monitor(s) Displays
    24" Acer
    Screen Resolution
    1280x800
    Hard Drives
    Crucial SSD 500GB, SanDisk 126GB SSD, Toshiba 1TB HD
    PSU
    EVGA 500 W.
    Case
    Pac Man, Mid Tower
    Cooling
    AMD/OEM
    Keyboard
    101 key, Backlit/ Mechanical Switches/
    Mouse
    Logitech USB Wireless M310
    Internet Speed
    Hughes Net speed varies with the weather
    Browser
    Firefox 64x
    Antivirus
    Windows Defender, Super Anti Spyware
    Other Info
    Given to me as DEAD, and irreparable.
    Rebuilt with Gigabyte mobo, AMD cpu, 16GB ram and 500GB Crucial SSD.
Change User account control settings,[there should also be an Admin challenge at this point].
I am sorry I missed that. I just did it now and there was no Admin challenge. But I think you can see why that is in the attachment. it is set to never challenge me.
Change Account.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
And make sure the Script Host service is not disabled, but running on Automatic.
Maybe that is my problem. Take a look at the attachment. I don't seem to have a Script Host service.
Script Host.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
I'm logging off for the night.


All the best,
Denis
I will take this opportunity to post, what I think, you asked for. It is the steps following the tutorial in post #7. There are 7 attachments. I will post them in the order they appeared while trying to create the task.
1.jpg2.jpg3.jpg4.jpg5.jpg6.jpg7.jpg
 

My Computer

System One

  • OS
    Windows 11 Pro ver. 22H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ACPI x64-based PC
    CPU
    12th Grn. Intel i7-12700K 3600 Mhz 12 Cores
    Motherboard
    ASUSTeK - Prime Z690-P WIFI
    Memory
    64 GB DDR5
    Graphics Card(s)
    NVIDIA GeForce GTX 1650
    Sound Card
    NVIDIA High Definition Audio
    Monitor(s) Displays
    ViewSonic
    Screen Resolution
    1920 x 1080
    Hard Drives
    HDS72252 5VLAT80 2 Tb ssd Hard drive
    PSU
    850 Watt Power Supply
    Case
    19" high desktop
    Cooling
    A lot of fans
    Keyboard
    Logitech
    Mouse
    Logitech
    Internet Speed
    500 Mg
    Browser
    FF
    Antivirus
    Windows Defendor & Malwarebytes
    Other Info
    2 Asus Blu-Ray burners - BW - 16D1HT
it is set to never challenge me
That setting is, by default, at the highest level in Windows 11.
[In Windows 10, the default was at the second highest level. I did a clean install of Windows 11 a couple of weeks ago and I don't have any note about having altered that setting which is why I think the default is now Highest.]
Why did you change it?
I urge you to set it back to the highest level.

Opening Task scheduler [and several other actions] will then challenge you using the dialog I showed you earlier.
1689213403516.png
Please check this is happening.

I'll look at the TS screenshots when you've had a chance to run through with UAC at its highest level.
Do not try to edit whatever you've already entered for that task. Start again from scratch.
If you do still have problems, it would be worth running through creating a simple task in TS just to make sure you can use it successfully. You could create a task to run the Action cmd.exe {which will open a cmd prompt window} then test it by running it manually {right click on it in the TS list of tasks & select Run}.


All the best,
Denis
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Home x64 Version 23H2 Build 22631.3447

Latest Support Threads

Back
Top Bottom