Uninstall Client Access Role - get-WebServicesVirtualDirectory fails
Hi,I'm uninstalling the Client Access Role on my Windows 2008 Server. I had some troube wtih the installation and it never really ran. So I'm trying to get rid of Exchange to make a fresh install.The log says something like this:
Code Snippet
[19.07.2008 12:59:36] [1] Processing component 'Client Access Services Configuration' (Configuring virtual directories and web services.).[19.07.2008 12:59:36] [1] Executing 'get-WebServicesVirtualDirectory -Server $RoleFqdnOrName -DomainController $RoleDomainController | remove-WebServicesVirtualDirectory -DomainController $RoleDomainController;', handleError = False[19.07.2008 12:59:36] [2] Launching sub-task '$error.Clear(); get-WebServicesVirtualDirectory -Server $RoleFqdnOrName -DomainController $RoleDomainController | remove-WebServicesVirtualDirectory -DomainController $RoleDomainController;'.[19.07.2008 12:59:36] [2] Beginning processing.[19.07.2008 12:59:36] [2] Beginning processing.[19.07.2008 12:59:36] [2] Administrator Active Directory session settings are: View Entire Forest: 'True', Configuration Domain Controller: 'WINDOWS2008.campus.local', Preferred Global Catalog: 'WINDOWS2008.campus.local', Preferred Domain Controllers: '{ WINDOWS2008.campus.local }'[19.07.2008 12:59:36] [2] Searching objects "WINDOWS2008.campus.local" of type "Server" under the root "$null".[19.07.2008 12:59:36] [2] Previous operation run on domain controller 'WINDOWS2008.campus.local'.[19.07.2008 12:59:36] [2] [ERROR] Exchange server "WINDOWS2008.campus.local" was not found. Please make sure you have typed it correctly.[19.07.2008 12:59:36] [2] Ending processing.[19.07.2008 12:59:36] [2] Ending processing.[19.07.2008 12:59:36] [1] The following 1 error(s) occurred during task execution:[19.07.2008 12:59:36] [1] 0. ErrorRecord: Exchange server "WINDOWS2008.campus.local" was not found. Please make sure you have typed it correctly.[19.07.2008 12:59:36] [1] 0. ErrorRecord: Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException: Exchange server "WINDOWS2008.campus.local" was not found. Please make sure you have typed it correctly. at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1.GetDataObject[TObject](IIdentityParameter id, IConfigDataProvider session, ObjectId rootID, Nullable`1 notFoundError, LocalizedString multipleFoundError) at Microsoft.Exchange.Management.SystemConfigurationTasks.GetVirtualDirectory`1.InternalValidate() at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()[19.07.2008 12:59:36] [1] [ERROR] Exchange server "WINDOWS2008.campus.local" was not found. Please make sure you have typed it correctly.[19.07.2008 12:59:36] [1] Setup is halting task execution because of one or more errors in a critical task.[19.07.2008 12:59:36] [1] Finished executing component tasks.[19.07.2008 12:59:36] [1] Ending processing.[19.07.2008 13:01:11] [0] End of SetupSo, it seems that get-WebServicesVirtualDirectory is failing.Any help would be appreciated.cristian74
July 19th, 2008 2:48pm
The error indicates that exchange server "WINDOWS2008.campus.local" was not found.
You should use command setup.com /mode:RecoverServer /roles:CA to reinstall CAS Server Role.
By the way, since CAS Server high depends on IIS(Internet information Service), please ensure all required IIS features are installed before rebuilding the CAS role. You may use servermanagercmd to check all web server features installed. I suggest you uninstall and reinstall IIS 7 to ensure it works smoothly.
-Jason
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2008 5:56am