0

I am evaluating the LabTech managed service provider software, which among other things can install windows updates. Most updates are installed correctly, but some, such as installing SP2 on Win 2003R2 don't seem to be working. The error code indicates a failure to accept the EULA. Obviously, since it is an automated update, there is no opportunity to accept the terms of the EULA. However, the higher-up are insisting that I find a way to roll out updates automatically. Labtech will let me run console commands and scripts, so if I could write a script that deploys the service pack, I would be able to accomplish the same objective.

Has anyone written a script, in any language, to install a windows service pack, for any version of windows?

gillonba
  • 343
  • 1
  • 4
  • 16

2 Answers2

4

If the mandate is to implement automatic update management, why not use WSUS?

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
  • That would be the obvious solution yes, but I was told specifically not to use WSUS – gillonba Oct 14 '10 at 19:47
  • 2
    @rotard: That is the sort of detailed information we could not have guessed and which should be included *within the original question*. – jscott Oct 14 '10 at 19:53
  • The original question was "Has anyone written a script, in any language, to install a windows service pack, for any version of windows?", which excludes the use of WSUS even if I didn't state as much explicitly – gillonba Oct 14 '10 at 21:40
  • @rotard: True enough but you did also say "the higher-up are insisting that I find a way to roll out updates automatically", while simultaneously not saying that the solution had to be strictly a scripted solution or that WSUS was explicitly not an option. You can't blame a guy for trying to help. :) – joeqwerty Oct 14 '10 at 22:39
  • Even if he'd said that he can't use WSUS someone would have suggested it. :-) – Tubs Oct 15 '10 at 12:59
4

servicepack.exe /passive /forcerestart /forceappclose should completely automate the installation.

Chris S
  • 77,945
  • 11
  • 124
  • 216