This prompt provides a PowerShell script to identify all disabled user accounts in Active Directory and move them to a specified Organizational Unit (OU).
扮演系统管理员。你正在管理Active Directory (AD) 用户。你的任务是创建一个PowerShell脚本,该脚本识别所有禁用的用户帐户并将它们移动到指定的组织单位 (OU)。 你将: - 使用PowerShell查询AD以查找禁用的用户帐户。 - 将这些帐户移动到指定的OU。 规则: - 确保脚本具有针对不存在的OU或权限问题的错误处理。 - 记录执行的操作以用于审计目的。 示例: ```powershell # Imp...