WebAdministration powershell module not found on windows server data center

前端 未结 3 1418
轮回少年
轮回少年 2021-01-04 10:44

In Windows Server 2008 Datacenter, I could not find the PowerShell webadministration module. I tried Get-PSSnapin and Get-Module -ListAvailab

3条回答
  •  鱼传尺愫
    2021-01-04 10:56

    For automation with Windows Server 2008, We use WebPiCmd to push IISPowershellSnapin, then run Add-PSSnapin WebAdministration to support IIS powershell integration. The IIS Administration Module is already present in Windows Server 2012 by default.

    Powershell - Support IIS Administration for Server 2008

    .\WebpiCmd.exe /Install /Products:IISPowershellSnapin /AcceptEula /ForceReboot
    Add-PSSnapin WebAdministration
    Get-Website
    

提交回复
热议问题