A curated collection of production-ready PowerShell scripts designed for Windows system administrators and IT support professionals. These tools streamline user management, system monitoring, and routine administrative tasks in enterprise environments.
Bulk User Account Creation
Automate the creation of multiple Windows user accounts from CSV files for efficient onboarding workflows.
Features:
- CSV-based batch processing
- Standardized account configuration
- Group membership assignment
- Error handling and logging
Usage:
.\create-users.ps1CSV Format:
Username,FullName,Password,Groups
jdoe,John Doe,SecurePass123,Users;RemoteDesktop
jsmith,Jane Smith,SecurePass456,Users;Administrators
System Health Monitoring
Comprehensive system health check for troubleshooting and preventive maintenance.
Monitors:
- CPU utilization and load
- Memory usage and availability
- Disk space and I/O performance
- System uptime and stability
- Running services status
Usage:
.\system-health-check.ps1Output:
- Console display with color-coded status
- Optional export to log file
- Alert thresholds for critical metrics
- Windows 10/11 or Windows Server 2016+
- PowerShell 5.1 or higher
- Administrator privileges
# Clone the repository
git clone https://github.com/x0VIER/windows-admin-scripts.git
# Navigate to directory
cd windows-admin-scripts
# Set execution policy (if needed)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser# Method 1: Direct execution
.\scriptname.ps1
# Method 2: Bypass execution policy
powershell.exe -ExecutionPolicy Bypass -File .\scriptname.ps1# Prepare CSV file with user data
# users.csv:
# Username,FullName,Password,Groups
# user1,User One,Pass123,Users
# user2,User Two,Pass456,Users
# Run the script
.\create-users.ps1# Run health check
.\system-health-check.ps1
# Schedule daily health checks
$Action = New-ScheduledTaskAction -Execute "PowerShell.exe" `
-Argument "-File C:\Scripts\system-health-check.ps1"
$Trigger = New-ScheduledTaskTrigger -Daily -At 9am
Register-ScheduledTask -TaskName "Daily Health Check" -Action $Action -Trigger $Trigger| Component | Version | Notes |
|---|---|---|
| Windows OS | 10/11 or Server 2016+ | Required |
| PowerShell | 5.1+ | Pre-installed |
| Admin Rights | Yes | For most operations |
- Passwords: Use strong passwords or integrate with password management systems
- Permissions: Run with minimum required privileges
- Audit: Enable logging for all administrative actions
- Testing: Always test scripts in non-production environments first
Contributions are welcome! To contribute:
- Fork the repository
- Create a feature branch
- Add your script with documentation
- Test thoroughly
- Submit a pull request
- Follow PowerShell best practices
- Include help documentation
- Add error handling
- Provide usage examples
This project is licensed under the MIT License - see the LICENSE file for details.
- Built for Windows administrators by Windows administrators
- Inspired by real-world IT operations needs
- Community-driven and production-tested
- Issues: Report bugs via GitHub Issues
- Questions: Use GitHub Discussions
- Contributions: Submit Pull Requests
Simplifying Windows administration, one script at a time
⭐ Star this repo if it makes your job easier!