Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Windows Security Assessment Script - README

This PowerShell script performs a comprehensive security scan on a Windows machine, analyzing antivirus, firewall, network security, system hardening, and user security. It generates an HTML report and exports data to CSV.

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Usage
  4. Configuration
  5. Features
  6. Export Options
  7. Sample Output
  8. Troubleshooting
  9. Contributing

Introduction

This script assesses Windows security, covering:

  • Antivirus protection
  • Windows updates
  • Network security
  • Firewall settings
  • System hardening (e.g., UAC, PowerShell policy)
  • User security (e.g., password policies)

It generates a security score and provides improvement recommendations.

Prerequisites

  • PowerShell: v5.1 or later.
  • Administrator privileges.
  • Internet access for Windows updates and third-party antivirus checks.

Usage

Run the script using the following command:

.\SecurityAssessment.ps1

Switches

  • -Verbose: Outputs detailed logs.
  • -DetailedReport: Generates and opens the HTML report.
  • -ExportCSV: Exports findings to CSV.

Example:

.\SecurityAssessment.ps1 -Verbose -ExportCSV

Configuration

Global variables define paths for the HTML report, log, security charts, and CSV file.

Features

Key Checks:

  • Antivirus: Status of Windows Defender and third-party AV.
  • Updates: Pending Windows updates.
  • Firewall: Status of firewall for different profiles.
  • Network: Open ports, network interfaces, and DNS servers.
  • Hardening: UAC, PowerShell policies, and SMBv1 settings.
  • User Security: Password policies, blank passwords, etc.

Export Options

  • HTML Report: Includes a security score, charts, findings, and recommendations.
  • CSV Export: Contains findings with categories, checks, status, and recommendations.
  • Security Charts: Pie and bar charts showing score distributions.

Sample Output

The HTML report includes:

  • Overall security score.
  • Detailed findings table.
  • Security charts.

The CSV file contains:

  • Category, Check, Status, Points, Details, and Recommendations.

Troubleshooting

  • Permissions: Run with administrator privileges.
  • Internet: Some checks require internet access.

Contributing

To contribute:

  1. Fork the repo.
  2. Create a branch.
  3. Commit and push.
  4. Submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages