Powershell管理系列(二十)PowerShell操作之批量删除OU及解锁的被锁的账号
需求1:听一个朋友说到他们的AD里面的OU是由LDAP程序自动建的,人员较多,7、8万,组织也比较多,奇葩的是他们的程序只会创建,不会删除,日积月累下来,里面有很多无用的OU,想批量删除,但是发现有如下问题: 1、发现每删一个都都取消默认的“防止对象被意外删除”属性,否则无法删除,如下图: 2、其实还有一个问题,他没提,我这里顺便提下,删除的时候如果删除的OU还有子对象的话会提示无法删除。 ...
Powershell管理系列(二十九)PowerShell操作之移动账户到指定OU
步骤1、用户需求如下:人员离职后,将AD账户禁用并挪动到指定的OU get-aduser -SearchBase "ou=test,dc=yuntcloud,dc=com" -filter *|Move-ADObject -TargetPath "ou=dimission,dc=yuntcloud,dc=com" get-aduser -SearchBase "ou=dimission,dc=.....
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。
powershell您可能感兴趣
- powershell命令
- powershell active
- powershell自动化
- powershell应用
- powershell ssh
- powershell脚本
- powershell web
- powershell ip
- powershell ip地址
- powershell访问
- powershell windows
- powershell server
- powershell sql
- powershell文件
- powershell azure
- powershell自动化运维
- powershell v3
- powershell权威指南
- powershell exchange
- powershell操作
- powershell sharepoint
- powershell系统
- powershell ad
- powershell安装
- powershell实战指南
- powershell信息
- powershell邮箱
- powershell设置
- powershell服务器
- powershell对象