Run Client Unattendedly

Run Client Unattendedly

Postby dyehardfan » 28.01.2011, 22:58

I am trying to run the WSUSOL Client in an Unattended fashion as a post-installation task after OS Installtion.

When I run the update.cmd it opens a new Command window and runs the program just fine. However, at the end of the program running it just sits at the command prompt of the 2nd window instead of closing it so that the rest of the batch file that called update.cmd can run.

Does anyone know how I can change this behavior so that the second window closes after the update.cmd and all of the following stuff runs?
dyehardfan
 

Re: Run Client Unattendedly

Postby WSUSUpdateAdmin » 29.01.2011, 15:13

Please call ...\client\cmd\DoUpdate.cmd directly from your wrapping script.

As you can see, ...\client\Update.cmd just does
Code: Select all
start DoUpdate %*

, which opens the second command window.

RTW
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Run Client Unattendedly

Postby dyehardfan » 30.01.2011, 18:01

Yes, I found that and have actually tried that route as well, maybe I am not doing it properly though.

The following is the .bat file I am using:

robocopy "2011_01_28" "%temp%\WSUS_OL" *.* /E
start /wait %temp%\WSUS_OL\cmd\DoUpdate.cmd

the 2011_01_28 folder is just the client folder that is created when I ran the updategenerator. When I run this command it still opens a new window to run the client install.

Once the DoUpdate.cmd command finishes running all of it's internal scripting it does not close the new window so my batch file has no way of closing that I can find to implement.
dyehardfan
 

Re: Run Client Unattendedly

Postby WSUSUpdateAdmin » 31.01.2011, 07:50

Hi!

Please replace

Code: Select all
start /wait %temp%\WSUS_OL\cmd\DoUpdate.cmd

by

Code: Select all
call %temp%\WSUS_OL\cmd\DoUpdate.cmd


RTW
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: Run Client Unattendedly

Postby dyehardfan » 31.01.2011, 23:57

that was exactly what I needed, thank you.

I wasn't aware there was a difference between start and call. looks like more research for me.
dyehardfan
 


Return to Installation / Updating

Who is online

Users browsing this forum: No registered users and 37 guests