6

Click here to load reader

Enable Update Windows XP & 7 Through Proxy

  • Upload
    avmpro

  • View
    89

  • Download
    3

Embed Size (px)

Citation preview

Page 1: Enable Update Windows XP & 7 Through Proxy

Enable Update Windows XP through Proxy using Windows Automatic Updates.

When your network use proxy to connect to internet, you may not be able to use Windows XP

Automatic Updates to updates your Windows XP directly for the internet. Until you configure

Windows XP to use proxy server you cannot enable Windows automatic updates. To enable

Windows XP to use proxy server, you need to setup your Windows XP default proxy server using

proxycfg the proxy configuration tools. The step by step below show how to configure Windows

XP Automatic Updates to use proxy server.

The example below show that Windows XP operating system updating and apply patch, hot fix and

then update Windows XP by restarting the computer.

or Windows XP patch and hot fix apply when you want to turn off your computer.

Step to enable Windows XP Automatic Update Fix:

1. Go to Start menu -> Setting -> Control Panel... then setup Windows XP automatic update by

clicking on Automatic Updates icon

2. Make sure that the radio button is set to Automatic (recommended) and set the best time for

your computer to download the hot fix and patch (best when your computer idle.. e.g. lunch time or

midnight)

1/6

Page 2: Enable Update Windows XP & 7 Through Proxy

3. Now open Windows XP command prompt (CMD) and type in proxycfg and then hit 'Enter' key

to check current proxy for your Windows XP.

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\jason>proxycfg Microsoft (R) WinHTTP Default Proxy Configuration Tool

Copyright (c) Microsoft Corporation. All rights reserved.

Current WinHTTP proxy settings under:

HKEY_LOCAL_MACHINE\

SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\

WinHttpSettings :

Direct access (no proxy server).

C:\Documents and Settings\jason>

4. To setup Windows Xp proxy server, execute proxycfg command with -p option then put Proxy

Server IP address as show on command example below.

2/6

Page 3: Enable Update Windows XP & 7 Through Proxy

Example:

C:\Documents and Settings\jason>proxycfg -p 172.16.160.119:8080 172.16.*

Microsoft (R) WinHTTP Default Proxy Configuration Tool

Copyright (c) Microsoft Corporation. All rights reserved.

Updated proxy settings

Current WinHTTP proxy settings under:

HKEY_LOCAL_MACHINE\

SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\

WinHttpSettings :

Proxy Server(s) : 172.16.160.119:8080

Bypass List : 172.16.*

C:\Documents and Settings\jason>

5. Verify Windows XP default proxy configuration changes by execute proxycfg command as

show on example below.

6. To check Windows XP Automatic update log file, execute command shown below:

Check windows XP update log file:

C:\Documents and Settings\jason>notepad %windir%\Windowsupdate.log

3/6

Page 4: Enable Update Windows XP & 7 Through Proxy

2009-08-21 10:08:12:375 1684 cc4 DnldMgr * Queueing update for download

handler request generation.

2009-08-21 10:08:12:375 1684 cc4 DnldMgr Generating download request for

update {BF6C2D42-31A0-437D-B5B5-ED93DB8AFA77}.101

2009-08-21 10:08:12:562 1684 cc4 Handler Windows Patch download for

UpdateId = {BF6C2D42-31A0-437D-B5B5-ED93DB8AFA77}: selected action is download full-

file.

2009-08-21 10:08:14:531 1684 cc4 DnldMgr *********** DnldMgr: New

download job [UpdateId = {BF6C2D42-31A0-437D-B5B5-ED93DB8AFA77}.101] ***********

2009-08-21 10:08:14:531 1684 cc4 DnldMgr * All files for update were already

downloaded and are valid.

2009-08-21 10:08:14:750 1684 c18 AU >>## RESUMED ## AU: Download update

[UpdateId = {9397A21F-246

7. Get help using proxycfg command

C:\Documents and Settings\jason>proxycfg -?

Microsoft (R) WinHTTP Default Proxy Configuration Tool

Copyright (c) Microsoft Corporation. All rights reserved.

Usage:

proxycfg -? : to view help information

proxycfg : to view current WinHTTP proxy settings

proxycfg [-d] [-p <server-name> [<bypass-list>]]

-d : set direct access

-p : set proxy server(s), and optional bypass list

proxycfg -u : import proxy settings from current user's

Microsoft Internet Explorer manual settings (in HKCU)

Remove default proxy server on Windows XP:

Use the Proxycfg.exe command tool to remove proxy server and to configure direct access to the

Internet, follow these steps:

1. Open Windows Xp command interpreter cmd.exe.

2. Type in proxycfg with -d option and hit 'Enter' key to remove proxy server configuration.

4/6

Page 5: Enable Update Windows XP & 7 Through Proxy

C:\Documents and Settings\Jason>proxycfg -d

Microsoft (R) WinHTTP Default Proxy Configuration Tool

Copyright (c) Microsoft Corporation. All rights reserved.

Updated proxy settings

Current WinHTTP proxy settings under:

HKEY_LOCAL_MACHINE\

SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\

WinHttpSettings :

Direct access (no proxy server).

C:\Documents and Settings\Jason>

5/6

Page 6: Enable Update Windows XP & 7 Through Proxy

CONFIGURING WINDOWS 7 UPDATE TO USE A PROXY SERVER

Windows Update can use an HTTP proxy server. However, configuring Windows Internet Explorer

is not sufficient to configure Windows Update because Windows Update uses Windows HTTP

Services (WinHTTP) to scan for updates and BITS to download updates.

You can configure Windows Update to use a proxy server in two ways:

Web Proxy Auto Detect (WPAD) settings are configured. The WPAD feature lets services locate an

available proxy server by querying a Dynamic Host Configuration Protocol (DHCP) option or by

locating a particular Domain Name System (DNS) record.

Use the Netsh command-line tool, which replaces the Proxycfg.exe tool.

To use the Netsh command-line tool, first switch to the Netsh Winhttp context. Then, use the show

proxy command to view settings or the set proxy command to define your proxy server

configuration settings. For example, you can run the following command to view current proxy

server settings:

netsh winhttp show proxy

The following commands demonstrate how to configure proxy server settings:

netsh winhttp set proxy myproxy

netsh winhttp set proxy myproxy:80 "<local>;bar"

netsh winhttp set proxy proxy-server="http=myproxy;https=sproxy:88" bypass-

list="*.contoso.com"

Alternatively, if you have configured Internet Explorer proxy server settings correctly, you can

import settings from Internet Explorer into WinHTTP by using the following command:

netsh winhttp import proxy source=ie

To reset your proxy server settings, run the following command:

netsh winhttp reset proxy

6/6