February 04, 2005 02:04 PM

JSI Tip 9017. How can I prevent Windows XP users from clicking Windows Update, or running Wupdmgr.exe?

Rating: (0)
Windows IT Pro
InstantDoc ID #82952

I have scripted NoWU.bat to prevent Windows XP users in your domain from using Windows Update on the Start menu, or from running Wupdmgr.exe, to get to http://windowsupdate.microsoft.com.

The syntax for using NoWU.bat is:

NoWU [NetBIOS_Domain_Name]

Where NetBIOS_Domain_Name is an optional parameter, unless you are logged on locally.

NOTE: The NoWU script uses NetViewC.bat, which must be located in a folder that is in your PATH.

NoWU.bat contains:

@echo off
setlocal
set keywu=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wupdmgr.exe
set keyxp=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion
for /f %%a in ('netviewc %1') do (
 for /f "Tokens=2*" %%r in ('REG QUERY "%%a\%keyxp%" /v CurrentVersion^|find "REG_SZ"^|Find "5.1"') do (
  @echo %%a
  REG ADD "%%a\%keywu%" /V Debugger /T REG_SZ /F /D "ntsd --"
  @echo.
 )
)
endlocal



ARTICLE TOOLS

Add a Comment

There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

eBooks

Playbook for a Virtualized Datacenter | During challenging times, optimizing the IT infrastructure becomes imperative. Many organizations are looking to extend their virtualization efforts to encompass the entire datacenter. Get a step-through of your technology options and more.

White Papers

As the advances in USB devices have made them invaluable to most business users’, they have also exposed organizations to enormous risks. Learn how to easily enforce device/port control and data encryption policies without requiring new infrastructure and additional admin overhead.

WEB SEMINARS

Is Flexible Lockdown Possible? Join Darren Mar-Elia for this free web webinar exploring the various methods you should consider to protect and control your desktops while also understanding the impact on the end user community.
View Seminar On-Demand.

eLearning Series

Windows IT Pro brings the experts direct to you to share their real-world perspective, experience, and expertise. During each event, three sessions stream in real time, allowing you to learn, to ask questions, and to get solutions.
Upcoming event: SQL Server Consolidation

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.