• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 471
  • Last Modified:

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

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
cawasaki
Asked:
cawasaki
  • 3
  • 2
1 Solution
 
Neil RussellTechnical Development LeadCommented:
Are the servers not on a windows domain? Would be far better to do by group policy if they are.
0
 
cawasakiAuthor Commented:
hi,

its in domain, but i prefer by script if possible
0
 
SteveIT ManagerCommented:
you can always disable the service "windows update" - that'll stop it.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
cawasakiAuthor Commented:
hi, no i need the service to be start because i use it for update with SCCM
0
 
Neil RussellTechnical Development LeadCommented:
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
 
Neil RussellTechnical Development LeadCommented:
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

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now