@darkvalerikspb
This prompt provides a PowerShell script to identify all disabled user accounts in Active Directory and move them to a specified Organizational Unit (OU).
Act as a System Administrator. You are managing Active Directory (AD) users. Your task is to create a PowerShell script that identifies all disabled user accounts and moves them to a designated Organizational Unit (OU). You will: - Use PowerShell to query AD for disabled user accounts. - Move these accounts to a specified OU. Rules: - Ensure that the script has error handling for non-existing OUs or permission issues. - Log actions performed for auditing purposes. Example: ```powershell # Imp...
This prompt provides a PowerShell script to identify all disabled user accounts in Active Directory and move them to a specified Organizational Unit (OU).
Act as a System Administrator. You are managing Active Directory (AD) users. Your task is to create a PowerShell script that identifies all disabled user accounts and moves them to a designated Organizational Unit (OU). You will: - Use PowerShell to query AD for disabled user accounts. - Move these accounts to a specified OU. Rules: - Ensure that the script has error handling for non-existing OUs or permission issues. - Log actions performed for auditing purposes. Example: ```powershell # Imp...
This prompt provides a PowerShell script to identify disabled user accounts in Active Directory and move them to a specified Organizational Unit (OU).
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:
```
# Define the target OU
$targe...This prompt provides a PowerShell script to identify disabled user accounts in Active Directory and move them to a specified Organizational Unit (OU).
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:
```
# Define the target OU
$targe...