This repository contains a PowerShell script (audit.ps1
) designed to perform a comprehensive audit of a Windows machine based on the Center for Internet Security (CIS) benchmarks. The script provides a menu-driven interface for easy navigation and execution of specific audit tasks.
- Clone the repository to your local machine:
git clone https://github.com/Gyrfalc0n/CIS-Windows-audit.git
- Navigate to the repository:
cd CIS-Windows-audit
- Execute the audit script:
.\audit.ps1
This will launch a menu with various options for auditing Windows settings.
The menu provides the following options:
-
Show general information about the machine: Displays general information about the Windows machine.
-
Show user information: Provides details about users on the system.
-
Show Windows Firewall information: Displays information about the Windows Firewall configuration.
-
Show minimization services: Shows details about services running on the system.
-
Audit the system according to CIS: Performs a comprehensive audit based on the CIS benchmarks for Windows.
-
Open results in Notepad: Opens the audit results in Notepad for easy review.
-
Quit: Exits the script.
The audit.ps1
script is organized into functions for each audit task. The main function, ShowMenu
, provides a user-friendly menu for selecting specific audit tasks. Each option in the menu corresponds to a function that performs a specific audit.
function ShowMenu {
# Menu options...
}
# Function definitions...
# Main script execution...
The audit results are stored in separate files within the results directory.
Contributions are welcome! If you find issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.