Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Silent Install of .net 4.5 in powershell issue

$
0
0

Hi All,

I am trying  to install dot netframework 4.5.2 on remote machine also getting 16389 error

$DotNetInst="E:\temp\IE11andPowershellv4\NDP452-KB2901907-x86-x64-AllOS-ENU.exe"

$process = (Start-Process -FilePath $DotNetInst -Argumentlist "/q /norestart" -Wait -Verb RunAs)
Write-Host -Fore Red "Errorcode: " $process.ExitCode

 $process.ExitCode returns 16389

Invoke-Command -ComputerName "Server01" -ScriptBlock { Start-Process -FilePath $DotNetInst -ArgumentsList "/q /norestart" } -Crdential $cred

Can anyone help me out on the same?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>