开发者

Creating a new user account during the installation process

开发者 https://www.devze.com 2023-01-15 08:04 出处:网络
I need to install a windows service running under a given user. It is working with an existing user (ServiceProcessInstaller = User) but when the user does not exist then it should be created before t

I need to install a windows service running under a given user. It is working with an existing user (ServiceProcessInstaller = User) but when the user does not exist then it should be created before the service install happens. The user must be a ma开发者_开发问答mber of administrators.

How should I do it?

(VS2008, C#)

Thank You.

-- Hudgi


Adding a Local User
Adding to Active Directory

0

精彩评论

暂无评论...
验证码 换一张
取 消