LeveL Posted May 22, 2007 Posted May 22, 2007 (edited) I have this section in my Autounattend.xml unattended answer file: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>REGEDIT /S C:\WINDOWS\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>So this is only any use if you install on a C:\ drive, so I change it to this: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>And it does not work!These XML methods suck, this was never a problem in XP with WINNT.SIF, you justused %SYSTEMDRIVE% or %WINDIR% and it worked, not in Vista though. I thoughtthings were supposed to get better and easier, not worse and harder? Edited May 22, 2007 by LeveL
FireGeier Posted May 22, 2007 Posted May 22, 2007 Hello LeveL!use cmd /c in front of your command and it will work again:<FirstLogonCommands> <SynchronousCommand wcm:action="add"> <CommandLine>cmd /c REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine> <Description>RegEntries</Description> <Order>1</Order> </SynchronousCommand> </FirstLogonCommands>Regards,Martin
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