diff --git a/prompts/ai-persona/powershell_script_to_move_disabled_ad_users_to_spe_598.md b/prompts/ai-persona/powershell_script_to_move_disabled_ad_users_to_spe_598.md new file mode 100644 index 0000000..0783a8f --- /dev/null +++ b/prompts/ai-persona/powershell_script_to_move_disabled_ad_users_to_spe_598.md @@ -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: