本文介绍了查询AD帐户以查看是否已锁定/解锁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,希望有人可以提供帮助。尝试对控制台应用程序进行编程,要求您输入用户名,如果帐户已解锁,我希望console.writeline说"帐户未锁定"
Hi All, hoping someone can help. Trying to programme a console app where it asks you to enter a username, if the account is unlocked i want a console.writeline to say "Account is not locked"
如果帐户被锁定我希望它解锁而另一个写信线说"帐户解锁"
If the account is locked i want it unlocking and another writeline to say "Account Unlocked"
我查看了CMD命令并遇到了"net user xxxxx / domain / active:是" 不确定这是否包含在c#代码中
i've looked into CMD commands and come across "net user xxxxx /domain /active:yes" Not sure if this is included in the c# code
任何建议都将受到赞赏
Any advise would be appreciated
谢谢
推荐答案
这篇关于查询AD帐户以查看是否已锁定/解锁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!