Powercf.exe & Windows Service

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I have created a VS Windows Services project to call powercfg.exe
every 2mins (in a timerdelegate). In On Start event of the service I
have set the process file name to powercfg.exe and have set argument
as "/create "my power scheme" and started the process. In the delegate
fucntion first the get the avaliable scheme and check for my existing
scheme ("my power scheme"), if its there I set other power settings
like monitor timeout, disk timeout etc,. Here the catch is when the
service is started for the first time the On Start event does not
create a power scheme. I tried creating a power scheme in a windows
application and it created, but not in a windows service. Is there
anything that I am missing?

Thanks.
.



Relevant Pages

  • Windows Service + Powercfg.exe
    ... I have created a VS Windows Services project to call powercfg.exe ... fucntion first the get the avaliable scheme and check for my existing ... like monitor timeout, disk timeout etc,. ... I tried creating a power scheme in a windows ...
    (microsoft.public.dotnet.general)
  • Re: I Created a new Power Scheme, and it vanished after clicking OK
    ... and use the default 'Administrator' account to create the scheme. ... > I Created a new Power Scheme, and it vanished after clicking OK ... > Driver Version: 6.14.0010.6693 ... > I3DL2Listen/Src: No, No ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Windows Service + Powercfg.exe
    ... fucntion first the get the avaliable scheme and check for my existing ... I tried creating a power scheme in a windows ... but not in a windows service. ... I personally would consider changing the app to be a console application and call it using the scheduled task manager. ...
    (microsoft.public.dotnet.general)
  • WritePwrScheme under Vista
    ... I've got an application that a requires that the power scheme be ... run under Vista without setting that feature. ... The scheme is not found but the WritePwrScheme call ... If I run the program as Admin, the correct Power scheme is ...
    (microsoft.public.win32.programmer.kernel)