Jump to content


Script to install updates automatically

3 replies to this topic



    COMPTIA & MS Moderator

  • Honorary members
  • PipPipPip
  • 295 posts
  • 48129 thanks
  • LocationCertcollection.org

Posted 18 October 2015 - 05:11 AM

Hello Experts :yo:

I need a solution for new requirement with below scenario.

We have many windows desktop systems installed with XP and Win 7 (around 100+) in our Domain, I have to install windows updates on all these systems remotely.  I have Domain Admin privileges but I can not use WSUS for this task, and I want to do this with less interaction with these systems.  I have downloaded latest security updates DVD from MS.

So guys, help me out with your expertise to accomplish this task.

Edited by EKLAVYA, 18 October 2015 - 05:13 AM.

MCSA 2003 / 2012
MCITP 2008
MCTS (Exchange 2k7)

VMWare 5.0
EMC Storages

Do not post useless "thank you" post.

If you want to see the content of the hidden links
Please use the "Thanks" button as shown in the announcements

All following useless "thank you, thnx, thx, thanks" will be removed.

Follow The Forum Rules and Support Forum

Thanked by 2 Members:
rajsamui , abhilashccna

#2 Zedken


    Junior Member

  • Members
  • PipPip
  • 5 posts
  • 31 thanks

Posted 02 December 2015 - 04:11 PM

If you can't use WSUS or SCCM or some other client managament solution, then you must prepare answer files for each update and install it in the batch.

#3 EQNish


    Junior Member

  • Members
  • PipPip
  • 8 posts
  • 385 thanks
  • LocationBaltimore

Posted 30 July 2016 - 03:21 AM

Old as shit thread, but someone might find this useful

If you put all the MSI files in a single folder, You can Pipe a DIR command to txt, then loop though the txt and run each MSI, Might look like;
DIR /b *.MSI > dir.txt
FOR /F "tokens=1,2* delims=," %%G IN (dir.txt) DO (MSIEXEC /I "%%G" /QB)
Del dir.txt
you could then repeat the code for each file type (MSI, MSP, EXE) into a batch file
to get this to run on multiple systems, put everything on a fileshare, and use PSEXEC to run a remote command prompt
Might look like this;
PSEXEC \\SomeCompName MyPatch.cmd

Thanked by 1 Member:

#4 kasidisaueb


    Junior Member

  • Members
  • PipPip
  • 5 posts
  • 552 thanks

Posted 14 January 2018 - 10:57 AM

Nice answer EQNish. For a small number of hosts this could work beautifully

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users




Test Providers

Site Info

Go to top