Solved Sleep shortcut causes restart.


Graulges

Well-known member
Member
VIP
Local time
5:54 AM
Posts
3,048
Location
France
OS
Windows 11 Pro 25H2 26200.8655
I have created a sleep shortcut with the command "rundll32.exe powrprof.dll,SetSuspendState 0,1,0" but when I double click on it causes a restart instead. Anybody have any ideas on how to fix this?
 
Windows Build/Version
Build 22635.2915

My Computer My Computer

At a glance

Windows 11 Pro 25H2 26200.8655Ryzen 5 760032 Gb DDR5 6000Hz Corsair VengeanceSapphire Pulse RX 7600
OS
Windows 11 Pro 25H2 26200.8655
Computer type
PC/Desktop
Manufacturer/Model
Home built
CPU
Ryzen 5 7600
Motherboard
Gigabyte B650M Aorus Elite AX Ice
Memory
32 Gb DDR5 6000Hz Corsair Vengeance
Graphics Card(s)
Sapphire Pulse RX 7600
Sound Card
Internal Realtek
Monitor(s) Displays
Samsung 32" Odyssey G5 G50D QHD
Screen Resolution
2560 x 1440
Hard Drives
WD Black SN 770 1Tb; SanDisk SDSSDA240G ; Seagate 2Tb HDD
PSU
MSI MAG A750GL
Case
Enermax Marbleshell MS21
Cooling
Thermaltake Peerless Assassin 120 White ARGB, 3 x 120 intake, 1 x 120 exhaust
Keyboard
Aukey KM-G12
Mouse
Razer Basilisk v3 Pro 35K
Internet Speed
1 Gb/s up & 800 Mb/s down
Browser
Brave / Edge
Antivirus
Windows / Malwarebytes
Try this link:
It has some tips on achieving your goal, the easiest being to use shutdown.exe /h in a .bat file.
 

My Computer My Computer

At a glance

Windows 11 ProRyzen 9 3900XG-Skill RipjawsV F4-3600C18 (16GB x 2)Gigabyte RX 5700 XT Gaming OC
OS
Windows 11 Pro
Computer type
PC/Desktop
CPU
Ryzen 9 3900X
Motherboard
ASUS ROG Strix X570-E Gaming
Memory
G-Skill RipjawsV F4-3600C18 (16GB x 2)
Graphics Card(s)
Gigabyte RX 5700 XT Gaming OC
Sound Card
Realtek ALC1220P
Monitor(s) Displays
ASUS VE278 (x 2)
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 256GB
Samsung 970 Pro NVMe 512GB (x 2)
ST10000VN0004 10TB (x 2)
ST10000VN0008 10TB (x 2)
ST4000VN000 4TB (x 2)
PSU
Corsair HX1000
Case
Corsair Carbide 400R
Cooling
AMD Wraith Prism (Stock)
Keyboard
Logitech G213
Mouse
Logitech G502
Internet Speed
100Mbps down / 40Mbps up
Browser
Firefox - Chrome - Edge
Antivirus
Windows Defender - Clamwin
Try disabling hibernation. From an Admin command prompt...

powercfg -h off
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
PC/Desktop
Thanks @rick99 , that did it. I thought I had hibernate turned off so I hadn't checked that.
 

My Computer My Computer

At a glance

Windows 11 Pro 25H2 26200.8655Ryzen 5 760032 Gb DDR5 6000Hz Corsair VengeanceSapphire Pulse RX 7600
OS
Windows 11 Pro 25H2 26200.8655
Computer type
PC/Desktop
Manufacturer/Model
Home built
CPU
Ryzen 5 7600
Motherboard
Gigabyte B650M Aorus Elite AX Ice
Memory
32 Gb DDR5 6000Hz Corsair Vengeance
Graphics Card(s)
Sapphire Pulse RX 7600
Sound Card
Internal Realtek
Monitor(s) Displays
Samsung 32" Odyssey G5 G50D QHD
Screen Resolution
2560 x 1440
Hard Drives
WD Black SN 770 1Tb; SanDisk SDSSDA240G ; Seagate 2Tb HDD
PSU
MSI MAG A750GL
Case
Enermax Marbleshell MS21
Cooling
Thermaltake Peerless Assassin 120 White ARGB, 3 x 120 intake, 1 x 120 exhaust
Keyboard
Aukey KM-G12
Mouse
Razer Basilisk v3 Pro 35K
Internet Speed
1 Gb/s up & 800 Mb/s down
Browser
Brave / Edge
Antivirus
Windows / Malwarebytes
Glad it worked!
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
PC/Desktop

Latest Support Threads

Back
Top Bottom