1

I have a C# application that opens a command prompt and displays connection status'. I have a PowerShell script that checks if the process is running and starts it if not. If I run the script manually, the command promt opens. When I have task scheduler run the script, it starts the application and all the background processes function properly, but the command prompt does not open. How do I get the command prompt to open when the PowerShell script is run from task scheduler.

This is being done on a Windows 7 machine using PowerShell 4.0. It has been moved from another from another windows 7 machine where it was fully functioning. All the settings in task manager are identical.

1 Answer 1

0

I found the issue to be that the task needed to be set for "run only when user is logged in" and then it worked. Apparently not ALL settings were the same in task scheduler.

More Here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.