1 2 Previous Next 17 Replies Latest reply on Jun 7, 2017 3:29 AM by Jim Wilson

    Remove IIS windows component?

      What is the best way to remove IIS through Config Mgr? ( falls under windows components ).

        • 1. Re: Remove IIS windows component?

          I found it.....

           

           

          Removal: In order to uninstall the IIS 6.0 installation, create an answer file (IIS60Remove.txt in this example):

           

          aspnet = off

          complusnetwork = off

          dtcnetwork = off

          bitsserverextensionsisapi = off

          bitsserverextensionsmanager = off

          iis_common = off

          iis_ftp = off

          fp_extensions = off

          iis_inetmgr = off

          iis_nntp = off

          iis_smtp = off

          iis_asp = off

          iis_internetdataconnector = off

          sakit_web = off

          tswebclient = off

          iis_serversideincludes = off

          iis_webdav = off

          iis_www = off

          appsrv_console = off

           

           

          Run the command;

          Sysocmgr.exe /i:sysoc.inf /u:IIS60Remove.txt /r /q

           

           

          -sml

          • 2. Re: Remove IIS windows component?

            You should add this to the Knowledgebase.

            • 3. Re: Remove IIS windows component?

              My thoughts exactly... package this up and or give it to Maria to put in the KB.

              • 4. Re: Remove IIS windows component?
                Bill Robinson

                Did this ever get packaged? I created a bl package for IIS 6.0 that will install a custom IIS after the os install.

                • 5. Re: Remove IIS windows component?

                  KB article was created in June:

                   

                  https://www.bladelogic.com/community/entry!default.jspa?categoryID=65&externalID=399&fromSearchPage=true

                   

                  Feel free to make edits to the article if you have additional information to provide.

                  • 6. Re: Remove IIS windows component?

                    The attached BLPackages are to install IIS 5.0 and IIS 6.0. This process can be re-used to install/uninstall any windows component. Reference the "%windir%\inf\sysoc.inf" config file to see list of available components, then reference each components .inf config file in the same folder to see specific options.

                     

                    To uninstall a component, it's just a matter of providing another different user defined answer file where he particular component is flagged "off" or disabled.

                     

                    Please reference sysocmgr usage here:

                     

                    http://support.microsoft.com/?kbid=222444

                     

                    The two registry keys are necessary for components (such as IIS) which require the original windows install files (i386 folder). These keys define the default location that sysocmgr will go to for the install files. Not all windows components require this.

                    • 7. Re: Remove IIS windows component?
                      Chris Haars

                      I know this is really old, but I have a need to run sysocmgr.exe to install SNMP on some Server 2003 machines. Running sysocmgr.exe thru BSA doesn't seem to work in 8.8...perhaps it has to run in a certain context (SYSTEM?)? I can't import the attached zips in this thread to see how it is being done. I've also tried doing it thru schtasks and am providing the source installation files (i386 and amd64). I am also changing the sourcepath and servicepacksourcepath registry keys temporarily during the install. If I run the command locally, it works fine.

                       

                      %windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:c:\temp\snmp\snmp.inf /r /x /q

                       

                      Any way you could show me how it was done in the attached zip files?

                      • 8. Re: Remove IIS windows component?
                        Bill Robinson

                        Running sysocmgr.exe thru BSA doesn't seem to work in 8.8...

                        how doesn't it work?  errors ? what command are you running in your blpackage or depot software object ?

                        • 9. Re: Remove IIS windows component?
                          Chris Haars

                          There are no errors. The job completes successfully, and shows me a green check. The SNMP components are simply not installed. Rscd.log has no errors. The transaction bldeploy log shows no errors, and a zero exit code.

                           

                          The command was included in my post:

                          %windir%\system32\sysocmgr.exe /i:%windir%\inf\sysoc.inf /u:c:\temp\snmp\snmp.inf /r /x /q

                           

                          Before the command, I backup the registry keys, change the source file paths in the registry. After, I restore the registry keys. All of these work fine.

                           

                          In my post, I also asked if could someone could open Igor's attached files in an older version, and show me the commands that are run in the package? I can't import them into 8.8.

                          • 10. Re: Remove IIS windows component?
                            Bill Robinson

                            it's xml - he pushes two registry keys:

                               <REGVALUE Action="Modify" ItemId="1" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\ServicePackSourcePath">

                                  <Name>ServicePackSourcePath</Name>

                                  <Type>REG_SZ</Type>

                                  <Data>\\pca02app910\shared\os_i386\win2k3_sp1</Data>

                               </REGVALUE>

                               <REGVALUE Action="Modify" ItemId="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath">

                                  <Name>SourcePath</Name>

                                  <Type>REG_SZ</Type>

                                  <Data>\\pca02app910\shared\os_i386\win2k3_sp1</Data>

                               </REGVALUE>

                             

                            and then the command:

                             

                            <Cmd>sysocmgr /q /r /i:%windir%\\inf\\sysoc.inf /u:c:\\tmp\\ocmiis6.txt</Cmd>

                             

                            his text file has:

                            [Components]

                            iis_common=on

                            iis_www=on

                            iis_inetmgr=on

                            • 11. Re: Remove IIS windows component?
                              Sean Berry

                              Try dropping the /q (quiet?)

                              • 12. Re: Remove IIS windows component?
                                Chris Haars

                                Thanks for the idea, but it still doesn't work. The only difference I can

                                see is in the log that I started generating from the sysocmgr.exe command.

                                I don't understand the output, and google hasn't helped.

                                 

                                When I run it thru BSA (succeeds but does nothing):

                                401.339.0: 0x80070002 (WIN32: 2)

                                401.432.0: 0x80070002 (WIN32: 2)

                                401.1246.0: 0x80070002 (WIN32: 2): C:\WINDOWS\CAPolicy.inf

                                104.685.0: 0xe0000102 (INF: -536870654): Components

                                110.379.0: 0xe0000102 (INF: -536870654)

                                104.1282.0: 0xe0000102 (INF: -536870654)

                                104.2445.0: 0xe0000102 (INF: -536870654)

                                104.2436.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                 

                                When I run it locally (works):

                                401.339.0: 0x80070002 (WIN32: 2)

                                401.432.0: 0x80070002 (WIN32: 2)

                                401.1246.0: 0x80070002 (WIN32: 2): C:\WINDOWS\CAPolicy.inf

                                104.685.0: 0xe0000102 (INF: -536870654): Components

                                110.379.0: 0xe0000102 (INF: -536870654)

                                104.1282.0: 0xe0000102 (INF: -536870654)

                                104.2445.0: 0xe0000102 (INF: -536870654)

                                104.2436.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2482.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                104.2587.0: 0xe0000102 (INF: -536870654)

                                104.2502.0: 0xe0000102 (INF: -536870654)

                                104.2502.0: 0xe0000102 (INF: -536870654)

                                104.2502.0: 0xe0000102 (INF: -536870654)

                                 

                                 

                                 

                                 

                                Chris Haars

                                Principal Service Delivery Engineer

                                Hosting Operations

                                 

                                eMail: chris.haars@pearson.com

                                Mobile: +00 (1) 319-610-6010

                                 

                                Pearson

                                Always Learning

                                Learn more at www.pearson.com

                                • 13. Re: Remove IIS windows component?
                                  Bill Robinson

                                  what's in here:

                                  c:\temp\snmp\snmp.inf ?

                                  • 14. Re: Remove IIS windows component?
                                    Chris Haars

                                    C:\temp>type c:\temp\snmp\snmp.inf

                                     

                                    SNMP=1

                                    wbemsnmp=1

                                     

                                    Please note that everything works if I run the commands locally.

                                     

                                    Chris Haars

                                    Principal Service Delivery Engineer

                                    Hosting Operations

                                     

                                    eMail: chris.haars@pearson.com

                                    Mobile: +00 (1) 319-610-6010

                                     

                                    Pearson

                                    Always Learning

                                    Learn more at www.pearson.com

                                     

                                    On Mon, Jun 5, 2017 at 3:46 PM, Bill Robinson <forums@developer.bmc.com>

                                    1 2 Previous Next