« Previous Next »

Thread: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

Last post 07-08-2009 5:05 PM by pam2009. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 05-21-2009, 4:01 PM

    • naimbeg
    • Top 500 Contributor
    • Joined on 05-10-2006, 4:53 PM
    • Posts 14

    Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    I am installing IIS 7.0 on Server 2008 RC2 64bit that is running a VMware instance using pkgmgr.exe
     Right away I am getting a "Operation failed with 0x80070057 The parameter is incorrect"
    Error code is 87

    I changed the script to match the build version and the processor type that I get when I do the "set" command.

    Command to install: start /w pkgmgr /n unattend.xml

     Here is the text in the unattend.xml that is pretty much copied from

    <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend"
        xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <servicing>
       <!-- Install a selectable update in a package that is in the Windows Foundation namespace -->
       <package action="configure">
          <assemblyIdentity
             name="Microsoft-Windows-Foundation-Package"
             version="6.1.7100.0"
             language="neutral"
             processorArchitecture="ia64"
             publicKeyToken="31bf3856ad364e35"
             versionScope="nonSxS"
          />
        <selection name="IIS-WebServerRole" state="true"/>
        <selection name="IIS-WebServer" state="true"/>
        <selection name="IIS-CommonHttpFeatures" state="true"/>
        <selection name="IIS-StaticContent" state="true"/>
        <selection name="IIS-DefaultDocument" state="true"/>
        <selection name="IIS-DirectoryBrowsing" state="true"/>
        <selection name="IIS-HttpErrors" state="true"/>
        <selection name="IIS-HttpRedirect" state="true"/>
        <selection name="IIS-ApplicationDevelopment" state="true"/>
        <selection name="IIS-ASPNET" state="true"/>
        <selection name="IIS-NetFxExtensibility" state="true"/>
        <selection name="IIS-ASP" state="true"/>
        <selection name="IIS-CGI" state="true"/>
        <selection name="IIS-ISAPIExtensions" state="true"/>
        <selection name="IIS-ISAPIFilter" state="true"/>
        <selection name="IIS-ServerSideIncludes" state="true"/>
        <selection name="IIS-HealthAndDiagnostics" state="true"/>
        <selection name="IIS-HttpLogging" state="true"/>
        <selection name="IIS-LoggingLibraries" state="true"/>
        <selection name="IIS-RequestMonitor" state="true"/>
        <selection name="IIS-HttpTracing" state="true"/>
        <selection name="IIS-CustomLogging" state="true"/>
        <selection name="IIS-ODBCLogging" state="true"/>
        <selection name="IIS-Security" state="true"/>
        <selection name="IIS-BasicAuthentication" state="true"/>
        <selection name="IIS-WindowsAuthentication" state="true"/>
        <selection name="IIS-DigestAuthentication" state="true"/>
        <selection name="IIS-ClientCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-IISCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-URLAuthorization" state="true"/>
        <selection name="IIS-RequestFiltering" state="true"/>
        <selection name="IIS-IPSecurity" state="true"/>
        <selection name="IIS-Performance" state="true"/>
        <selection name="IIS-HttpCompressionStatic" state="true"/>
        <selection name="IIS-HttpCompressionDynamic" state="true"/>
        <selection name="IIS-WebServerManagementTools" state="true"/>
        <selection name="IIS-ManagementConsole" state="true"/>
        <selection name="IIS-ManagementScriptingTools" state="true"/>
        <selection name="IIS-ManagementService" state="true"/>
        <selection name="IIS-IIS6ManagementCompatibility" state="true"/>
        <selection name="IIS-Metabase" state="true"/>
        <selection name="IIS-WMICompatibility" state="true"/>
        <selection name="IIS-LegacyScripts" state="true"/>
        <selection name="IIS-LegacySnapIn" state="true"/>
        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" state="true"/>
        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>
      </package>
    </servicing>
    </unattend>

    One thing I did notice is that with the set command, I am getting this:
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 8, GenuineIntel

    Where the problem?
    Thanks

  • 05-21-2009, 5:37 PM In reply to

    • HSeiler
    • Top 75 Contributor
    • Joined on 06-10-2002, 4:41 PM
    • Posts 74

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

     in Windows 7 the FTP updates:

        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" state="true"/>

    has been replaced by the FTP7 updates:

        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPSvc" state="true"/>
        <selection name="IIS-IIS-FTPExtensibility" state="true"/>

    Also you no longer need the WAS stuff:

        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>

     as these are being pulled in automagically.

     

    Henry Seiler
    IIS Deployment
  • 05-22-2009, 2:38 PM In reply to

    • naimbeg
    • Top 500 Contributor
    • Joined on 05-10-2006, 4:53 PM
    • Posts 14

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Made the change and still does not work...
    You mentioned Windows 7, I am using Server 2008 RC2, I am assuming the change is for both as they both share the new kernel.

    FYI, the unattend.xml script is on the E:\Build and the command promt I am using (running as Local Admin) is at E:\Build

  • 06-05-2009, 10:58 AM In reply to

    • naimbeg
    • Top 500 Contributor
    • Joined on 05-10-2006, 4:53 PM
    • Posts 14

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    Figured it out...
    in "start /w pkgmgr /n unattend.xml" I was missing the : in /n:unattend.xml...

    Couldn't see it for the life of me.

  • 06-12-2009, 2:55 PM In reply to

    • pvo01
    • Not Ranked
    • Joined on 06-12-2009, 3:22 PM
    • Posts 9

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    did it work for you? how did you do it.

     i am having the exact scrip as your, i got it from http://learn.iis.net/page.aspx/133/using-unattend-setup-to-install-iis-7/

     i changed the product version : 6.0.600.16386

     i have the unattend.xml on my F:\

    and in the cmd,

    i have F:\>start /w pkgmgr /n:unattend.xml

     but nothing hapeen.

    and echo %errorlevel% gives me -2146498555

     

    any idea?

    Thanks 

     

  • 07-06-2009, 3:34 PM In reply to

    • naimbeg
    • Top 500 Contributor
    • Joined on 05-10-2006, 4:53 PM
    • Posts 14

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    It appears that you have a version mis-match... is your OS 32 or 64 bit based?
    Look at this thread... http://forums.iis.net/p/1148892/1867429.aspx

  • 07-08-2009, 5:05 PM In reply to

    • pam2009
    • Not Ranked
    • Joined on 07-08-2009, 4:53 PM
    • Posts 1

    Re: Problem installing IIS 7.0 with a unattend script and pkgmgr.exe

    ' i changed the product version : 6.0.600.16386'

    ' and echo %errorlevel% gives me -2146498555'

     

    I had the same error.

     

    The version line on mine (Vista Ultimate) to work correctly reads

    version="6.0.6000.16386"

     

    Another error I saw was  -2146498547

    This error was caused by a typo in the opening assemblyIdentity line

    It read <ssemblyIdentity

    and should read <assemblyIdentity

     

    Still am unable to get full package to install correctly from scratch.  Am doing selective installs till I get an operational IIS7 basic package.

     

    hth

     

Page 1 of 1 (7 items)
Microsoft Communities