Looking for some help here. This Powershell script runs fine if I manually run the script but does not run the .Net 461 installation when executed through SCCM 2012. Does anyone know if someone of these commands are not supported through SCCM? Here is my scripts below. Sorry this is my first PowerShell script so I am sure it is pretty ugly 🙂
This is how I am executing the powershell through SCCM: powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File .\Net461Upgrade.ps1
#Backup machine.config before .Net 461 Install
Copy-Item -Path "$netDir\machine.config" -Destination "$netDir\machine.config.B461" -Force
#Verify ScriptDir declaration is working and reporting current directory that is expected.
#Run .Net 461 with norestart parameter | Out-Null will make the script to wait until executable is done running before continuing next step of script.
#Check if CBP is installed on PC, if so then overwrite machine.config to repair CBP App
#Backup machine.config after .Net 461 Installation
#Copy machine.config from current directory after Oracle repair to .Net directory which fixes CBP
Is it possible to use an application which is dependent upon .NET to upgrade .NET?
You must be logged in to reply to this topic.