修改批量用户名! [英] modify bulk usernames !

查看:80
本文介绍了修改批量用户名!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个在AD中修改USERNAMES的脚本,它应该占用特定OU中的所有用户,大约为5000,并在现有用户名的开头添加2位数。


例如,此OU中的所有用户名都是数字,即142334,131111,093333等等。


我需要在用户名之前添加"20"并将其应用于名称开头的所有用户介于01和15之间的范围 


并在以50到99开头的用户名之前添加'19'


我当前的用户名语法是xx- xxxx:前2 x代表一年,其他四个代表从0001到9999的数字


有没有办法这样做?

解决方案

帮助重命名对象-FULL


按照示例进行操作。



I need a script that modifies USERNAMES in AD it should take all users in a specific OU which are around 5000 and add 2 digits to the beginning of the existing usernames.

e.g all usernames in this OU are numbers i.e. 142334 , 131111 , 093333 and so 

i need to add '20' before the username and apply it to all users that their name start in the range between 01 and 15 

and add '19' before the username that starts with 50 to 99

my current username syntax is xx-xxxx : first 2 x's represent a year the other four represent a number from 0001 to 9999

is there a way to do so ?

解决方案

HELP Rename-Object -FULL

Follow the examples.


这篇关于修改批量用户名!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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