Help - Search - Members - Calendar
Full Version: How to run CMD File on first logon
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows Server 2008

   
Google Internet Forums Unattended CD/DVD Guide
shahed26
Hi
i 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
joe43wv
My guess would be to create a batch file to execute those scripts and place the batch file in the first logon file.
shahed26
QUOTE (joe43wv @ Jun 5 2008, 08:42 PM) *
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"

shahed26
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.. sad.gif
shahed26
QUOTE (joe43wv @ Jun 5 2008, 08:42 PM) *
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?
aviv00
open gpedit.msc
check the picture
shahed26
QUOTE (aviv00 @ Jun 6 2008, 10:15 AM) *
open gpedit.msc
check the picture

Thanks, 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..
joe43wv
QUOTE (shahed26 @ Jun 5 2008, 10:30 PM) *
QUOTE (joe43wv @ Jun 5 2008, 08:42 PM) *
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.
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.