none
What the permission for running task remotely?

    คำถาม

  • Hi,

    I need to run a scheduled task on server remotely from a user's computer. Right it works with the account "test" which has the local administrator privilege when I run "schtasks /run /S server /U server\test /P password /I /TN Task" from the user's computer.

    But I do not want the user have the local admin privilege. Either hide the "Test" user name or password to have the user run or give the account "test" none local admin privilege. Either way works for me, but I don't know how to approach it. Need help!

    Thanks in advance! 




    Grace

    4 พฤษภาคม 2561 0:28

คำตอบ

  • Hi William,

    Thank you for your reply.

    I ran "schtasks /run /S server /U server\test /P password /I /TN Task" and got "Error: Access is denied. "

    User "test" has been granted "Log on as a batch job" user right. 

    If I grant "test" local admin privilege, it will be successful to run the command.

    I checked Event viewer and didn't see any error related to schtasks.

    May I know what detail error message you are looking for and where can I get it?

    Many thanks! 


    Grace

    Hi,

    Please refer to the following article:

    https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks#BKMK_run


    If there is anything else we can do for you, please feel free to post in the forum.

    Best Regards,

    William



    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • เสนอเป็นคำตอบโดย William LiangMicrosoft 20 พฤษภาคม 2561 2:26
    • ทำเครื่องหมายเป็นคำตอบโดย graceyin39 21 พฤษภาคม 2561 15:56
    16 พฤษภาคม 2561 2:29

ตอบทั้งหมด