开发者

C# : how can I create User account remotely?

开发者 https://www.devze.com 2023-03-12 21:12 出处:网络
what I need to do is: Create User account on another machine from my machine using C#. I tried to use DirectoryEntry(\"WinNt://\"....) but it create this account localy in my current machine.

what I need to do is: Create User account on another machine from my machine using C#. I tried to use DirectoryEntry("WinNt://"....) but it create this account localy in my current machine. I tried many time to add the destination machine name in this method but no way :S. also i googled and found many articl开发者_开发百科es illustrated somethings like this but not actual what i need. any suggestion will be appreciated.


Checkout:

  • How to add a new user using DirectoryServices?
  • How to add a user to the local system by using Directory Services?
  • Creating local user account c# and .NET 2.0

Alternatively, you can spawn a TCP server/service on the server machine, and send commands remotely via messages.


I'd say you'd have to go to a little client server architecture where the remote 'server' creates a local user based on the supplied client data.

0

精彩评论

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