Page 1 of 1 1
Topic Options
#159629 - 06/03/22 04:42 PM Setting System Standby To Never
Dmartin05 Offline
Fresh Scripter

Registered: 06/02/01
Posts: 49
Here is my question:

Is there a way that i could run a remote script that will make all my pc's "System Standby" setting to Never?

Top
#159630 - 06/03/22 06:07 PM Re: Setting System Standby To Never
NTDOC Administrator Offline
Administrator
*****

Registered: 00/07/28
Posts: 11547
Loc: CA
do some searching for Power Management

I'm not sure if you can or not natively, but I think Microsoft has an exe that might allow some type of changes like that.

Top
#159631 - 06/03/22 07:30 PM Re: Setting System Standby To Never
Les Offline
KiX Master
*****

Registered: 01/06/11
Posts: 12734
Loc: fortfrances.on.ca
PowerCfg will do it on XP but users need admin rights or you need to open up a reg key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#159632 - 06/03/30 06:04 PM Re: Setting System Standby To Never
Malak Offline
Lurker

Registered: 06/03/30
Posts: 2
This is exactly what I'm looking to do as well. I've assigned the staff's user group to the local admins group. What is the syntax for running the powercfg command in the kix script? Forgive me but I am a little bit of a newbie in regards to Kix.

-Malak

Top
#159633 - 06/03/30 06:26 PM Re: Setting System Standby To Never
Shawn Administrator Offline
Administrator
*****

Registered: 99/08/13
Posts: 8608
There is a discussion about powercfg and syntax here:

Power Settings

To run powercfg.exe, just shell out to it in your script like:

SHELL "%comspec% /c powercfg.exe parameters"

-Shawn

Top
#159634 - 06/04/04 04:02 PM Re: Setting System Standby To Never
Malak Offline
Lurker

Registered: 06/03/30
Posts: 2
Thanks for the help but I it's not working. Leave it to Microsoft to throw in a little catch. I have had to use the " marks around the always on active state since it is a two word scheme. That seems to be confusing the KIX engine. Is there another way to skin this cat? Or am I just goofing up.

SHELL "%comspec% /c powercfg.exe /setactive "always on""

-Malak

Top
#159635 - 06/04/04 04:07 PM Re: Setting System Standby To Never
Mart Moderator Offline
KiX Supporter
*****

Registered: 02/03/27
Posts: 4612
Loc: The Netherlands
The space in Always on gets screwed up by the command line and not by kix.
This is a "limitation" of the command line just like when you use net start "Some service" you must use quotes around some service to protect the space in it. Command line just chops it at the first space and then (unless something exists with the resulting name) it fails.


Edited by Mart (06/04/04 04:11 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#159636 - 06/04/04 04:45 PM Re: Setting System Standby To Never
Allen Moderator Offline
KiX Supporter
*****

Registered: 03/04/19
Posts: 4261
Loc: USA
Use Single Quotes on the outside of your command line.

SHELL '%comspec% /c powercfg.exe /setactive "always on"'

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
3 registered (BradV, AndrewRoom, Arend_) and 147 anonymous users online.
Newest Members
AndrewRoom, 000Raph000, curkus, Ken_Sumrall, Keris2112
17455 Registered Users

Generated in 0.072 seconds in which 0.029 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org