Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×



Recommended Posts

I was curious as to whether it would be possible to take a VBScript that sets the Power Options for a user account and integrate this into the Windows setup process by including the .vbs into the HFGUIRUNONCE folder. I read some of the forum posts that indicated the acceptable file types that could go in this folder but VBScript was not mentioned. I thought it might work since batch files work and the vbscript itself takes no parameters or outside arguments as inputs. Please let me know if anyone thinks this might be possible.

Link to comment
Share on other sites

U can try to create a batch file with the following syntax:

Start "poweroption" /B wscript poweroption.vbs

Put poweroption.vbs & poweroption.cmd in HFGUIRUNONCE and see how it goes. (Not tested)

If it is not working, I believe it can be replace with a .reg file since it is kinda of registry tweak.


Did a small testing and the following works:

create and put a batch file (say poweroption.cmd) in HFGUIRUNONCE

wscript %windir%\poweroption.vbs

Put poweroption.vbs in HFEXPERT\WIN folder

Edited by Geej
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...