cmd - How to Schedule a task with command prompt in windows 7? -


I am trying to schedule a task with CMD prompts. I'm running the command:

  C: \ Windows \ system32 \ schtasks.exe / CREATE / SC ONLOGON / TN "mytask" / TR "C: \ samp.txt" / ru "NT AUTHORITY \ SYSTEM" / RP / F   

The task is shown in the task manager with the system name, and its status code is running with 0x41301. But this (samp.txt) is not visible in the desktop.

The same order if I am currently changing the "NT AUTHORITY \ SYSTEM" with the logged on user (samp.txt) is visible on the desktop.

Do you have

code> / IT ?
This is the only option that can allow you to display something on the active session using scheduled tasks. However, I'm not sure that Windows will allow other users to interact with the desktop.

Edit: You can use / RU BUILTIN \ user / IT , so any user will be able to run it interactively . What are you bound to / ro system?

If your goal is to log on to the user, then the samp.txt file is to display the content, then the second solution is that "all users" in the startup folder of the samp.txt start menu: C: \ Program Data \ Microsoft \ Windows \ Start Menu \ Program \ Startup

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -