PPQS
WILD CORPUS · github_awesome

PQS 64 (B) - prompt from raw.githubusercontent.com

Source: raw.githubusercontent.com · Scraped 2026-05-04 · Scored 2026-05-04

Score

B
64 / 80
gemma4:latest · local · pqs-v2.0 · canonical
Clarity9 / 10
Specificity8 / 10
Context8 / 10
Constraints7 / 10
Output format7 / 10
Role definition10 / 10
Examples10 / 10
CoT structure5 / 10

The prompt

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
# Import the Active Directory module
Import-Module ActiveDirectory

# Define the target OU
$TargetOU = "OU=DisabledUsers,DC=example,DC=com"

# Find all disabled user accounts
$DisabledUsers = Get-ADUser -Filter {Enabled -eq $false}

# Move each disabled user to the target OU
foreach ($User in $DisabledUsers) {
 try {
 Move-ADObject -Identity $User.DistinguishedName -TargetPath $TargetOU
 Write-Host "Moved $($User.SamAccountName) to $TargetOU"
 } catch {
 Write-Host "Failed to move $($User.SamAccountName): $_"
 }
}
```

This prompt was scraped from a public source. The score reflects the input as written, not the quality of any output it produced. The AI input quality problem is the gap between what people type and what the model can act on.