Cyberdyne Posted May 12, 2014 Posted May 12, 2014 My script so far looks like this... $exename = InputBox("Auto Large Pages","Enter the EXE you want to give Large Pages",".exe") RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\"&$exename"", "UseLargePages", "REG_DWORD", "00000001") Msgbox(0, "Results", "Large Pages Enabled for "&$exename) The second line is said to be incorrect. I don't understand what I am doing wrong, is it simply impossible to use a variable like that?
jguinch Posted May 12, 2014 Posted May 12, 2014 ... and just 1 instead of "00000001" Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Cyberdyne Posted May 12, 2014 Author Posted May 12, 2014 (edited) EDIT: after making the changes the script completes now. But I don't see the key added in the registry. I did close regedit and reopen it just in case. Not there. NVM, it worked. Had to compile and run as administrator. Thanks for your help! Edited May 12, 2014 by Cyberdyne
Palestinian Posted May 12, 2014 Posted May 12, 2014 Add #RequireAdmin at the top of your script to make it run as admin everytime
jguinch Posted May 12, 2014 Posted May 12, 2014 Yes,#RequireAdmin is often necessary, and have a look in HKEY_LOCAL_MACHINESoftwareWow6432Node Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now