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

Registered: 2006-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 - 2006-03-22 06:07 PM Re: Setting System Standby To Never
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
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 - 2006-03-22 07:30 PM Re: Setting System Standby To Never
Les Offline
KiX Master
*****

Registered: 2001-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 - 2006-03-30 06:04 PM Re: Setting System Standby To Never
Malak Offline
Lurker

Registered: 2006-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 - 2006-03-30 06:26 PM Re: Setting System Standby To Never
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 - 2006-04-04 04:02 PM Re: Setting System Standby To Never
Malak Offline
Lurker

Registered: 2006-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 - 2006-04-04 04:07 PM Re: Setting System Standby To Never
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4672
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 (2006-04-04 04:11 PM)
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#159636 - 2006-04-04 04:45 PM Re: Setting System Standby To Never
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
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, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.062 seconds in which 0.024 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