diff --git a/map.json b/map.json index 6d2707e6..dc322ce8 100644 --- a/map.json +++ b/map.json @@ -129,6 +129,11 @@ "path": "src/windows/win-crowdstrike-fix-bootloop-v2.ps1", "description": "Workaround for machines stuck in boot loop due to corrupt crowdstrike falcon sensor 2024-07-19 by removing corrupt crowdstrike files, loading/unloading the registry hives, and removing regtrans-ms and txr.blf files under config\\TxR folder" }, + { + "id": "win-download-azurerescuetoolkit", + "path": "src/windows/win-download-azurerescuetoolkit.ps1", + "description": "Script to download AzureRescueToolkit in Rescue VM to Troubleshoot Boot Issue." + }, { "id": "win-crowdstrike-fix-bootloop-cvm", "path": "src/windows/win-crowdstrike-fix-bootloop-cvm.ps1", diff --git a/src/windows/win-download-azurerescuetoolkit.ps1 b/src/windows/win-download-azurerescuetoolkit.ps1 new file mode 100644 index 00000000..44156a39 --- /dev/null +++ b/src/windows/win-download-azurerescuetoolkit.ps1 @@ -0,0 +1,21 @@ +# Import VM Repair initialization +. $PSScriptRoot/common/setup/init.ps1 + +Log-Info "Downloading AzureRescueToolkit" + +New-Item -Path "C:\Temp" -ItemType Directory -Force + +Invoke-WebRequest ` + -Uri "https://raw.githubusercontent.com/AjeetSingh-1/vm-repair-tool/main/AzureRescueToolkit.ps1" ` + -OutFile "C:\Temp\AzureRescueToolkit.ps1" + +if (Test-Path "C:\Temp\AzureRescueToolkit.ps1") +{ + Log-Info "Download successful" + exit $STATUS_SUCCESS +} +else +{ + Log-Error "Download failed" + exit $STATUS_ERROR +}