[TiLT] Posted March 16, 2008 Share Posted March 16, 2008 I can add the keys fine after Vista is installed, but if I add them in during setup they're wiped clean before the first user logs on.the HKCU RunOnce branch is actually removed in it's entirety. but it works fine if I add the key manually after the user logs on. Link to comment Share on other sites More sharing options...
[TiLT] Posted March 17, 2008 Author Share Posted March 17, 2008 (edited) woot! got it working. HKCU Run & RunOnce were being obliterated before first logon (even when I locked down permissions on them beforehand), but HKLM RunOnce stays intact.so I used HKLM RunOnce to run a script that adds a key to HKCU RunOnce and then reboots.I needed to use both because certain pesky registry tweaks will only "stick" if run from HKCU, while others only "stick" when run from HKLM.Had to combine setupcomplete.cmd with the RunOnce keys to finally set all the keys I wanted.specialize, oobeSystem, and even auditUser passes were all (mostly) worthless.(this was all with SP1 RTM btw)P.S. - Another thing I noticed early on, you can't use regedit to import the Run\RunOnce keys, they won't be written. Instead I used reg add or regini. I never tried reg import. Edited March 17, 2008 by [TiLT] Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted March 17, 2008 Share Posted March 17, 2008 woot! got it working. HKCU Run & RunOnce were being obliterated before first logon (even when I locked down permissions on them beforehand), but HKLM RunOnce stays intact.so I used HKLM RunOnce to run a script that adds a key to HKCU RunOnce and then reboots.I needed to use both because certain pesky registry tweaks will only "stick" if run from HKCU, while others only "stick" when run from HKLM.Had to combine setupcomplete.cmd with the RunOnce keys to finally set all the keys I wanted.specialize, oobeSystem, and even auditUser passes were all (mostly) worthless.(this was all with SP1 RTM btw)P.S. - Another thing I noticed early on, you can't use regedit to import the Run\RunOnce keys, they won't be written. Instead I used reg add or regini. I never tried reg import.Glad ya got it workin..how about a tute for the few not in the know? Link to comment Share on other sites More sharing options...
[TiLT] Posted March 17, 2008 Author Share Posted March 17, 2008 (edited) use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOncerunonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.I run all .cmd with hidec and they work fine that way. Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xml Edited March 17, 2008 by [TiLT] Link to comment Share on other sites More sharing options...
MAVERICKS CHOICE Posted March 17, 2008 Share Posted March 17, 2008 use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOncerunonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.I run all .cmd with hidec and they work fine that way. Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xmlLook I know where you are coming from but a simple tutorial would be helpful to some. Link to comment Share on other sites More sharing options...
ajua Posted March 18, 2008 Share Posted March 18, 2008 use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOncerunonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.I run all .cmd with hidec and they work fine that way. Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xmlLook I know where you are coming from but a simple tutorial would be helpful to some.that would be nice. i don't have the time to try it right now. I use FirstLogonCommanfs for now and works great. Im now into SP1 without any hassles. Link to comment Share on other sites More sharing options...
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