Jump to content

How to run CMD File on first logon


shahed26

Recommended Posts

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

Edited by shahed26
Link to comment
Share on other sites


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

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..

Edited by shahed26
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...