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.
精彩评论