Automic Workload Automation

  • 1.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 10, 2017 09:47 AM
    Hi all,
    I have a windows Job that is running on ~400 servers as same domain administrator user.
    It runs fine on over 300 of these but not on the others. It doesn't fail but bombs out shortly after starting.

    When I try to run this Job on command prompt on the host, I get this message.

    ei3gwuax5jdd.pnghttps://us.v-cdn.net/5019921/uploads/editor/xx/ei3gwuax5jdd.png" width="603">
    When I run the command prompt as Administrator, my Job runs fine.

    Is there a way of mimicking "Run as Administrator" via Automic windows Job?

    John.









  • 2.  Running a Windows Job with "Run as administrator" privilages



  • 3.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 11, 2017 11:52 AM
    Not sure this will work for me. I'm not executing PowerShell. I'm executing a .bat program which is stored on a shared filer.

    What I'm actually trying to accomplish is to active the "Run with highest privilages" setting below which I see on the Task Scheduler properties.

    azqyxcrupk3s.pnghttps://us.v-cdn.net/5019921/uploads/editor/9b/azqyxcrupk3s.png" width="603">


  • 4.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 11, 2017 03:23 PM
    I think Christine is absolutely right, that seems to be an UAC issue -- see the screenshot in your first post.

    The most effective way would be disabling UAC in the machines systems settings.
    pls don't forget to disable UAC in the registry as well (Win Server 2012 and above)



  • 5.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 12, 2017 08:49 AM
    JohnO'Mullane

    Have you tried to tick mark "Log on as a batch user" on the WINDOWS tab in your Windows Job ?

    Hint: open Help (F1) and search for the word elevated.


  • 6.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 12, 2017 08:53 AM
    We have a known error article that explains how to deactivate UAC here :
    https://automic.force.com/support/apex/CommunityArticleDetail?id=ka4b00000004MIC
                                              


    Resolution

    A registry change is required. Set the DWORD "EnableLUA" from 1 to 0 in

    "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system".

    bm0vc43gnpfo.pnghttps://us.v-cdn.net/5019921/uploads/editor/vn/bm0vc43gnpfo.png" width="1153">

    Best regards,
    Antoine


  • 7.  Running a Windows Job with "Run as administrator" privilages

    Posted Apr 12, 2017 10:09 AM
    Keld_Mollnitz Thanks you so much.
    This appears to have worked a treat!