Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

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

share|improve this answer
    
Excellent! I'll give that a try and mark as answer if it works –  rotard Oct 14 '10 at 19:50
    
This didn't work, but "servicepack.exe /q" worked just fine. Close enough! –  rotard Oct 15 '10 at 13:01
add comment

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

share|improve this answer
    
That would be the obvious solution yes, but I was told specifically not to use WSUS –  rotard 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 –  rotard 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.