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.
Page 1 of 1
HFGUIRUNONCE & VBScripts HFGUIRUNONCE & VBScripts
#2
Posted 28 October 2009 - 04:14 PM
hfslip doesn't support vbscripts. You're best bet is to ask on the unattended forum.
#3
Posted 30 October 2009 - 07:13 AM
U can try to create a batch file with the following syntax:
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.
edit:
Did a small testing and the following works:
create and put a batch file (say poweroption.cmd) in HFGUIRUNONCE
Put poweroption.vbs in HFEXPERT\WIN folder
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.
edit:
Did a small testing and the following works:
create and put a batch file (say poweroption.cmd) in HFGUIRUNONCE
wscript %windir%\poweroption.vbs exit
Put poweroption.vbs in HFEXPERT\WIN folder
This post has been edited by Geej: 01 November 2009 - 04:57 PM
Share this topic:
Page 1 of 1



Help
Back to top










