Prompt for user input in PowerShell script
Marianna Fagan
I've got a PowerShell script I'm using to automate the creation of IBM ACS sessions, and part of it prompts the user for input using the Read-Host cmdlet. Even if I set this script to run as the logged-on user, the prompt doesn't come up and, depending on the method or settings in PDQ, either runs through sans prompts, or errors out because PowerShell is in NonInteractive mode.
Is it even possible to run PDQ Deploy in this way?
1
Comments
You need to add "-WindowStyle Normal" to the custom Command Line.
