F5F Stay Refreshed Hardware Desktop Whats wrong with my Powershell script?

Whats wrong with my Powershell script?

Whats wrong with my Powershell script?

L
Lior1001
Member
143
10-09-2023, 06:17 AM
#1
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.
L
Lior1001
10-09-2023, 06:17 AM #1

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
Izzyb2004
Member
152
10-09-2023, 07:52 AM
#2
Need something robust like .NET or a reliable installation?
I
Izzyb2004
10-09-2023, 07:52 AM #2

Need something robust like .NET or a reliable installation?

Y
Yahv_Gaming
Junior Member
21
10-09-2023, 07:45 PM
#3
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"
Y
Yahv_Gaming
10-09-2023, 07:45 PM #3

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"

C
ClumsySky
Senior Member
526
10-10-2023, 01:07 AM
#4
Update execution settings to allow unrestricted policies and bypass restrictions.
C
ClumsySky
10-10-2023, 01:07 AM #4

Update execution settings to allow unrestricted policies and bypass restrictions.

M
Millq
Junior Member
8
10-10-2023, 06:19 PM
#5
The outcome remains unchanged. EDIT: Attempted running them manually before the script; results stayed the same afterward. I added them to the script just to verify.
M
Millq
10-10-2023, 06:19 PM #5

The outcome remains unchanged. EDIT: Attempted running them manually before the script; results stayed the same afterward. I added them to the script just to verify.

S
Seve_PT
Member
229
10-12-2023, 09:39 AM
#6
Execute Start-Process powershell with elevated privileges using the specified script path.
S
Seve_PT
10-12-2023, 09:39 AM #6

Execute Start-Process powershell with elevated privileges using the specified script path.

Y
ylyes4
Senior Member
572
10-12-2023, 11:10 AM
#7
Y
ylyes4
10-12-2023, 11:10 AM #7

A
Alon_Block
Member
79
10-15-2023, 07:53 AM
#8
Some installers handle different command-line options, so you may need to review each one for silent setup.
A
Alon_Block
10-15-2023, 07:53 AM #8

Some installers handle different command-line options, so you may need to review each one for silent setup.

T
TeaSparrow
Junior Member
37
10-17-2023, 10:53 PM
#9
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.
T
TeaSparrow
10-17-2023, 10:53 PM #9

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.