2016-09-04 32 views
0

Windowsターミナルを開き、管理者として実行すると、ユーザー名とパスワードにschtasksコマンドを正常に実行できます。Windowsターミナルでschtasksコマンド/ .cmdバッチファイルを実行する方法(管理者として実行しない)

cmdをダブルクリックしてWindows端末(管理者として実行していない)を開くと、アクセス拒否エラーが表示されます。この場合、どのようにタスクスケジューラでタスクを作成するためにschtasksを実行できますか?またはschtasksコマンドを持つ.cmdバッチファイルを実行しますか? adminまたは現在のログインユーザー名とパスワードを入力してコマンドを実行できますか?

答えて

0

から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. 
関連する問題