2008年7月6日

网络策略设置禁止您使用 Windows Update 的简易处理

Author: Hagen.GoO 转载请联系作者
MSN_contact: wantm009@hotmail.com
Keyword: 网络策略,Windows Update, Microsoft Update
Quote:



  朋友家只有一台电脑,系统是简体中文的 Windows XP with SP2。近日在访问 Windows Update 网站进行手动更新时,收到如下内容的错误消息:

访问被拒绝。网络策略设置禁止您使用 Windows Update 在计算机上下载和安装更新。如果您确认此消息有误,请向您的系统管理员咨询。

  参考微软知识库找到的文章,http://support.microsoft.com/kb/326686/zh-cn 依次在如下2项组策略中进行了“已禁用”处理。结果还是没有奏效。

1 “用户配置”-“管理模板”-“任务栏和「开始」菜单”-“删除到‘Windows Update’的访问和链接”
2 “用户配置”-“管理模板”-“Windows 组件”-“Windows Update”-“删除使用所有 Windows Update 功能的访问”

  最后在 http://www.dougknox.com/xp/scripts_desc/xp_winupd_netpolicy.htm 的网站上找到了一个修复脚本 http://www.dougknox.com/xp/scripts/xp_winupd_netpolicy.vbs ,经试验,此脚本完全能修复“网络策略设置禁止您使用 Windows Update”的问题。
  贴出脚本内容,以供学习:
'Undo Windows Update Restriction - xp_winupd_netpolicy.vbs
'?Doug Knox - modified 10/18/2003
'Downloaded from www.dougknox.com

On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")

p1 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate\DisableWindowsUpdateAccess"
p2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWindowsUpdate"

WshShell.RegWrite p1, 0, "REG_DWORD"
WshShell.RegWrite p2, 0, "REG_DWORD"

Set WshShell = Nothing

x = MsgBox("Finished",4096,"Windows Update Restriction")



没有评论: