からschtasks /create /?
。最初のセット(/u
と/p
)は誰ですか?あなたはschtasks
のプログラムを実行していますか? 2番目のセット(/ru
と/rp
)は、タスクを実行するものです。 /U
および/P
は、すべてのサブコマンドで使用できます。
/U username Specifies the user context under which SchTasks.exe
should execute.
/P [password] Specifies the password for the given user context.
Prompts for input if omitted.
/RU username Specifies the "run as" user account (user context)
under which the task runs. For the system account,
valid values are "", "NT AUTHORITY\SYSTEM"
or "SYSTEM".
For v2 tasks, "NT AUTHORITY\LOCALSERVICE" and
"NT AUTHORITY\NETWORKSERVICE" are also available as well
as the well known SIDs for all three.
/RP [password] Specifies the password for the "run as" user.
To prompt for the password, the value must be either
"*" or none. This password is ignored for the
system account. Must be combined with either /RU or
/XML switch.