I am developing an application that runs as a windows service. I really need the service to have administrator privileges. I tried with the LocalSystem user, and it does not have enough rights. Is this possible? I tried setting requireAdministrator in the app.config. When I do this, the service starts and then immediately stops. I have tried with other administrator accounts as well, but I get the same results.
相关问题
- How to upgrade/install Upstart deamon version 1.5
- .NET - Storing An App.config With A Class Library
- There Was No Endpoint Listening at http // That Co
- Starting an Application from Windows Service
- Symfony Basic Translation Example
相关文章
- Service层和Dao层一定要对应吗?
- k8s 访问Pod 时好时坏
- Async task does not work properly (doInBackground
- Including a generic class in Unity App.Config file
- Keeping alive Intent Service after application is
- A proper way to Debug a Service in Android Studio?
- Simple service in Swift, persists, foreground only
- How to make ConfigurationManager read a config fil
You just need to run it as an admin user - set the login correctly in the services properties for the service.
Usually though it's best to run as an ordinary user and give it explicit permissions to the resources it needs access to.