Skip to content

kegregoi/VMAssist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

230 Commits
 
 
 
 
 
 

Repository files navigation

VM assist

VM assist (Windows version) is a PowerShell script intended to be used to diagnose issues with the Azure Windows VM Guest Agent in addition to other issues related to the general health of the VM. This includes various information about the system such as firewall rules, running services, running drivers, installed software, NIC settings, and installed software, and installed Windows Updates.

Output of the checks can be viewed in the PowerShell window the script is ran in. Additionally running VM assist generates a detailed .htm report showing the results of each check it performs and suggests mitigations for issues it finds.

Prerequisites

  • Windows Server 2012 R2 and later versions of Windows
  • Windows Powershell 4.0+ and PowerShell 6.0+

Usage

Automatic download and run (recommended)

RDP into the VM and from an elevated PowerShell window run the following to download and run the script:

Set-ExecutionPolicy Bypass -Force
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/kegregoi/vmassist/refs/heads/main/vmassist.ps1 -OutFile vmassist.ps1) | .\vmassist.ps1

Manual download and run

Download:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://raw.githubusercontent.com/kegregoi/vmassist/refs/heads/main/vmassist.ps1 -OutFile vmassist.ps1

Run the script:

Set-ExecutionPolicy Bypass -Force
.\vmassist.ps1

Download from browser

  1. Download the file vmassist.ps1 from a web browser.
  2. From an elevated PowerShell window, ensure you're in the same directory that you downloaded the script to, then run the following to run the script:
Set-ExecutionPolicy Bypass -Force
.\vmassist.ps1

Analyzing output

The script will run a series of checks to analyze the health of the VM Guest Agent and check for various known configurations that could cause issues. Each check will either pass or fail in the PowerShell window.

Once completed, it will also generate a log file and an html report:

  • C:\logs\vmassist_*.log
  • C:\logs\vmassist_*.htm

The .log file will have a copy of the results that are displayed in the PowerShell window for later reference.

The .htm file is a report that shows all of the checks and findings along with information on how to mitigate any issues it found. It will also have additional information about the OS and the VM that can further assist in troubleshooting any issues that are found.

If you open a support request, please include both of the above files to aid your support representative in helping you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PowerShell 100.0%