IPB

Google Frontpage Forums Unattended CD/DVD Guide
 
Reply to this topicStart new topic
> How to run CMD File on first logon, Help with running CMD file on first logon
shahed26
post Jun 5 2008, 01:37 PM
Post #1


Windows 7 x64 Ultimate...
***

Group: Members
Posts: 431
Joined: 7-July 07
From: U.K
Member No.: 145825
OS: none
Country Flag


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: Jun 5 2008, 01:38 PM
Go to the top of the page
 
+Quote Post
joe43wv
post Jun 5 2008, 01:42 PM
Post #2


Member
**

Group: Members
Posts: 172
Joined: 8-May 08
From: http://joe43wv.forumup.it
Member No.: 190772
OS: Vista Home Premium x86
Country Flag


My guess would be to create a batch file to execute those scripts and place the batch file in the first logon file.
Go to the top of the page
 
+Quote Post
shahed26
post Jun 5 2008, 01:47 PM
Post #3


Windows 7 x64 Ultimate...
***

Group: Members
Posts: 431
Joined: 7-July 07
From: U.K
Member No.: 145825
OS: none
Country Flag


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"

Go to the top of the page
 
+Quote Post
shahed26
post Jun 5 2008, 03:05 PM
Post #4


Windows 7 x64 Ultimate...
***

Group: Members
Posts: 431
Joined: 7-July 07
From: U.K
Member No.: 145825
OS: none
Country Flag


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
Go to the top of the page
 
+Quote Post
shahed26
post Jun 5 2008, 08:30 PM
Post #5


Windows 7 x64 Ultimate...
***

Group: Members
Posts: 431
Joined: 7-July 07
From: U.K
Member No.: 145825
OS: none
Country Flag


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?

This post has been edited by shahed26: Jun 5 2008, 08:31 PM
Go to the top of the page
 
+Quote Post
aviv00
post Jun 6 2008, 03:15 AM
Post #6


Vlited Server 2008 R2 x64 Workstation User
****

Group: Members
Posts: 602
Joined: 2-April 07
From: Cyberspace
Member No.: 133794
OS: none
Country Flag


open gpedit.msc
check the picture
Attached File(s)
Attached File  123.png ( 73.4K ) Number of downloads: 22
 
Go to the top of the page
 
+Quote Post
shahed26
post Jun 6 2008, 07:03 AM
Post #7


Windows 7 x64 Ultimate...
***

Group: Members
Posts: 431
Joined: 7-July 07
From: U.K
Member No.: 145825
OS: none
Country Flag


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

This post has been edited by shahed26: Jun 6 2008, 07:04 AM
Go to the top of the page
 
+Quote Post
joe43wv
post Jun 6 2008, 07:13 AM
Post #8


Member
**

Group: Members
Posts: 172
Joined: 8-May 08
From: http://joe43wv.forumup.it
Member No.: 190772
OS: Vista Home Premium x86
Country Flag


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.
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 4th December 2008 - 11:39 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2008 msfn.org
Privacy Policy