So I've been testing with moving one of our install PowerShell logon scripts to PDQ Deploy. The problem is that the installer does not support any silent switches and requires the user to press "enter" twice. I've solved this with the following script that works when the computer boots up, but for some reason when I run the same script through PDQ Deploy it seems to hang when the first "Enter" is expected to be pressed.
Now I'm fairly sure the problem is the way PDQ executes the installer on the machine that is the issue, my question is, what do I need to modify so that the "Enter" signal is sent to the install window?
In the script we run a number of checks that work fine and define the $Executable variable.
Invoke-Expression "& C:\Path-To\$Executable"
$wshell = New-Object -ComObject wscript.shell;
Please sign in to leave a comment.