From e07a1e891f879d3639a594a5345915bdd1cecdcd Mon Sep 17 00:00:00 2001 From: jdickson289 Date: Tue, 4 Aug 2026 13:42:43 -0400 Subject: [PATCH] Clarify run location: rescue VM / Hyper-V host with broken disk attached offline --- .../TSSOfflineLogCollector/README_tssofflinelogcollector.md | 5 ++++- .../TSSOfflineLogCollector/tssofflinelogcollector.ps1 | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RunCommand/Windows/TSSOfflineLogCollector/README_tssofflinelogcollector.md b/RunCommand/Windows/TSSOfflineLogCollector/README_tssofflinelogcollector.md index 8299fe2..6cffb73 100644 --- a/RunCommand/Windows/TSSOfflineLogCollector/README_tssofflinelogcollector.md +++ b/RunCommand/Windows/TSSOfflineLogCollector/README_tssofflinelogcollector.md @@ -38,10 +38,13 @@ PowerShell script for rescue-VM scenarios that collects Windows troubleshooting - PowerShell 5.1 or higher - **Run from an elevated (Run as administrator) PowerShell console** -- The broken VM OS disk must already be attached to the rescue VM +- **Run from a *working* machine — an Azure rescue VM or a Hyper-V host — not from the broken VM itself** +- The broken VM's OS disk must already be attached to that working machine as an **offline data disk** ## Usage +> **Where to run this:** Execute the script on a working host that has the broken disk attached — an Azure **rescue VM** or a **Hyper-V host** with the broken VM's OS disk mounted as an offline data disk. The script reads the broken disk offline; it is **not** run on the broken VM. + From an elevated PowerShell console: ```powershell diff --git a/RunCommand/Windows/TSSOfflineLogCollector/tssofflinelogcollector.ps1 b/RunCommand/Windows/TSSOfflineLogCollector/tssofflinelogcollector.ps1 index c80f4c6..f1c6702 100644 --- a/RunCommand/Windows/TSSOfflineLogCollector/tssofflinelogcollector.ps1 +++ b/RunCommand/Windows/TSSOfflineLogCollector/tssofflinelogcollector.ps1 @@ -1,3 +1,4 @@ +# Run from a WORKING machine (Azure rescue VM or Hyper-V host) that has the broken VM's OS disk attached as an offline data disk. Do NOT run on the broken VM. [CmdletBinding(SupportsShouldProcess)] param( [Parameter(Mandatory = $false)]