我想用 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。
我相信这个 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/