A PowerShell script that performs automated security audits on Windows systems, checking for open ports, outdated software, weak passwords, and unauthorized user accounts. It also generates a report highlighting issues found on the spot.
- 🔍 Port scanning for common services
- 🔄 Detection of outdated security updates
- 🔐 Password policy verification
- 📝 Automated report generation
- 🖥️ Windows Operating System
- ⚡ PowerShell 5.1 or higher
- 👑 Administrative privileges
- Clone this repository or download the script:
git clone https://github.com/ybigsur5/security-audit-script.git- Navigate to the script directory:
cd security-audit-script- Open PowerShell as Administrator
- Run the script:
.\security-audit.ps1The script will automatically:
- 🔍 Scan specified ports
- 🔄 Check for outdated security updates
- 🔐 Verify password complexity settings
- 📊 Generate a comprehensive report
Modifying Port Scan List:
$openPorts = 80, 443, 3389 # Add or remove ports as needed⚠️ Run this script only on systems you have permission to audit- 🚫 Be cautious when sharing the generated reports
- 🔄 Regular audits are recommended
- 👑 Requires administrative privileges
- 🪟 Windows-specific functionality
- 🔌 May require additional modules
- Add network vulnerability scanning
- Implement firewall rule analysis
- Include antivirus status check
- Add system update recommendations
- Generate HTML reports
Vira
- 🌐 GitHub: @ybigsur5
- 📧 Email: vira.cehoscp@gmail.com
- 📚 PowerShell documentation
- 🛡️ Windows Security Best Practices
- 👥 IAmJakoby Discord Group Community
This script is provided as-is without any warranties. Always test in a safe environment before using in production.