Skip to content

Conversation

@DavidWiseman
Copy link
Collaborator

The service will fail to start if the user doesn't have logon as a service rights. Grant this automatically as part of the install to ensure a smoother installation experience.

The service will fail to start if the user doesn't have logon as a service rights.  Grant this automatically as part of the install to ensure a smoother installation experience.
Copilot AI review requested due to automatic review settings November 26, 2025 09:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the service installation process by automatically granting "Log on as a service" rights to the service account user. This prevents installation failures caused by missing permissions and improves the overall installation experience.

Key changes:

  • Implements LSA (Local Security Authority) utility functions to check and grant logon as service rights
  • Integrates permission checking and granting into the service installation workflow with user feedback

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
DBADashServiceConfig/LsaUtility.cs New utility class providing LSA API interop for checking and granting logon as service rights
DBADashServiceConfig/InstallService.cs Updated installation flow to check for and grant logon as service rights before installing the service

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavidWiseman DavidWiseman merged commit 709eefc into trimble-oss:main Nov 26, 2025
@DavidWiseman DavidWiseman deleted the LogonAsAService branch November 26, 2025 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant