Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Prompt for user input in PowerShell script

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

1 comment
Date Votes
  • You need to add "-WindowStyle Normal" to the custom Command Line.

    0