PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How to auto run a few scripts during/after XP install for end user?

 
 
Barkley Bees
Guest
Posts: n/a
 
      19th May 2009
I am in the process of creating a new Windows XP image to support some new
hardware models we will be deploying. After I have the OS build completed I
will sysprep it and then capture it via imagex for deployment.

In addition to this there are a few vbs scripts we want to run when the user
is completing their install. We have the following scripts:

1. Add domain user to local admin group.
2. Set SMS site code to SMS client.
3. Set servername and sign-in name on Office Communicator.

My question is, is there anyway to automate these scripts running once after
the install completes? Appreciate any advice. Thank you.


 
Reply With Quote
 
 
 
 
Andrew E.
Guest
Posts: n/a
 
      19th May 2009
For scripts,go : http://www.microsoft.com/technet
Locate the script center & or library.

"Barkley Bees" wrote:

> I am in the process of creating a new Windows XP image to support some new
> hardware models we will be deploying. After I have the OS build completed I
> will sysprep it and then capture it via imagex for deployment.
>
> In addition to this there are a few vbs scripts we want to run when the user
> is completing their install. We have the following scripts:
>
> 1. Add domain user to local admin group.
> 2. Set SMS site code to SMS client.
> 3. Set servername and sign-in name on Office Communicator.
>
> My question is, is there anyway to automate these scripts running once after
> the install completes? Appreciate any advice. Thank you.
>
>
>

 
Reply With Quote
 
Zaphod Beeblebrox
Guest
Posts: n/a
 
      19th May 2009

"Barkley Bees" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am in the process of creating a new Windows XP image to support
>some new hardware models we will be deploying. After I have the OS
>build completed I will sysprep it and then capture it via imagex for
>deployment.
>
> In addition to this there are a few vbs scripts we want to run when
> the user is completing their install. We have the following scripts:
>
> 1. Add domain user to local admin group.
> 2. Set SMS site code to SMS client.
> 3. Set servername and sign-in name on Office Communicator.
>
> My question is, is there anyway to automate these scripts running
> once after the install completes? Appreciate any advice. Thank you.
>

First, ignore the reply from Andrew E. - out of his ignorance he often
posts inaccurate, misleading, or just plain dangerous things.

Anyway. You might have a look at the GUIRunOnce section of
sysprep.inf, it is what we use to complete the setup of things that
must be done post-reseal. For example, put the program you want to
execute in C:\Windows\Temp (in this example, I'll use MyProg.exe) and
use something like the following:

[GUIRunOnce]
; Once the computer has rebooted and we log in, execute these commands
;
Command0="C:\WINDOWS\Temp\MyProg.exe"

I'm pretty sure you can run multiple commands by using Command1, etc.,
but I've never done it. As an alternative, you could use a batch file
to kick off as many commands as you like.

Hope this helps!

--
Zaphod

Arthur: All my life I've had this strange feeling that there's
something big and sinister going on in the world.
Slartibartfast: No, that's perfectly normal paranoia. Everyone in the
universe gets that.


 
Reply With Quote
 
Hunter01
Guest
Posts: n/a
 
      19th May 2009
Zaphod Beeblebrox wrote:
> "Barkley Bees" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> I am in the process of creating a new Windows XP image to support
>> some new hardware models we will be deploying. After I have the OS
>> build completed I will sysprep it and then capture it via imagex for
>> deployment.
>>
>> In addition to this there are a few vbs scripts we want to run when
>> the user is completing their install. We have the following scripts:
>>
>> 1. Add domain user to local admin group.
>> 2. Set SMS site code to SMS client.
>> 3. Set servername and sign-in name on Office Communicator.
>>
>> My question is, is there anyway to automate these scripts running
>> once after the install completes? Appreciate any advice. Thank you.
>>

> First, ignore the reply from Andrew E. - out of his ignorance he often
> posts inaccurate, misleading, or just plain dangerous things.
>
> Anyway. You might have a look at the GUIRunOnce section of
> sysprep.inf, it is what we use to complete the setup of things that
> must be done post-reseal. For example, put the program you want to
> execute in C:\Windows\Temp (in this example, I'll use MyProg.exe) and
> use something like the following:
>
> [GUIRunOnce]
> ; Once the computer has rebooted and we log in, execute these commands
> ;
> Command0="C:\WINDOWS\Temp\MyProg.exe"
>
> I'm pretty sure you can run multiple commands by using Command1, etc.,
> but I've never done it. As an alternative, you could use a batch file
> to kick off as many commands as you like.
>
> Hope this helps!



We had some probs with using this method with our syspreps, worked well
most of the time but did have some problems. Take a look at
"commandlines.txt" which you need to put into the sysprep/$oem$
directory. I think that you also need to have anything you're running
via this method in that directory also. This will run much earlier than
the guirunonce stuff and will avoid a number of problems by doing so,
but also may present different problems (for instance I don't think
network connectivity will be up by this point and so on).


 
Reply With Quote
 
Barkley Bees
Guest
Posts: n/a
 
      19th May 2009

"Zaphod Beeblebrox" <(E-Mail Removed)> wrote in message
news:guu8lf$loc$(E-Mail Removed)...
>
> "Barkley Bees" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>>I am in the process of creating a new Windows XP image to support some new
>>hardware models we will be deploying. After I have the OS build completed
>>I will sysprep it and then capture it via imagex for deployment.
>>
>> In addition to this there are a few vbs scripts we want to run when the
>> user is completing their install. We have the following scripts:
>>
>> 1. Add domain user to local admin group.
>> 2. Set SMS site code to SMS client.
>> 3. Set servername and sign-in name on Office Communicator.
>>
>> My question is, is there anyway to automate these scripts running once
>> after the install completes? Appreciate any advice. Thank you.
>>

> First, ignore the reply from Andrew E. - out of his ignorance he often
> posts inaccurate, misleading, or just plain dangerous things.
>
> Anyway. You might have a look at the GUIRunOnce section of sysprep.inf,
> it is what we use to complete the setup of things that must be done
> post-reseal. For example, put the program you want to execute in
> C:\Windows\Temp (in this example, I'll use MyProg.exe) and use something
> like the following:
>
> [GUIRunOnce]
> ; Once the computer has rebooted and we log in, execute these commands
> ;
> Command0="C:\WINDOWS\Temp\MyProg.exe"
>
> I'm pretty sure you can run multiple commands by using Command1, etc., but
> I've never done it. As an alternative, you could use a batch file to kick
> off as many commands as you like.
>
> Hope this helps!
>
> --
> Zaphod


Thank you very much Zaphod. I will look into using this portion of the
sysprep answer file.
I found the following which should get me on my way:
http://technet.microsoft.com/en-us/l.../cc961065.aspx
I look forward to testing it out.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
E2K3 Auto-Accepts Scripts vs. Direct Booking =?Utf-8?B?TXk1NXRlYw==?= Microsoft Outlook Calendar 1 27th Feb 2006 07:01 PM
Auto-allow Logon Scripts Brian Spyware Discussion 4 6th Jul 2005 12:28 AM
USER logon scripts, what/where are the user specific startup files =?Utf-8?B?bWVyZGFhZA==?= Microsoft Windows 2000 Deployment 0 4th May 2004 07:36 AM
Scripts for auto-config Mike_Bee Microsoft Outlook Installation 2 14th Mar 2004 02:14 AM
INSTALL SCRIPTS? Brian Johnson Windows XP Help 1 14th Feb 2004 01:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:16 PM.