我正在尝试编写一个脚本来确定是否在Windows10上安装了IIS.如果没有安装,我想让用户安装它,并让用户通过PowerShell完成安装。
我在这里看到了这个帖子:
但是在运行Get-WindowsFeature Web-Server时,我得到了not recognized as the name of a cmdlet。因此,我尝试运行Get-WindowsOptionalFeature Web-Server,但返回Get-WindowsOptionalFeature : A positional parameter cannot be found that accepts argume