We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mpande
Posts: 64
Joined: Tue Sep 28, 2021 1:52 pm

User with Log On as a Service

Is it possible through Advanced Installer to grant a user created through Advanced Installer the Log on as a service policy setting?

(https://docs.microsoft.com/en-us/window ... -a-service)
Liviu
Posts: 1420
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: User with Log On as a Service

Hello Max,

Unfortunately, Advanced Installer does not have support for this (to Set Logon As A Service right to user).

However, this is already on our TODO list of improvements. I have increased its priority and hopefully it will be implemented in a future version of Advanced Installer.

As soon as this improvement will be available we will notify you on this forum thread.

Also, as a solution, you can achieve this using a custom action script (PoweShell, VBScript).

For more information, please refer to the below article:

Set Logon As A Service right to User by Powershell, C#, CMD and VBScript

I've tested the VBScript and is working as expected. The "Execute inline script code" custom action needs to be added after "Add Resources" action group with the "When the system is being modified (deferred)" and "Run under the LocaSystem account with full privileges (no impersonation)" options checked.
Sample demo.png
Sample demo.png (251.05 KiB) Viewed 2083 times

Hope that helps!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”