查询出被锁的AD账号,并启用Search-ADAccount-LockedOut|Unlock-ADAccount请关注下方的微信公众号,获取更多IT资讯:
分类:
系统相关 时间:
2018-01-17 11:22:08
阅读次数:
272
防伪码:没有相当程度的孤独是不可能有内心的平和。写一个脚本,实现批量添加20个用户,用户名为user01-20,密码为user后面跟5个随机字符。#!/bin/bash
foriin`seq20`
do
user="user$i"
password="$user`echo$RANDOM|md5sum|cut-c1-5`"
useradd$user
echo"$password"|passwd--s..
分类:
其他好文 时间:
2017-09-06 10:04:37
阅读次数:
152
http://blog.csdn.net/qq_16038125/article/details/72568897 ...
分类:
系统相关 时间:
2017-06-27 08:11:02
阅读次数:
220
import osimport timefiledir = "D:\\app"def install(): files = os.listdir(filedir) for file in files: text = os.popen("adb install -r D:\\app\\"+ file) ...
分类:
移动开发 时间:
2017-06-22 18:30:41
阅读次数:
216
#!/bin/bashdel=$(cat/etc/passwd|grep"/bin/bash"|awk-F:‘$3>=500{print$1}‘)foriin$deldo/usr/sbin/userdel-r$i&>/dev/nulldone
分类:
系统相关 时间:
2017-04-30 01:10:04
阅读次数:
179
#!/bin/bashdel=$(cat/etc/passwd|grep"/bin/bash"|awk-F:‘$3>=500{print$1}‘)foriin$deldo/usr/sbin/userdel-r$i&>/dev/nulldone
分类:
系统相关 时间:
2017-04-30 01:02:46
阅读次数:
173
#!/bin/bashread-t30-p"pleaseinputusername:"nameread-t30-p"pleaseinputusernumber:"numread-s-t30-p"pleaseinputuserpassword:"passecho-e"\n"if[!-z"$name"-a!-z"$num"-a!-z"$pass"]theny=$(echo"$num"|sed-e‘s#^[0-9]##g;s#[0-9]*$##g‘)if[-z"$y"]thenfor((i=1;i<=$num..
分类:
系统相关 时间:
2017-04-30 00:59:52
阅读次数:
203
#!/bin/bashforiin`cat./iplist.ini`doecho$iscp./MonitorProcess.sh$i:/home/haoren/ssh$i"(echo‘*/5****/home/haoren/MonitorProcess.sh‘;crontab-l)|crontab"echo"Synchronizationiscomplete."done
分类:
系统相关 时间:
2017-01-24 16:21:03
阅读次数:
230
【shell】-【批量远程MySQL执行命令及常用命令解析】-【工作总结】 ...
分类:
数据库 时间:
2016-12-15 20:39:15
阅读次数:
328
#在工作中,经常会有以时间或者数字命名,创建n张表的需求。
#下面给出4种常用的批量创建100张表的小脚本。
#结果
mysql>showtables;
+-----------------+
|Tables_in_tsdb|
+-----------------+
|Total_Winner_01|
|Total_Winner_02|
|Total_Winner_03|
|Total_Winner_04|..
分类:
其他好文 时间:
2016-08-02 17:28:00
阅读次数:
126