Results 1 to 10 of 14

Thread: Re: Adding "Log on as a service" rights to a user programmatically?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7

    Default Re: Adding "Log on as a service" rights to a user programmatically?

    Hi Jeffrey,

    the first question is, how would you do it programmatically *without*
    SetupBuilder through a command line tool or something like that.

    As far as I can see, it can be done via a PowerShell Script, a VBScript,
    group policy manipulation via advapi32.dll APIs -or- using the ntrights.exe
    Windows Resource Kit tool.

    Not sure if you can use this method, but I have developed a small demo
    project. See attached screenshot. I am using the "ntrights.exe" from the
    Win2003 Windows Resource Toolkit and it seemed to work fine on Windows 10
    Fall Creators Update.

    Command line should look like this:
    %TMPDIR%\ntrights.exe +r SeServiceLogonRight -u "Domain\Administrator"

    What do you think?

    Friedrich

    --
    Friedrich Linder
    Lindersoft | SetupBuilder | www.lindersoft.com
    954.252.3910 (within US) | +1.954.252.3910 (outside US)

    --SetupBuilder "point. click. ship"
    --Helping You Build Better Installations
    --Create Windows 10 ready installations in minutes
    --Official COMODO Code Signing and SSL Certificate Partner
    Attached Images Attached Images     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •