Can not uninstall Hub Transport Role
Started with a Server Running Exchange 2007 and Server 2008 SP2.I installed HyperV and a Virtual server running Server 2008 R2 and Exchange 2010. At this point everything was working perfectly on both the Physical Server[Server 2008] and the Virtual Server[Server 2008 R2] I then went through the process of uninstalling Exchange Server 2007 SP2 off of the physical server the uninstall of Exhange Server 2007 SP2 went fine barring some public folder issues which I followed another thread to deprecate the public folder issue. The Virtual Server running Exchange 2010 was running great barring the Symantec Mail Gateway for Exchange. I then went through the process of installing Exchange 2010 on the Physical Server which seemed to install with out a problem barring some CAS role problems which were corrected with some changes to IIS. Now both the Virtual Server and the Physical Server were working correctly. I started verifying configuration through Exchange 2010 PowerShell and noticed that Exchange power shell was not working correctly on the physical Server. I checked the IIS configuration and noticed there was no PowerShell Virtual Directory but the OWS and autodiscovery services were installed properly functioning. At this point I was trying to figure out how to get the PowerShell Virtual Directory Installed. The more and more I read the worse and worse the problem seemed to be. Thinking that maybe IIS was having a couple of problems I then decided to uninstall Exchange 2010 from the physical server and perform a reinstall. All roles removed corectly except for the Hub transport role. I receive the following error: Hub Transport RoleFailed Error:The following error was generated when "$error.Clear(); unconfigure-WSManIISHosting;" was run: "Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.". Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied. Elapsed Time: 00:00:01In the Exchange Setup log I receive the following 2 areas with the same error mentioned:[01/30/2010 07:18:59.0699] [2] Current ScopeSet is: {Domain Read Scope: {, }, Domain Write Scope(s): {, }, Configuration Scope: {, }, Server Configuration Scope(s): {, }, , Exclusive Scope: {, }}[01/30/2010 07:18:59.0699] [2] Resolved current organization: .[01/30/2010 07:18:59.0707] [2] [WARNING] An unexpected error has occurred and a Watson dump is being generated: Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.[01/30/2010 07:18:59.0711] [2] [ERROR] Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.[01/30/2010 07:18:59.0969] [1] The following 1 error(s) occurred during task execution:[01/30/2010 07:18:59.0969] [1] 0. ErrorRecord: Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.[01/30/2010 07:18:59.0969] [1] 0. ErrorRecord: System.UnauthorizedAccessException: Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.Delete(String path) at Microsoft.Exchange.Management.Deployment.UnconfigureWSManIISHosting.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord() at System.Management.Automation.CommandProcessor.ProcessRecord()[01/30/2010 07:18:59.0970] [1] [ERROR] The following error was generated when "$error.Clear(); unconfigure-WSManIISHosting;" was run: "Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.".[01/30/2010 07:18:59.0970] [1] [ERROR] Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.[01/30/2010 07:18:59.0971] [1] [WARNING] <<< Setup failed to execute a task. Dumping all variables.... >>> Now for the life of me, I do not know what needs access to this file. I have tried a multitude of suggestion found on this site, but nothing seems help the problem. I am hoping maybe this is something that is slightly off in security. Any thoughts?
January 30th, 2010 9:02pm

Additional steps performed:Verified that the administrator is running the uninstall of the application.I can not change the security of the folder nor the files the uninstaller is trying to update.Note: I did notice that the machine used to have a IUSR_[SERVERNAME] account and an IWAM_[SERVERNAME] account, these accounts do not exist in the AD anymore I do not know if that makes much difference, but wanted to throw that out there just in case.If there is any other information, please let me know, and I will provide it.Thanks for you assistance.
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2010 5:54am

Alrighty here is what I did to fix it. 1) Browse to the directory [C:\Windows\System32\inetsrv\config\schema]. 2) Right Click on the wsmanconfig_schema.xml and select properties. 3) Click the security tab. 4) Click the Advanced button. 5) Select the Owner tab. 6) Click the Edit Button. 7) Select the Administrators group. 8) Click Apply. 9) Click OK.10) Perform the uninstall of the Transport roll, it should successfully go through the unistall process.NOTE: It seems the wsmanconfig_schema.xml gets removed during the uninstall. I do not know if this is suppose to happen, but when I reinstalled the exchange roles from scratch, the installer did not put the file back. Everything seems to be operating correctly and I do not know why the installer removed the file or even why Exchange 2010 installer even needed the file to start with.Hope this helps someone else.
February 3rd, 2010 4:16am

Yup...I was working on the same from last 2 or 3 days but can't get anything right for it. You did really a good job to get the solution of it. And you are right about the last thing also it will be quite helpful for others as well. buy dsi r4
Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2010 4:12pm

Help - I'm trying to uninstall - got this same error. Took ownership with the Administrators group, as you suggested (I'm uninstalling as an Administrator). I tried uninstalling one more time and STILL get the error!!!! So frustrating - what is wrong? Please help!
August 26th, 2010 10:29pm

This is an old topic now but in case anybody else runs into this issue I was able to uninstall the Hub Transport Role using the steps listed under the error message below: Error: The following error was generated when "$error.Clear(); unconfigure-WSManIISHosting;" was run: "Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied.". Access to the path 'C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml' is denied. Log in as Administrator Navigate to C:\Windows\system32\inetsrv\config\schema\wsmanconfig_schema.xml Right-click wsmanconfig_schema.xml, click Properties Click Advanced Under the Permissions tab, click Change Permissions Select Administrator account Click Edit Select 'Full Control' in the Permissions window Click OK on all windows Remove Hub Transport Role If you're unable to login as the Administrator then you could try the steps above with a different account, provided they already have the appropriate permissions to make the same changes. Good luck!
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2011 2:35pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics