Uninstall RSAT - Remote Server Administration Tools
I have an install and uninstall process for RSAT - platform is W7 64-bit. The install process works fine - the uninstall process will not remove Remote Server Administration Tools - Here is the process C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-CA C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-NIS C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-LDS C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-DHCP C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-DNS C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Dfs C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Fsrm C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-StorageMgmt C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-HyperV C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-RDS C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-BitLocker C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-Clustering C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-GP C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-LoadBalancing C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-SmtpServer C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-StorageExplorer C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-StorageManager C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Features-Wsrm C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-ServerManager You can't use WUSA to uninstall so I'm using PKGMGR with this syntax start /w pkgmgr /uu:Windows6.1-KB958830-x64.msu~31bf3856ad364e35~amd64~~6.1.7600.16385 /l:c:\install\RSAT\pkgmgr.log I've also tried this with /ui: The log file produces the following errors 2010-12-20 10:49:06, Info DISM DISM Provider Store: PID=1864 Provider has previously been initialized. Returning the existing instance. - CDISMProviderStore::Internal_GetProvider 2010-12-20 10:49:06, Info DISM DISM Package Manager: PID=1864 Processing the top level command token(disable-feature). - CPackageManagerCLIHandler::Private_ValidateCmdLine 2010-12-20 10:49:06, Info DISM DISM Package Manager: PID=1864 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine 2010-12-20 10:49:06, Info DISM DISM Package Manager: PID=1864 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine 2010-12-20 10:49:06, Info DISM DISM Package Manager: PID=1864 Encountered the option "featurename" with value "Windows6.1-KB958830-x64.msu~31bf3856ad364e35~amd64~~6.1.7600.16385" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine 2010-12-20 10:49:06, Info DISM DISM Package Manager: PID=1864 Encountered an unknown option "featurename" with value "Windows6.1-KB958830-x64.msu~31bf3856ad364e35~amd64~~6.1.7600.16385" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Failed to get the Update through CBS. - CDISMPackage::Internal_OpenFeature(hr:0x800f080c) 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Failed to get the underlying CBS Feature - CDISMPackage::OpenFeature(hr:0x800f080c) 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Feature name Windows6.1-KB958830-x64.msu~31bf3856ad364e35~amd64~~6.1.7600.16385 is unknown. - CPackageManagerCLIHandler::Private_GetFeaturesFromCommandLine(hr:0x800f080c) 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Unknown features were specified on the command-line. - CPackageManagerCLIHandler::Private_GetFeaturesFromCommandLine(hr:0x800f080c) 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Failed to get the Feature List from the command line. - CPackageManagerCLIHandler::Private_ProcessFeatureChange(hr:0x800f080c) 2010-12-20 10:49:07, Error DISM DISM Package Manager: PID=1864 Failed while processing command disable-feature. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f080c) 2010-12-20 10:49:07, Info DISM DISM Package Manager: PID=1864 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine 2010-12-20 10:49:07, Info DISM DISM Image Session: PID=1864 Disconnecting the provider store - CDISMImageSession::Final_OnDisconnect 2010-12-20 10:49:07, Info DISM DISM Provider Store: PID=1864 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider As you can see it acts like this isn't installed. When I do the expand on the package here are the results - <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity buildType="release" language="neutral" name="Microsoft-Windows-RemoteServerAdministrationTools-Package-TopLevel" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" version="6.1.7600.16385"></assemblyIdentity> <source location="%configsetroot%\Windows6.1-KB958830-x64.CAB" /> </package> </servicing> </unattend> I tried the DISM command to remove and that doesn't work. Please advise and thanks in advance. Bob
December 20th, 2010 10:17pm

You can use WUSA in Windows 7 to remove updates: wusa.exe /uninstall /kb:958830 Have you tried this? André"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
December 21st, 2010 12:41am

Andre, Thanks for getting back to me. Well this is a deployment process - non-Mirosoft product - everything works fine when I execute the batch files from an Administrator Elevated Command Prompt - this is what I get from within a batch file and this is taken from the RSAT documentation along with the dism.log - I've tried it both ways - when running WUSA do you have to disble the features first? C:\install\RSAT>dism /online /Remove-Package /PackageName:RemoteServerAdministrationTools Above is the command line I'm using to remove. I want to know why am I getting this error when this is the exact syntax from the help within RSAT Results - Deployment Image Servicing and Management tool Version: 6.1.7600.16385 Image Version: 6.1.7600.16385 An error occurred trying to open - RemoteServerAdministrationTools Error: 0x8007 0057 Error: 87 An error occurred while processing the command. Ensure that the command-line arguments are valid. For more information, review t he log file. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log C:\install\RSAT>cd\windows\logs\DISM C:\Windows\Logs\DISM>notepad dism.log C:\Windows\Logs\DISM> DISM.LOG - starts here ---------------------------------->>>>>>>>>>>>>>>>>>>>>>>>>> I'm only presenting the error section - not the whole log. 2011-01-13 13:56:21, Error DISM DISM Package Manager: PID=4052 Failed to load identity from package name: RemoteServerAdministrationTools. - CDISMPackageManager::Internal_CreatePackageByName(hr:0x80070057) 2011-01-13 13:56:21, Error DISM DISM Package Manager: PID=4052 Failed to get the underlying cbs package. - CDISMPackageManager::OpenPackageByName(hr:0x80070057) 2011-01-13 13:56:21, Error DISM DISM Package Manager: PID=4052 Failed opening package with the name "RemoteServerAdministrationTools" - CPackageManagerCLIHandler::Private_GetPackageNameFromCommandLine(hr:0x80070057) 2011-01-13 13:56:21, Error DISM DISM Package Manager: PID=4052 Failed while processing command remove-package. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x80070057)
January 13th, 2011 10:35pm

I've tried it both ways - when running WUSA do you have to disble the features first? I don't know. Have you tried it? I only posted the correct syntax."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
January 14th, 2011 12:03am

I have this working although there is 1 remaining issue which is RSAT doesn't or is not displayed for all users unless the user turns it on themselves.&nbsp; Comparing this to any Office product all users would receive the package and when launched the system would create the initial office profile. RSAT is a KB and not an installed application. Maybe there is different handling between a KB and an actual application. The user would have to manually turn it on instead of it being advertised (as All Users). There are registry entries to turn it on and off. There should be a way to install and display for all users. Maybe you or someone knows how to install the .msu for all users. What software do you use to modify a .msu if any even exists? I haven't found one yet. Install.bat If exist C:\Install\RSAT C:\Windows\SysNative\wusa C:\Install\RSAT\amd64fre_GRMRSATX_MSU.msu /quiet /NoRestart C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-CA C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-NIS C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-LDS C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-DHCP C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-DNS C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Dfs C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-Fsrm C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-FileServices-StorageMgmt C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-HyperV C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Roles-RDS C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-BitLocker C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-Clustering C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-GP C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-LoadBalancing C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-WebServerRole C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-WebServerManagementTools C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-IIS6ManagementCompatibility C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-Metabase C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-LegacySnapIn C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-WebServerManagementTools C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:IIS-WebServerRole C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-SmtpServer C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-StorageExplorer C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-StorageManager C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-Features-Wsrm C:\Windows\SysNative\dism.exe /online /quiet /enable-feature /featurename:RemoteServerAdministrationTools-ServerManager Uninstall.bat C:\Windows\SysNative\wusa /uninstall /kb:958830 /quiet /NoRestart /log C:\Windows\SysNative\dism.exe /online /quiet /NoRestart /disable-feature /featurename:IIS-WebServerRole C:\Windows\SysNative\dism.exe /online /quiet /NoRestart /disable-feature /featurename:IIS-WebServerManagementTools C:\Windows\SysNative\dism.exe /online /quiet /NoRestart /disable-feature /featurename:IIS-IIS6ManagementCompatibility C:\Windows\SysNative\dism.exe /online /quiet /NoRestart /disable-feature /featurename:IIS-Metabase C:\Windows\SysNative\dism.exe /online /quiet /NoRestart /disable-feature /featurename:IIS-LegacySnapIn To run manually change SysNative to System 32 - SysNative is a variable which points to a virtual folder on a 64-bit W7 system and is only used when packaging the software. ITBOB
February 9th, 2011 3:21pm

can you please edit the post again? The text is mixed with JavaScript code"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2011 5:20pm

I believe it is html and not Java - not sure why this happened except I copied and pasted from Notepad to the site. ITBOB
February 9th, 2011 6:29pm

You can't edit the MSU/CAB files. Windows detects it and don't allow you to use the modified files. "A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 9th, 2011 6:49pm

Andrew, I'm not sure what your saying when you sys You can edit the MSU/CAB files. Are you saying Windows 7 would detect it and then won't let you install? Would have have to extract them - make your changes then make them an MSU/CAB again? What tool would you use? Thanks in advance. ITBOB
February 9th, 2011 7:52pm

I mean can't . The 't was removed (my keyboard, forum?)."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2011 2:51am

I am writing a powershell script to automate RSAT uninstall / install / configuration: This may not be ideal, and is not exactly silent - but launching it as a new process works: Function Uninstall { write "`n`n@@ Called Uninstall" ## Microsoft-Windows-RemoteServerAdministrationTools-Package-TopLevel~31bf3856ad364e35~x86~~6.1.7600.16385 $out = dism /online /get-packages | where-object { $_ -imatch "RemoteServerAdmin" } foreach ($item in $out) { if ($item) { write "Uninstalling : $item" $options = $item.toString().Replace("Package Identity : ","/online /remove-package /PackageName:") if (!$debug -and $item) { $process = (Start-Process -FilePath "dism.exe" -ArgumentList $options -Wait -Passthru) if ($process.ExitCode) { write $process.ExitCode } ##; exit $process.ExitCode } } else { write $options } } } } Just calling dism.exe with the EXACT SAME string of parameters that worked in a cmd shell did not work in powershell, error 87.
February 10th, 2011 4:55am

nice script"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2011 6:25pm

Hi Andre, I was searching the web how to uninstall RSAT on my win 7 workstation and your suggestion works fine. wusa.exe /uninstall /kb:958830 Thanks.Every second counts..make use of it.
September 6th, 2011 4:26am

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

Other recent topics Other recent topics