Salta al contenuto principale

Return computer to sleep after backup

Thread needs solution

My computer will not, for any reason go back to sleep after a backup is run. I'm not looking to 'resolve' this issue by changing the idle timeout of the computer, I'm looking to resolve this by having it sleep after a backup. I upgraded my mainboard / CPU, now my mainboard runs UEFI and sleep mode works with either the supplied script below or when I run Start -> sleep.

Things I've tried:

But I haven't come up with a viable solution. Any help would be greatly appreciated.

I've ended up configuring a script to run the following: powershell.exe -command "foo.ps1" The contents of which are as follows:

Add-Type -Assembly System.Windows.Forms[System.Windows.Forms.Application]::SetSuspendState("Suspend", $false, $true)

This doesn't work if I want to run a manual backup.

Windows 7 x64bit. ATIH 2012 + Power Pack.

0 Users found this helpful