You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Windows_scripts/WindowsActivationValidation/README.md
+22-6Lines changed: 22 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,28 @@
2
2
3
3
This PowerShell script is designed to assist with diagnosing Windows licensing and connectivity issues on Azure virtual machines (VMs). It performs a series of checks to verify:
4
4
5
-
- Whether the system is running an Azure-specific Windows edition
6
-
- Connectivity to the Azure Instance Metadata Service (IMDS)
7
-
- Presence and validity of attested certificates
8
-
- The configured Key Management Service (KMS) endpoint
9
-
- TCP connectivity to the KMS server
10
-
- Windows activation status
5
+
6
+
## 🔧 What It Does
7
+
8
+
1.**WinRM Service Check**
9
+
- Ensures the `WinRM` service is running.
10
+
- Attempts to start the service if it's not already running.
11
+
12
+
2.**Azure Edition Detection**
13
+
- Detects if the machine is using an **Azure edition** of Windows.
14
+
- Verifies connectivity to the **Azure Instance Metadata Service (IMDS)**.
15
+
- Checks for any missing root certificates in the attestation document.
16
+
17
+
3.**KMS Endpoint Validation**
18
+
- Retrieves the configured KMS endpoint from the Windows registry.
19
+
- Falls back to the default Azure KMS endpoint if none is found.
20
+
- Tests TCP connectivity to the KMS endpoint on port `1688`.
21
+
22
+
4.**Windows Activation Check & Attempt**
23
+
- Checks current activation status.
24
+
- If not activated, attempts to activate using `slmgr.vbs`.
25
+
- Parses and displays activation error codes with direct links to Microsoft troubleshooting documentation.
0 commit comments