更改Active Directory中所有用户的密码 [英] Changing Passwords for all users in Active Directory

查看:533
本文介绍了更改Active Directory中所有用户的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何简单的方法可以同时更改组织单位或组中用户的所有密码?


我想为所有用户设置相同的密码!

Is there any simple way to change all the passwords for an Organization Unit or users in a group at once?


I want to set same passwords to all users !

推荐答案


是否有任何简单的方法可以更改组织单位或组中用户的所有密码一次?


我想为所有用户设置相同的密码!
Is there any simple way to change all the passwords for an Organization Unit or users in a group at once?


I want to set same passwords to all users !



我会请你考虑,为了安全起见,使用随机数生成器和哈希表为所有帐户提供密码 - 然后你会将它们存档,但是一个用户将无法访问所有帐户(如果您要创建的脚本足够通用,您最终也会更改管理员密码,用户也会知道...除此之外,VB脚本可能是最简单的方法,虽然PERL,Python和Java都有win32模块或等效的,所以他们可以操作Windows(我从未在C ++中使用过一个,但我想也有一个)。


I would ask you to consider, just for the sake of security, using a random number generator and hash table to provide passwords to all accounts - then you''d have them on file, but one user wouldn''t be able to access all accounts (if the script you want to create is general enough, you would end up changing the admin passwords as well, and users would know that too...).

Other than that, a VB script is probably the easiest way to go, though PERL, Python, and Java all have win32 modules or an equivalent, so that they can operate on Windows (I''ve never used one in C++, but I imagine there is one there as well).



我会问你考虑到,为了安全起见,使用随机数生成器和哈希表为所有帐户提供密码 - 然后你会将它们存档,但是一个用户将无法访问所有帐户(如果sc您想创建的ript足够通用,您最终也会更改管理员密码,用户也会知道...)。


除此之外,还有一个VB脚本可能是最简单的方法,虽然PERL,Python和Java都有win32模块或等效的,所以它们可以在Windows上运行(我从来没有在C ++中使用过,但我想也有一个在那里)。
I would ask you to consider, just for the sake of security, using a random number generator and hash table to provide passwords to all accounts - then you''d have them on file, but one user wouldn''t be able to access all accounts (if the script you want to create is general enough, you would end up changing the admin passwords as well, and users would know that too...).

Other than that, a VB script is probably the easiest way to go, though PERL, Python, and Java all have win32 modules or an equivalent, so that they can operate on Windows (I''ve never used one in C++, but I imagine there is one there as well).



您想提供示例代码吗?




您想提供示例代码吗?



实际上我不能。我建议他学习一种语言。我99%肯定你可以在VB中做到这一点,但我个人从来没有编程VB。我使用过PERL,但只用于解析M

I can''t, actually. I was suggesting a language for him to research. I''m 99% sure you could do it in VB, but I personally have never programed VB. I have used PERL, but only to parse M


这篇关于更改Active Directory中所有用户的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆