Page 1 of 1

Run Client Unattendedly

PostPosted: 28.01.2011, 22:58
by dyehardfan
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?

Re: Run Client Unattendedly

PostPosted: 29.01.2011, 15:13
by WSUSUpdateAdmin
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

Re: Run Client Unattendedly

PostPosted: 30.01.2011, 18:01
by dyehardfan
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.

Re: Run Client Unattendedly

PostPosted: 31.01.2011, 07:50
by WSUSUpdateAdmin
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

Re: Run Client Unattendedly

PostPosted: 31.01.2011, 23:57
by dyehardfan
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.