简体   繁体   English

C#:如何远程创建用户帐户?

[英]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.

相关问题 C#如何使用WMI在远程计算机中创建用户帐户 - C# how can i use WMI to create user account in a remote computer C#ActiveDirectory - 如何从已加入域的计算机远程添加本地用户帐户到非域计算机 - C# ActiveDirectory - How do I add a local user account remotely from a domain-joined machine to a non-domain machine 如何在C#中登录Novell Groupwise用户帐户? - How can I login to a Novell Groupwise user account in C#? 当他/她的帐户被锁定时,向用户发送短信通知消息,我怎样才能在C#中执行此操作 - Send sms notify message to user when his/her account locked, how can i do that in C# 如何创建C#程序以远程更改AD密码? - How to create C# program to change AD password remotely? C#中如何将SID转换为账户名 - How can I convert from a SID to an account name in C# C#如何禁用本地用户帐户的交互式登录。 与网络服务帐户类似 - C# How do I disable interactive login for a local user account. Similar to Network Service account 如果用户帐户处于活动状态,如何签入C# - How to check in C# if user account is active 如何通过 C# 创建 GMSA 帐户 - How to create GMSA account via C# 如何使用C#远程登录到远程计算机? - How can you remotely login to a remote computer using C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM