shahed26 Posted June 5, 2008 Share Posted June 5, 2008 (edited) Hii want to run a CMD file , which has reg tweaks and silent install application switches. It works on vista by placing a cmd file in "sources\$OEM$\setup\scripts" folder, but in server 2008, how do i run a cmd file at first logon to apply my reg tweaks and setup my silent apps, i couldn't run WPI, or cmd files by placing it in $OEM$ on server DVD ISO. Does anybody know how to get cmd files running on first logon?Thanks Edited June 5, 2008 by shahed26 Link to comment Share on other sites More sharing options...
joe43wv Posted June 5, 2008 Share Posted June 5, 2008 My guess would be to create a batch file to execute those scripts and place the batch file in the first logon file. Link to comment Share on other sites More sharing options...
shahed26 Posted June 5, 2008 Author Share Posted June 5, 2008 My guess would be to create a batch file to execute those scripts and place the batch file in the first logon file.Thanks, will try that, never used the "bat" extension before, its always been "cmd" Link to comment Share on other sites More sharing options...
shahed26 Posted June 5, 2008 Author Share Posted June 5, 2008 No, still does not work.. the first thing i get on first logon is to create a password after that its the normal desktop, no batch or cmd files run.. Link to comment Share on other sites More sharing options...
shahed26 Posted June 6, 2008 Author Share Posted June 6, 2008 (edited) place the batch file in the first logon file.is there such a folder "logon folder" to place a batch file to get it running? Edited June 6, 2008 by shahed26 Link to comment Share on other sites More sharing options...
aviv00 Posted June 6, 2008 Share Posted June 6, 2008 open gpedit.msccheck the picture Link to comment Share on other sites More sharing options...
shahed26 Posted June 6, 2008 Author Share Posted June 6, 2008 (edited) open gpedit.msccheck the pictureThanks, but i wanted to run the script only at RunOnce in first logon, eg, "WPI" on first logon after installation.It works fine on vista when i place a "cmd" file on $oem$ folder, but not on server.. am sure there is a way, but can't seem to figure it out.. Edited June 6, 2008 by shahed26 Link to comment Share on other sites More sharing options...
joe43wv Posted June 6, 2008 Share Posted June 6, 2008 place the batch file in the first logon file.is there such a folder "logon folder" to place a batch file to get it running?Ya I think if you edit the runonce registry key that could take care of it. 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