asp.net - 如何查找 IIS 功能的名称

标签 asp.net asp.net-mvc powershell iis scripting

我想用 powershell 编写机器的设置脚本,但我不知道如何找到模块的名称。我想构建与下面的脚本相同的脚本,但对于 asp.net mvc 3、URL Rewrite 2.0、URL 授权...

我试图在谷歌搜索,网络平台安装程序......我错过了什么吗?

前任 :

Import-Module ServerManager
$features = @(
   "Web-WebServer",
   "Web-Static-Content",
   "Web-Http-Errors",
   "Web-Http-Redirect",
   "Web-Stat-Compression",
   "Web-Filtering",
   "Web-Asp-Net45",
   "Web-Net-Ext45",
   "Web-ISAPI-Ext",
   "Web-ISAPI-Filter",
   "Web-Mgmt-Console",
   "Web-Mgmt-Tools",
   "NET-Framework-45-ASPNET"
)
Add-WindowsFeature $features -Verbose
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y webdeploy

最佳答案

打开 PowerShell 提示符并使用 Get-WindowsFeature cmdlet。

enter image description here

我相信这个 PS 模块默认安装在服务器上。对于客户端计算机,例如运行 Windows 7,您可以安装远程服务器管理工​​具 - https://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=7887

关于asp.net - 如何查找 IIS 功能的名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35879081/

相关文章:

jquery - 使用 Ajax 时 reCaptcha 不会重新加载

c# - 从 Jquery 调用 WCF Restfull 服务

powershell - Powershell:生产中的调试/良好异常处理

asp.net - MVC Valums Ajax Uploader - IE 不会在 request.InputStream 中发送流

c# - Page_ClientValidate() 对象预期错误,无法找到验证器

c# - OWIN 能否替代 ASP.NET MVC 应用程序中的 DI?

asp.net - SelectedDate 不适用于日历对象

c# - 异步任务<IActionResult> 与任务<T>

powershell - 将目录中的文件列表添加到数组列表

powershell - 使用 Powershell 中的开关更改变量