Thursday, August 25, 2011

Changing Default Port of WSUS Server from 8530 to 80?

Problem : How to change Default Port of WSUS Server from 8530 to 80?

Environment : Windows Server 2008 R2 with WSUS 3.0 SP2

Solution :

1) Go to Start -> RUN -> inetmgr

2) Go to "WSUS Administration" Site

3) Under "Edit Site", click on "Bindings"

3) Change the port from 8530 to 80, and click OK

4) Open Registry Editor with Start -> RUN -> regedit

5) Goto HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services\Server\Setup

6) Change "Port Number" Value to "80"

7) Goto Command prompt and type following command
cscript "WSUS Installation Location\Update Services\setup\installselfupdateonport80.vbs
e.g.
"cscript "c:\Program Files\Update Services\setup\installselfupdateonport80.vbs"
C:\Windows\system32>cscript "c:\Program Files\Update Services\setup\installselfupdateonport80.vbs"

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

SetupSelfupdateTree: Finding the index of the Web site on which WUS is installed...
SetupSelfupdateTree: Leaving GetWUSWebSiteIndex.
SetupSelfupdateTree: Finding the index of the web site bound to port 80...
SetupSelfupdateTree: iWebSiteIndex: 2 ServerBindings: :8080:index: 0
SetupSelfupdateTree: iWebSiteIndex: 179262852 ServerBindings: :80:index: 0
SetupSelfupdateTree: Found the index of site on Port 80: 179262852
SetupSelfupdateTree: rootMetabasePath: IIS://LocalHost/W3SVC/179262852/ROOT
SetupSelfupdateTree: szPort80RootPath=C:\Program Files\Update Services\WebServices\Root\
SetupSelfupdateTree: iWusWebSiteIndex=179262852 iPort80WebSiteIndex=179262852
SetupSelfupdateTree: Warning: This is standalone WUS install. No need to do configuration for SxS install.
Success: InstallSelfupdateOnPort80 succeeded.


8) You Have Done It!!!
   :)

8 comments:

  1. You're so interesting! I do not believe I've truly read something like that before.
    So great to discover someone with a few unique thoughts on this issue.

    Seriously.. many thanks for starting this up. This website is one thing
    that is needed on the web, someone with a little originality!


    Feel free to visit my blog - longtailpro (www.squidoo.com)

    ReplyDelete
  2. Thank you. Keep visiting the page for new things.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Am facing the same issue with my server 2012. Have just installed and client computers have not reported to the WSUS. How have tried to use the method elaborated above but it doesn't seem to work for me. This installselfupdateonport80.vbs is not recognized.
    If anybody can assist please.

    ReplyDelete
  5. I have followed same but no luck, I am getting error like "Can't connect to server "xxx servername" The server may be using another port or different secure sockets layer setting.

    ReplyDelete
  6. Can you please help me out on this issue: I have followed same but no luck, I am getting error like "Can't connect to server "xxx server name" The server may be using another port or different secure sockets layer setting.

    ReplyDelete
  7. Can some one help me out on above issue.. Thanks for your help in advance.

    ReplyDelete

Solved : The user profile failed to attach. The process cannot access the file becase it is being used by another process

Issue :  The user profile failed to attach. Please contact Support. Status : 0x0000000B, Message: Cannot open virtual disk Error Code: 0x000...