Whats wrong with my Powershell script?
Whats wrong with my Powershell script?
Hey there, maybe someone has a better idea? I attempted to run it via right click and command in an elevated PowerShell window. The app just appeared and vanished. I removed the "exit" at the end to check for errors, but it still worked when I first created it. The script is listed below.
I don't think so. It seems the installers won't cooperate either. I attempted to run the first four manually and it worked. The Creative Cloud installer wasn't present, so I downloaded it and moved the files to a separate folder. Updated the script and disabled some installers. It looks like MS Office also got installed despite my attempts to prevent it. (From the manual run) Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\IE341_2208a.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\ied_1_1_01.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\Unigine_Heaven-4.0.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\Creative_Cloud_Set-Up.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\PMHOME.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\OfficeSetup.exe" -ArgumentList "/S /v /qn" -passthru #Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\UltimateSetup.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\RoboForm-v9-Setup.exe" -ArgumentList "/S /v /qn" -passthru Start-Process -Wait -FilePath "G:\Backup installasjon\Installer\Battle.net-Setup.exe" -ArgumentList "/S /v /qn"
Some installers handle different command-line options, so you may need to review each one for silent setup.
They were designed mainly to streamline the process as much as possible, reducing the frustration during OS reinstallation. Also, the Creative Suite installer would completely wipe itself out after setup. That was an issue before.