Scripts
Ready-to-use scripts for common IT tasks and automation
Ready-to-Use Automation Scripts
Production-ready scripts for common MSP tasks. These scripts automate procedures documented in our Knowledge Base and Documentation sections.
Available Scripts
Windows Administration (PowerShell)
System Maintenance:
- Windows Update Reset - Reset Windows Update components when updates fail
- Network Stack Reset - Reset TCP/IP stack, DNS cache, and network adapters
- Print Spooler Reset - Clear print queue and restart spooler service
- System File Checker - Run SFC and DISM to repair system files
Active Directory:
- AD Health Check - Run dcdiag, check replication, and FSMO roles
- User Lockout Finder - Identify source of account lockouts across DCs
- Bulk User Management - Create, modify, or disable multiple AD users from CSV
Linux Administration (Bash)
System Health:
- Linux Health Check - Check CPU, memory, disk, and service status
- Log Analyzer - Parse system logs for errors and warnings
- Disk Space Monitor - Monitor disk usage and send alerts
Security:
- Security Audit - Check for common security misconfigurations
- Failed Login Monitor - Track failed SSH login attempts
Network Tools (Cross-Platform)
- Network Diagnostics - Automated ping, traceroute, and DNS tests
- Port Scanner - Check if specific ports are open on target hosts
- SSL Certificate Checker - Check SSL certificate expiration dates
Backup & Recovery
- Backup Verification - Verify backup completion and integrity
- Backup Report Generator - Generate backup status reports
Incident Response
- Evidence Collection - Collect forensic evidence from Windows/Linux systems
- Account Compromise Response - Automated steps for compromised account response
- System Isolation - Quickly isolate a system from the network
Usage Guidelines
Before Running Scripts:
- Read the script and understand what it does
- Test in a non-production environment first
- Customize variables for your environment
- Ensure you have appropriate permissions
- Review security implications
Best Practices:
- Always maintain backups before making changes
- Use version control for customized scripts
- Document any modifications you make
- Review logs and output after execution
- Keep scripts updated with your environment
Security Considerations:
- Never hardcode credentials in scripts
- Use secure credential storage (Windows Credential Manager, SSH keys, etc.)
- Limit script permissions to minimum required
- Review scripts for security vulnerabilities
- Audit script execution and changes
Script Categories
Quick Fixes
Scripts for immediate troubleshooting and resolution of common issues.
Health Checks
Scripts to verify system health, performance, and configuration.
Automation
Scripts to automate repetitive tasks and reduce manual effort.
Reporting
Scripts to generate reports for documentation and auditing.
Monitoring
Scripts for continuous monitoring and alerting.
Contributing
Found a bug or have an improvement? Contributions are welcome via GitHub pull requests.
Contribution Guidelines:
- Follow existing code style and formatting
- Include comprehensive comments
- Add usage examples
- Test thoroughly before submitting
- Update documentation as needed
License
All scripts are provided under the MIT License. See License for details.
Disclaimer: Scripts are provided “as-is” without warranty. Always test in a non-production environment first. Review and customize for your specific environment and requirements.
Support
For questions or issues:
- Review the script documentation
- Check related Knowledge Base articles
- See Documentation for procedures
- Email: kevin@glyph.sh
Posts
System Isolation Script
Emergency network isolation for compromised systems during security incidents
Account Compromise Response
Automated incident response for compromised user accounts
Evidence Collection Script
Forensic evidence collection from Windows and Linux systems
Backup Report Generator
Generate HTML/text report of backup status with email notifications
Backup Verification
Verify backup completion, file integrity, and send alerts on failures
SSL Certificate Checker
Monitor SSL certificate expiration dates for multiple domains
Port Scanner
Scan specific ports on target hosts with timeout configuration
Network Diagnostics
Comprehensive network diagnostics for troubleshooting connectivity issues
Failed Login Monitor
Monitor and analyze failed SSH login attempts
Security Audit Script
Comprehensive Linux security audit and vulnerability check
Disk Space Monitor
Monitor disk space usage and alert when threshold exceeded
Log Analyzer
Parse and analyze system logs for errors and warnings
Linux Health Check
Comprehensive system health check for Linux servers
Bulk User Management
Create, modify, or disable multiple Active Directory users from CSV
User Lockout Finder
Find the source of Active Directory account lockouts
Active Directory Health Check
Comprehensive health check for Active Directory domain controllers
System File Checker
Run SFC and DISM to repair system files
Print Spooler Reset
Clear print queue and restart spooler service
Network Stack Reset
Reset TCP/IP stack, DNS cache, and network adapters
Windows Update Reset
Reset Windows Update components when updates fail