Instalando o IIS 7.5 através do script pkgmgr no Windows 2008 R2

3

Ao tentar instalar o IIS no Windows Server 2008 R2 Usando o seguinte script, conforme descrito em este artigo de technet Recebo erros sobre "encountered unknown option "featurename" with the value .... " para todos os recursos.

Script:

CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;WAS-WindowsActivationService;WAS-ProcessModel;IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;MicrosoftWindowsPowerShell

Log:

2010-09-07 14:20:04, Info                  DISM   DISM.EXE: Host machine information: OS Version=6.1.7600, Running architecture=amd64, Number of processors=8
2010-09-07 14:20:04, Info                  DISM   DISM.EXE: Executing command line: "C:\Windows\system32\dism.exe" /online /norestart /logpath:"C:\Users\administrator\Desktop\log.etw.txt" /enable-feature /ignorecheck /featurename:"IIS-WebServerRole" /featurename:"IIS-WebServer" /featurename:"IIS-CommonHttpFeatures" /featurename:"IIS-StaticContent" /featurename:"IIS-DefaultDocument" /featurename:"IIS-DirectoryBrowsing" /featurename:"IIS-HttpErrors" /featurename:"IIS-HttpRedirect" /featurename:"IIS-ApplicationDevelopment" /featurename:"IIS-ASP" /featurename:"IIS-CGI" /featurename:"IIS-ISAPIExtensions" /featurename:"IIS-ISAPIFilter" /featurename:"IIS-ServerSideIncludes" /featurename:"IIS-HealthAndDiagnostics" /featurename:"IIS-HttpLogging" /featurename:"IIS-LoggingLibraries" /featurename:"IIS-RequestMonitor" /featurename:"IIS-HttpTracing" /featurename:"IIS-CustomLogging" /featurename:"IIS-ODBCLogging" /featurename:"IIS-Security" /featurename:"IIS-BasicAuthentication" /featurename:"IIS-WindowsAuthentication" /featurename:"IIS-DigestAuthentication" /featurename:"IIS-ClientCertificateMappingAuthentication" /featurename:"IIS-IISCertificateMappingAuthentication" /featurename:"IIS-URLAuthorization" /featurename:"IIS-RequestFiltering" /featurename:"IIS-IPSecurity" /featurename:"IIS-Performance" /featurename:"IIS-HttpCompressionStatic" /featurename:"IIS-HttpCompressionDynamic" /featurename:"IIS-WebServerManagementTools" /featurename:"IIS-ManagementScriptingTools" /featurename:"IIS-IIS6ManagementCompatibility" /featurename:"IIS-Metabase" /featurename:"IIS-WMICompatibility" /featurename:"IIS-LegacyScripts" /featurename:"WAS-WindowsActivationService" /featurename:"WAS-ProcessModel" /featurename:"IIS-FTPServer" /featurename:"IIS-FTPSvc" /featurename:"IIS-FTPExtensibility" /featurename:"IIS-WebDAV" /featurename:"IIS-ASPNET" /featurename:"IIS-NetFxExtensibility" /featurename:"WAS-NetFxEnvironment" /featurename:"WAS-ConfigurationAPI" /featurename:"IIS-ManagementService" /featurename:"MicrosoftWindowsPowerShell"
......
2010-09-07 14:20:05, Info                  DISM   DISM Package Manager: PID=1576 Encountered the option "featurename" with value "IIS-WebServerRole" - CPackageManagerCLIHandler::Private_GetPackagesFromCommandLine

Alguém sabe o que pode estar acontecendo aqui?

    
por Kyle Brandt 07.09.2010 / 16:31

1 resposta

2

O seguinte parece ter funcionado:

CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;WAS-WindowsActivationService;WAS-ProcessModel;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;NetFx3

Same But in nas tags de código:

CMD /C START /w PKGMGR.EXE /l:log.etw /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASP;IIS-CGI;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-ServerSideIncludes;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ODBCLogging;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-ClientCertificateMappingAuthentication;IIS-IISCertificateMappingAuthentication;IIS-URLAuthorization;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementScriptingTools;WAS-WindowsActivationService;WAS-ProcessModel;IIS-WebDAV;IIS-ASPNET;IIS-NetFxExtensibility;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-ManagementService;NetFx3

O acima também parece funcionar bem como um script de inicialização por meio da política de grupo.

    
por 07.09.2010 / 17:51