majkinetor
majkinetor

Reputation: 9046

Remote powershell and prompts that do not wait for user input

I have script that calls schtasks.exe to import exported xml task. Schtasks.exe prompts for user password when script is executed directly on the server.

When I user remote powershell calling the same script gives me this:

[remote_server]: .\install.ps1
SUCCESS: The scheduled task "monitor.ps1" has been terminated successfully.
SUCCESS: The scheduled task "monitor.ps1" was successfully deleted.
Please enter the run as password for MYDOMAIN\myuser:
schtasks.exe : ERROR: The system cannot find the file specified.

The problem is the line Please enter the run as password for MYDOMAIN\myuser: where normally I can enter the password for logged in user but with remote power shell sessions this never happens.

Upvotes: 2

Views: 799

Answers (1)

mjolinor
mjolinor

Reputation: 68303

This appears to be a know issue:

Interactive console applications do not work properly through remoting sessions

Upvotes: 2

Related Questions