Install Windows feature remotely

May 22, 2020 13:03


$servers = @(
  "srv1"
  "srv1"
  "srv3"
  "srv4"
  "srv5"
  "srv6"
  "srv7"
  "srv8"
)
foreach ($srv in $servers)
{
  Install-WindowsFeature `
  -ComputerName $srv `
  -Name "RSAT-AD-PowerShell" `
  -IncludeAllSubFeature `
  -Verbose
}

install remotely, powershell

Previous post Next post
Up