This project is read-only.

Execute-Process executes fine, but doesn't do anything

Topics: Archive - Deployment Scripts, Archive - General
Aug 11, 2014 at 8:47 AM
I have been trying to run the following script to install Lenovos ThinkVantage Access Connections:.
$installPhase = "Installation"

    # Perform installation tasks here
    Execute-MSI -Action Install -Path "TVAC.msi" -Parameters "REBOOT=ReallySuppress /QN"
    Copy-file -Path "$dirFiles\OPAK.loa" -Destination "C:\Program Files (x86)\Lenovo\Access Connections\opak.loa"
    Copy-file -Path "$dirFiles\___.sig" -Destination "C:\Program Files (x86)\Lenovo\Access Connections\___.sig"
$installPhase = "Post-Installation"

    # Perform post-installation tasks here
    Execute-Process -FilePath "C:\Program Files (x86)\Lenovo\Access Connections\QcTray.exe" -Arguments "/set H13"
    # Display a message at the end of the install
    #Show-InstallationPrompt -Message "You can customise text to appear at the end of an install, or remove it completely for unattended installations." -ButtonRightText "Ok" -Icon Information -NoWait
The script itself executes successfully, and examining the logs I can see general success.


The cultprit is the line qctray.exe /set h13

But, when I start the Application it is obviously not succeeded (it is supposed to activate a profile)

Running the command manually in an elevated command line Works fine. Any ideas?
Aug 11, 2014 at 2:54 PM
Is it because you are executing the qctray.exe under the SYSTEM account?