Subscribe to Windows IT Pro
February 04, 2005 12:00 AM

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

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

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



Related Content:

ARTICLE TOOLS

Comments
    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

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