Interactive Console issue

Hi there,

When I try the "read-host" function, it gives an error saying: PS running in non-interactive mode. Even when I change the settings from Deploy User to Deploy User (interactive) or logged on user, nothing changes.

As last resort, I entered a custom line without the -NonInteractive parameter, but no luck.

Am I missing something?

PS: I am running the latest version of PDQ Deploy.

0

Comments

4 comments
Date Votes
  • "Read-Host" requires actual human input therefore you will get error when you run it with "-NonInteractive" parameter.

    0
  • Well, is it possible to get the console to show for the client? Because that's what I'm trying to achieve.

    0
  • enter image description here

    If you have to run "Interactive" code, you can try something like this but it will require to run as "Logged On User".

    0
  • Thanks! This worked.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post