Standby-Batch with non-admin account


R

Ralf Barth

Hi everyone,

I manage a Windows 7 computer at my parents' house. They work with a normal user account, no admin rights.
I was trying to put a batch file on the desktop to remind them of using the StandBy-mode when not using the computer:

@echo off
powercfg -h off
%windir%\System32
rundll32.exe powrprof.dll,SetSuspendState

The code works very well, but it requires the user to enter the admin password :(

Does anyone know, if there's a way to change that? Isn't it possible to do something like suid.. ?

Any answer is appreciated!

Thanks,
Ralf
 
Ad

Advertisements

P

Paul

Ralf said:
Hi everyone,

I manage a Windows 7 computer at my parents' house. They work with a normal user account, no admin rights.
I was trying to put a batch file on the desktop to remind them of using the StandBy-mode when not using the computer:

@echo off
powercfg -h off
%windir%\System32
rundll32.exe powrprof.dll,SetSuspendState

The code works very well, but it requires the user to enter the admin password :(

Does anyone know, if there's a way to change that? Isn't it possible to do something like suid.. ?

Any answer is appreciated!

Thanks,
Ralf
Could you do it with Power Options instead ?

http://www.tweakhound.com/windows7/tweaking/poweropt2.gif

( from http://www.tweakhound.com/windows7/tweaking/10.html )

That way, they don't have to click anything, and if
the computer is left powered and unattended, it can
switch to S3 Sleep on its own. Say, set the time constant
to an hour of unattended operation, to sleep it.

And if you go to Device Manager, and enable the appropriate
tick box for keyboard or mouse, perhaps even manage to wake
the machine again, if they hit a key on the keyboard, or move
the mouse. Modern machines power the keyboard and mouse with
+5VSB, so there should be a power source in S3 standby. Older
machines, may require a jumper plug to be moved to the
+5VSB position.

The BIOS used to play a part in that as well, so if ticking
the Device Manager entry for the keyboard doesn't do anything,
check the BIOS for waking options.

Paul
 
Ad

Advertisements

G

GlowingBlueMist

[snip instructions]

Paul, I agree, that's the solution. No need for a batch file.
I agree with you too Paul. I did the same thing for my aunts computer.
On her machine I was lucky and found the BIOS option that allowed the
machine to use her USB keyboard to wake up the box.

With her lighted keyboard, that goes dark when the system goes quiet,
she just hits the shift or any other key to bring the system back up.
When she sees the keyboard keys light up she knows the system accepted
the wake-up command and just waits for it to resume responding.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top