MSFN Forum: How to run CMD File on first logon - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to run CMD File on first logon Help with running CMD file on first logon

#1 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 05 June 2008 - 01:37 PM

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

This post has been edited by shahed26: 05 June 2008 - 01:38 PM



#2 User is offline   joe43wv 

  • Member
  • PipPip
  • Group: Members
  • Posts: 218
  • Joined: 08-May 08
  • OS:none specified
  • Country: Country Flag

Posted 05 June 2008 - 01: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.

#3 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 05 June 2008 - 01:47 PM

View Postjoe43wv, on Jun 5 2008, 08:42 PM, said:

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"

#4 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 05 June 2008 - 03:05 PM

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

#5 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 05 June 2008 - 08:30 PM

View Postjoe43wv, on Jun 5 2008, 08:42 PM, said:

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?

This post has been edited by shahed26: 05 June 2008 - 08:31 PM


#6 User is offline   aviv00 

  • Windowaizer
  • PipPipPipPipPip
  • Group: Members
  • Posts: 910
  • Joined: 02-April 07

Posted 06 June 2008 - 03:15 AM

open gpedit.msc
check the picture

Attached File(s)

  • Attached File  123.png (73.4K)
    Number of downloads: 47


#7 User is offline   shahed26 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 462
  • Joined: 07-July 07

Posted 06 June 2008 - 07:03 AM

View Postaviv00, on Jun 6 2008, 10:15 AM, said:

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

This post has been edited by shahed26: 06 June 2008 - 07:04 AM


#8 User is offline   joe43wv 

  • Member
  • PipPip
  • Group: Members
  • Posts: 218
  • Joined: 08-May 08
  • OS:none specified
  • Country: Country Flag

Posted 06 June 2008 - 07:13 AM

View Postshahed26, on Jun 5 2008, 10:30 PM, said:

View Postjoe43wv, on Jun 5 2008, 08:42 PM, said:

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy