# academyf6team/zaher-system-maintenance architecture

> Architecture diagram of the GitHub repository academyf6team/zaher-system-maintenance, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/academyf6team/zaher-system-maintenance
- Repository: https://github.com/academyf6team/zaher-system-maintenance

## Overview

Zaher System Maintenance is a local Windows maintenance and security-auditing tool, implemented in PowerShell and Batch. The documented workflow is to launch the batch file with administrator privileges, choose an option, and receive an audit, maintenance action, or security change. The PowerShell script is also documented as supporting AuditOnly mode. README feature descriptions establish the product branches below; source excerpts were unavailable, so internal calls and implementation details are not asserted.

Main entry points: [`Zaher-SystemMaintenance-Secure.ps1`](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1) (PowerShell tool), [`Zaher-SystemMaintenance-Secure.bat`](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.bat) (Batch launcher)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and Control"]
  node_launcher["Batch launcher"]
  node_tool["PowerShell tool"]
end

subgraph group_security["Security Assessment"]
  node_score["Security score"]
  node_advanced["Advanced audit"]
  node_hardware["Hardware security"]
  node_hosts["Hosts and shares"]
  node_baseline["Baseline comparison"]
  node_expanded["Extended audits"]
end

subgraph group_actions["Maintenance and Response"]
  node_hardening["Safe hardening"]
  node_rollback["Backup and rollback"]
  node_snapshot["Incident snapshot"]
  node_quickfix["Quick maintenance"]
end

node_operator(("Windows operator"))

node_operator -->|"runs as admin"| node_launcher
node_operator -->|"runs audit-only"| node_tool
node_launcher -.->|"launches tool"| node_tool
node_tool -->|"provides assessment"| node_score
node_tool -->|"offers audit"| node_advanced
node_tool -->|"checks security"| node_hardware
node_tool -->|"audits hosts"| node_hosts
node_tool -->|"compares state"| node_baseline
node_tool -->|"offers audit"| node_expanded
node_tool -->|"offers hardening"| node_hardening
node_tool -->|"supports rollback"| node_rollback
node_tool -->|"takes snapshot"| node_snapshot
node_tool -->|"offers repairs"| node_quickfix

click node_launcher "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.bat"
click node_tool "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_score "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_advanced "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_hardware "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_hosts "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_baseline "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_expanded "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_hardening "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_rollback "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_snapshot "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"
click node_quickfix "https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_launcher,node_tool toneBlue
class node_score,node_advanced,node_hardware,node_hosts,node_baseline,node_expanded toneAmber
class node_hardening,node_rollback,node_snapshot,node_quickfix toneMint
class node_operator toneIndigo
```

## Components

### Launch and Control

- [Batch launcher](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.bat): `Zaher-SystemMaintenance-Secure.bat`
- [PowerShell tool](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`

### Security Assessment

- [Security score](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Advanced audit](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Hardware security](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Hosts and shares](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Baseline comparison](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Extended audits](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`

### Maintenance and Response

- [Safe hardening](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Backup and rollback](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Incident snapshot](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`
- [Quick maintenance](https://github.com/academyf6team/zaher-system-maintenance/blob/main/Zaher-SystemMaintenance-Secure.ps1): `Zaher-SystemMaintenance-Secure.ps1`

### Other components

- **Windows operator**

## Connections

- Windows operator → Batch launcher: runs as admin (evidence: `README.md`)
- Windows operator → PowerShell tool: runs audit-only (evidence: `README.md`)
- Batch launcher → PowerShell tool: launches tool
- PowerShell tool → Security score: provides assessment (evidence: `README.md`)
- PowerShell tool → Advanced audit: offers audit (evidence: `README.md`)
- PowerShell tool → Hardware security: checks security (evidence: `README.md`)
- PowerShell tool → Hosts and shares: audits hosts (evidence: `README.md`)
- PowerShell tool → Baseline comparison: compares state (evidence: `README.md`)
- PowerShell tool → Extended audits: offers audit (evidence: `README.md`)
- PowerShell tool → Safe hardening: offers hardening (evidence: `README.md`)
- PowerShell tool → Backup and rollback: supports rollback (evidence: `README.md`)
- PowerShell tool → Incident snapshot: takes snapshot (evidence: `README.md`)
- PowerShell tool → Quick maintenance: offers repairs (evidence: `README.md`)
