在VM Windows Azure上使用FastCGI安装IIS时出现错误 [英] Error when i Install IIS with FastCGI on VM Windows Azure

查看:90
本文介绍了在VM Windows Azure上使用FastCGI安装IIS时出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行此代码时:

开始/等待%windir%\ System32 \ PkgMgr.exe/iu:IIS-WebServerRole; IIS-WebServer; IIS-CommonHttpFeatures; IIS-StaticContent; IIS-DefaultDocument; IIS-DirectoryBrowing; IIS-HttpErrors; IIS-HealthAndDiagnostics; IIS-HttpLogging; IIS-LoggingLibraries; IIS-RequestMonitor; IIS-Security; IIS-RequestFiltering; IIS- HttpCompressionStatic; IIS-WebServerManagementTools; IIS-ManagementConsole; WAS-WindowsActivationService; WAS-ProcessModel; WAS-NetFxEnvironment; WAS-ConfigurationAPI; IIS-CGI  

输出错误:

Start-Process:找不到接受参数'/iu:IIS-WebServerRole'的位置参数.
在第1行:char:2
+ 开始/wait%windir%\ System32 \ PkgMgr.exe/iu:IIS-WebServerRole; IIS-W ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
    + CategoryInfo          :InvalidArgument:(:) [开始过程],ParameterBindingException
    + FullyQualifiedErrorId:PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

IIS-WebServer:术语"IIS-WebServer"未被识别为cmdlet,函数,脚本文件或可操作的名称.
程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试.
在第1行:char:65
+ ... ndir%\ System32 \ PkgMgr.exe/iu:IIS-WebServerRole; IIS-WebServer; IIS-Com ...
+                                                      ~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-WebServer:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-CommonHttpFeatures:术语"IIS-CommonHttpFeatures"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:79
+ ... xe/iu:IIS-WebServerRole; IIS-WebServer; IIS-CommonHttpFeatures; IIS-Sta ...
+                                            ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-CommonHttpFeatures:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-StaticContent:术语"IIS-StaticContent"未被识别为cmdlet,函数,脚本文件或
的名称 可操作的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后尝试
再次
在第1行:char:102
+ ... erRole; IIS-WebServer; IIS-CommonHttpFeatures; IIS-StaticContent; IIS-Def ...
+                                                  ~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-StaticContent:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-DefaultDocument:术语"IIS-DefaultDocument"未被识别为cmdlet,函数,脚本文件的名称,
或可操作的程序.检查名称的拼写,或者是否包含路径,请确认路径正确,然后
再试一次.
在第1行:char:120
+ ...; IIS-CommonHttpFeatures; IIS-StaticContent; IIS-DefaultDocument; IIS-Dir ...
+                                                ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-DefaultDocument:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-DirectoryBrowsing:术语"IIS-DirectoryBrowsing"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:140
+ ... s; IIS-StaticContent; IIS-DefaultDocument; IIS-DirectoryBrowsing; IIS-Htt ...
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-DirectoryBrowsing:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-HttpErrors:术语"IIS-HttpErrors"未被识别为cmdlet,函数,脚本文件或
的名称 可操作的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后尝试
再次.
在第1行:char:162
+ ...帐篷; IIS-DefaultDocument; IIS-目录浏览; IIS-HttpErrors; IIS-Hea ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-HttpErrors:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-HealthAndDiagnostics:术语"IIS-HealthAndDiagnostics"未被识别为cmdlet,函数的名称,
脚本文件或可操作程序.检查名称的拼写,或者是否包含路径,请验证路径是否为
更正并重试.
在第1行:char:177
+ ... IIS-目录浏览; IIS-HttpErrors; IIS-HealthAndDiagnostics; IIS-Htt ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-HealthAndDiagnostics:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-HttpLogging:术语"IIS-HttpLogging"未被识别为cmdlet,函数,脚本文件或
的名称 可操作的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后尝试
再次
在第1行:char:202
+ ... wsing; IIS-HttpErrors; IIS-HealthAndDiagnostics; IIS-HttpLogging; IIS-Log ...
+                                                    ~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-HttpLogging:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-LoggingLibraries:术语"IIS-LoggingLibraries"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:218
+ ... IIS-HealthAndDiagnostics; IIS-HttpLogging; IIS-LoggingLibraries; IIS-Req ...
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-LoggingLibraries:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-RequestMonitor:术语"IIS-RequestMonitor"未被识别为cmdlet,函数,脚本文件的名称,
或可操作的程序.检查名称的拼写,或者是否包含路径,请确认路径正确,然后
再试一次.
在第1行:char:239
+ ... stics; IIS-HttpLogging; IIS-LoggingLibraries; IIS-RequestMonitor; IIS-Sec ...
+                                                ~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-RequestMonitor:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-Security:术语"IIS-Security"未被识别为cmdlet,函数,脚本文件或可操作的名称.
程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试.
在第1行:char:258
+ ... pLogging; IIS-LoggingLibraries; IIS-RequestMonitor; IIS-Security; IIS-Req ...
+                                                      ~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-Security:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-RequestFiltering:术语"IIS-RequestFiltering"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:271
+ ...库; IIS-RequestMonitor; IIS-安全性; IIS-RequestFiltering; IIS-Htt ...
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-RequestFiltering:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-HttpCompressionStatic:术语"IIS-HttpCompressionStatic"未被识别为cmdlet,函数的名称,
脚本文件或可操作程序.检查名称的拼写,或者是否包含路径,请验证路径是否为
更正并重试.
在第1行:char:292
+ ... r; IIS安全性; IIS-RequestFiltering; IIS-HttpCompressionStatic; IIS-Web ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-HttpCompressionStatic:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-WebServerManagementTools:术语"IIS-WebServerManagementTools"未被识别为cmdlet的名称,
功能,脚本文件或可操作程序.检查名称的拼写,或者是否包含路径,请验证
路径正确,然后重试.
在第1行:char:318
+ ... tering; IIS-HttpCompressionStatic; IIS-WebServerManagementTools; IIS-Man ...
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-WebServerManagementTools:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-ManagementConsole:术语"IIS-ManagementConsole"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:347
+ ... sionStatic; IIS-WebServerManagementTools; IIS-ManagementConsole; WAS-Win ...
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-ManagementConsole:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

WAS-WindowsActivationService:术语"WAS-WindowsActivationService"未被识别为cmdlet的名称,
功能,脚本文件或可操作程序.检查名称的拼写,或者是否包含路径,请验证
路径正确,然后重试.
在第1行:char:369
+ ... ementTools; IIS-ManagementConsole; WAS-WindowsActivationService; WAS-Pro ...
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(WAS-WindowsActivationService:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

WAS-ProcessModel:术语"WAS-ProcessModel"未被识别为cmdlet,函数,脚本文件或
的名称 可操作的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后尝试
再次
在第1行:char:398
+ ... nagementConsole; WAS-WindowsActivationService; WAS-ProcessModel; WAS-Net ...
+                                                  ~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(WAS-ProcessModel:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

WAS-NetFxEnvironment:术语"WAS-NetFxEnvironment"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:415
+ ... indowsActivationService; WAS-ProcessModel; WAS-NetFxEnvironment; WAS-Con ...
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(WAS-NetFxEnvironment:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

WAS-ConfigurationAPI:术语"WAS-ConfigurationAPI"未被识别为cmdlet,函数,脚本的名称
文件或可运行的程序.检查名称的拼写,或者是否包含路径,请验证路径是否正确
然后再试一次.
在第1行:char:436
+ ... ce; WAS-ProcessModel; WAS-NetFxEnvironment; WAS-ConfigurationAPI; IIS-CGI
+                                              ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(WAS-ConfigurationAPI:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

IIS-CGI:术语"IIS-CGI"未被识别为cmdlet,函数,脚本文件或可运行程序的名称.
检查名称的拼写,或者是否包含路径,请验证路径是否正确,然后重试.
在第1行:char:457
+ ... ce; WAS-ProcessModel; WAS-NetFxEnvironment; WAS-ConfigurationAPI; IIS-CGI
+                                                                    ~~~~~~~~
    + CategoryInfo          :ObjectNotFound:(IIS-CGI:String)[],CommandNotFoundException
    + FullyQualifiedErrorId:CommandNotFoundException

我该如何解决这个问题?

解决方案

如果您检查软件包管理器扩展,您将看到以下内容

因此似乎已弃用.如果您需要安装IIS,我们提供了通过GUI或PowerShell进行安装的方法,对您来说可能会更容易.

https://docs.microsoft.com/zh-CN /azure/virtual-machines/windows/quick-create-portal

start /wait %windir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI

Output error:

Start-Process : A positional parameter cannot be found that accepts argument '/iu:IIS-WebServerRole'.
At line:1 char:2
+  start /wait %windir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-W ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

IIS-WebServer : The term 'IIS-WebServer' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:65
+ ... ndir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-Com ...
+                                                     ~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-WebServer:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-CommonHttpFeatures : The term 'IIS-CommonHttpFeatures' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:79
+ ... xe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-Sta ...
+                                            ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-CommonHttpFeatures:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-StaticContent : The term 'IIS-StaticContent' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:102
+ ... erRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-Def ...
+                                                 ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-StaticContent:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-DefaultDocument : The term 'IIS-DefaultDocument' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:120
+ ... ;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-Dir ...
+                                               ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-DefaultDocument:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-DirectoryBrowsing : The term 'IIS-DirectoryBrowsing' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:140
+ ... s;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-Htt ...
+                                             ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-DirectoryBrowsing:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-HttpErrors : The term 'IIS-HttpErrors' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:162
+ ... tent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-Hea ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-HttpErrors:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-HealthAndDiagnostics : The term 'IIS-HealthAndDiagnostics' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:177
+ ... IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-Htt ...
+                                          ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-HealthAndDiagnostics:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-HttpLogging : The term 'IIS-HttpLogging' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:202
+ ... wsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-Log ...
+                                                   ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-HttpLogging:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-LoggingLibraries : The term 'IIS-LoggingLibraries' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:218
+ ... IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-Req ...
+                                              ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-LoggingLibraries:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-RequestMonitor : The term 'IIS-RequestMonitor' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:239
+ ... stics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Sec ...
+                                                ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-RequestMonitor:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-Security : The term 'IIS-Security' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:258
+ ... pLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-Req ...
+                                                      ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-Security:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-RequestFiltering : The term 'IIS-RequestFiltering' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:271
+ ... ibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-Htt ...
+                                              ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-RequestFiltering:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-HttpCompressionStatic : The term 'IIS-HttpCompressionStatic' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:292
+ ... r;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-Web ...
+                                         ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-HttpCompressionStatic:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-WebServerManagementTools : The term 'IIS-WebServerManagementTools' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:318
+ ... tering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-Man ...
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-WebServerManagementTools:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-ManagementConsole : The term 'IIS-ManagementConsole' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:347
+ ... sionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-Win ...
+                                             ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-ManagementConsole:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

WAS-WindowsActivationService : The term 'WAS-WindowsActivationService' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:369
+ ... ementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-Pro ...
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (WAS-WindowsActivationService:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

WAS-ProcessModel : The term 'WAS-ProcessModel' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:398
+ ... nagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-Net ...
+                                                  ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (WAS-ProcessModel:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

WAS-NetFxEnvironment : The term 'WAS-NetFxEnvironment' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:415
+ ... indowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-Con ...
+                                              ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (WAS-NetFxEnvironment:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

WAS-ConfigurationAPI : The term 'WAS-ConfigurationAPI' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:436
+ ... ce;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI
+                                              ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (WAS-ConfigurationAPI:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

IIS-CGI : The term 'IIS-CGI' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:457
+ ... ce;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI
+                                                                   ~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS-CGI:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

How can i solve this problem?

解决方案

If you check the package manager extension you will see the following

So seems this is deprecated. If you need to install IIS we offer ways of doing so via the GUI or PowerShell which may be easier for you. 

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-portal

https://docs.microsoft.com/en-us/iis/install/installing-iis-7/installing-iis-7-and-above-on-windows-server-2008-or-windows-server-2008-r2

The last link is a bit old but the process of doing it via the GUI is still the same just updated a bit. 


这篇关于在VM Windows Azure上使用FastCGI安装IIS时出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆