Skip to main content

INSTALL DOT NET FRAMEWORK ON MULTIPLE SERVERS USING POWERSHELL SCRIPT

Installing .Net 4.5.2

$servers = Array of Servers

foreach($server in $servers) {
Write-Host “Copying the installation file”
copy-item  –path “-SOURCE” –destination “
destination
Write-Host “Installing .NET 4.5.2”
Invoke-Command –Computername $server –Credentials xxxx {
C:\Temp\NET 4.5.2 /passive /norestart

}

Comments

Post a Comment