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!!!
   :)

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...