# fixsys-spb/operpatch architecture

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

- Interactive diagram: https://gitdiagram.com/fixsys-spb/operpatch
- Repository: https://github.com/fixsys-spb/operpatch

## Overview

Check-RdpPatch is a Windows diagnostic utility for determining whether a problematic cumulative update and its fix are installed. Users launch the GUI or console version, the tool detects the Windows version and checks update status, then reports a verdict and a catalog link when a fix is needed. The README documents five ordered detection sources, GUI re-check and link actions, and a downloadable executable. Source excerpts were unavailable, so relationships below reflect README statements rather than inspected implementation calls.

Main entry points: [`Check-RdpPatch.ps1`](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1) (OS version detection), [`Check-RdpPatch-GUI.ps1`](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch-GUI.ps1) (PowerShell GUI), [`Check-RdpPatch.exe`](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.exe) (Ready-run GUI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch interfaces"]
  node_exe["Ready-run GUI<br/>[Check-RdpPatch.exe]"]
  node_gui["PowerShell GUI"]
  node_console["Console checker<br/>[Check-RdpPatch.ps1]"]
end

subgraph group_diagnostics["System diagnostics"]
  node_version["OS version detection<br/>[Check-RdpPatch.ps1]"]
  node_ubr["Registry UBR<br/>[Check-RdpPatch.ps1]"]
  node_hotfix["Get-HotFix<br/>[Check-RdpPatch.ps1]"]
  node_wua["WUA history<br/>[Check-RdpPatch.ps1]"]
  node_dism["DISM packages<br/>[Check-RdpPatch.ps1]"]
  node_winpkg["Windows packages<br/>[Check-RdpPatch.ps1]"]
end

subgraph group_guidance["Results and guidance"]
  node_verdict["Update verdict<br/>[Check-RdpPatch.ps1]"]
  node_guiresult["GUI results and actions"]
end

node_user(("Windows user"))
node_catalog["Microsoft Update Catalog"]

node_user -->|"launches"| node_exe
node_user -->|"launches"| node_gui
node_user -->|"launches"| node_console
node_exe -->|"runs GUI"| node_gui
node_gui -->|"checks system"| node_version
node_console -->|"checks system"| node_version
node_version -->|"checks update"| node_ubr
node_version -->|"checks update"| node_hotfix
node_version -->|"checks update"| node_wua
node_version -->|"checks update"| node_dism
node_version -->|"checks update"| node_winpkg
node_gui -->|"reports result"| node_verdict
node_console -->|"reports result"| node_verdict
node_gui -->|"shows results"| node_guiresult
node_guiresult -->|"opens link"| node_catalog
node_guiresult -->|"rechecks"| node_version

click node_exe "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.exe"
click node_gui "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch-GUI.ps1"
click node_console "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_version "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_ubr "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_hotfix "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_wua "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_dism "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_winpkg "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_verdict "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1"
click node_guiresult "https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch-GUI.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_exe,node_gui,node_console,node_user toneBlue
class node_version,node_ubr,node_hotfix,node_wua,node_dism,node_winpkg toneAmber
class node_verdict,node_guiresult toneMint
class node_catalog toneIndigo
```

## Components

### Launch interfaces

- [Ready-run GUI](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.exe): `Check-RdpPatch.exe`
- [PowerShell GUI](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch-GUI.ps1): `Check-RdpPatch-GUI.ps1`
- [Console checker](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`

### System diagnostics

- [OS version detection](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [Registry UBR](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [Get-HotFix](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [WUA history](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [DISM packages](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [Windows packages](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`

### Results and guidance

- [Update verdict](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch.ps1): `Check-RdpPatch.ps1`
- [GUI results and actions](https://github.com/fixsys-spb/operpatch/blob/main/Check-RdpPatch-GUI.ps1): `Check-RdpPatch-GUI.ps1`

### Other components

- **Windows user**
- **Microsoft Update Catalog**

## Connections

- Windows user → Ready-run GUI: launches (evidence: `README.md`)
- Windows user → PowerShell GUI: launches (evidence: `README.md`)
- Windows user → Console checker: launches (evidence: `README.md`)
- Ready-run GUI → PowerShell GUI: runs GUI (evidence: `README.md`)
- PowerShell GUI → OS version detection: checks system (evidence: `README.md`)
- Console checker → OS version detection: checks system (evidence: `README.md`)
- OS version detection → Registry UBR: checks update (evidence: `README.md`)
- OS version detection → Get-HotFix: checks update (evidence: `README.md`)
- OS version detection → WUA history: checks update (evidence: `README.md`)
- OS version detection → DISM packages: checks update (evidence: `README.md`)
- OS version detection → Windows packages: checks update (evidence: `README.md`)
- PowerShell GUI → Update verdict: reports result (evidence: `README.md`)
- Console checker → Update verdict: reports result (evidence: `README.md`)
- PowerShell GUI → GUI results and actions: shows results (evidence: `README.md`)
- GUI results and actions → Microsoft Update Catalog: opens link (evidence: `README.md`)
- GUI results and actions → OS version detection: rechecks (evidence: `README.md`)
