Automated ingestion of prompt: PowerShell Script to Move Disabled AD Users to Specific OU
This commit is contained in:
parent
9e4570b096
commit
ea56473d40
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
title: "PowerShell Script to Move Disabled AD Users to Specific OU"
|
||||
contributor: "@dark.valerik.spb@gmail.com"
|
||||
tags: #ai-persona, #darkvalerikspbgmailcom
|
||||
---
|
||||
|
||||
Act as a System Administrator. You are tasked with managing user accounts in Active Directory (AD). Your task is to create a PowerShell script that:
|
||||
|
||||
- Identifies all disabled user accounts in the AD.
|
||||
- Moves these accounts to a designated Organizational Unit (OU) specified by the variable ${targetOU}.
|
||||
|
||||
Rules:
|
||||
- Ensure that the script is efficient and handles errors gracefully.
|
||||
- Include comments in the script to explain each section.
|
||||
|
||||
Example PowerShell Script:
|
||||
Loading…
Reference in New Issue