Solved

remotely disable windows update: set windows update to never search update

Posted on 2013-01-11
6
417 Views
Last Modified: 2013-02-18
Hello,

i need a powershell script to remotely disable windows update, i need to set option to never search updates.

i have a liste of server in txt file like this:

server1
server2
server3
.....

my server is windows 2003 and 2008 and 2008 r2.

thanks for help
0
Comment
Question by:cawasaki
  • 3
  • 2
6 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38766937
Are the servers not on a windows domain? Would be far better to do by group policy if they are.
0
 

Author Comment

by:cawasaki
ID: 38766971
hi,

its in domain, but i prefer by script if possible
0
 
LVL 17

Expert Comment

by:sgsm81
ID: 38766975
you can always disable the service "windows update" - that'll stop it.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:cawasaki
ID: 38766982
hi, no i need the service to be start because i use it for update with SCCM
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 500 total points
ID: 38767006
If you disable by script AND there is a Group policy either NOW or created in the future to affect an OU that those servers are in then you MAY inadvertantly start update services again when you had not intended to.  That is why I said GP would be the better method.

Howver as said, stopping the service if it is a temp fix would be the easiest method.


SC \\servername stop "wuauserv"
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38767011
Do you have the SCCM Update setup guide?

See http://www.windows-noob.com/forums/index.php?/topic/1064-sccm-2007-guides/ for SCCM 2007
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Synchronize a new Active Directory domain with an existing Office 365 tenant
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now