This is a simple script (Windows Powershell or Linux Bash) to run a quick system audit that will give an overview of the system, checking the OS version, current and logged-in users, local user accounts, open ports, running services, disk and memory usage.
System Audit Script
Purpose: Lightweight system audit script to quickly gather basic sysem secuirty and configuration data.
Checks Include:
- OS Version
- Current and logged-in users
- Local user accounts
- Open ports
- Running services
- Disk and memory usage
Use Case:
- Workstation/endpoint reviews
- Intial system reports
- Support for basic security audits
Supported Platforms:
- Linux (Bash)
- Windows (PowerShell)
Usage:
Linux: chmod +x system_audit.sh ./system_audit.sh
Windows: .\system_audit.ps1
NOTE: To save the output of the script to a file run, addendum the script with > example_report_name.txt (txt or your preferred document type)
Example:
Linux terminal: ./system_audit.sh > audit_report.docx
OR
PowerShell terminal: .\system_audit.ps1 > audit_report.docx