[英]C# : how can I create User account remotely?
what I need to do is: Create User account on another machine from my machine using C#.我需要做的是:使用 C# 在我的机器上创建另一台机器上的用户帐户。 I tried to use DirectoryEntry("WinNt://"....) but it create this account localy in my current machine.
我尝试使用 DirectoryEntry("WinNt://"....) 但它在我当前的机器上本地创建了这个帐户。 I tried many time to add the destination machine name in this method but no way:S.
我尝试了很多次在这种方法中添加目标机器名称但没有办法:S。 also i googled and found many articles illustrated somethings like this but not actual what i need.
我也用谷歌搜索,发现很多文章都说明了类似的东西,但不是我真正需要的。 any suggestion will be appreciated.
任何建议将不胜感激。
Checkout:查看:
Alternatively, you can spawn a TCP server/service on the server machine, and send commands remotely via messages.或者,您可以在服务器机器上生成TCP 服务器/服务,并通过消息远程发送命令。
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.我想说你必须 go 到一个小的客户端服务器架构,远程“服务器”根据提供的客户端数据创建一个本地用户。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.