Skip to content

Commit 728f072

Browse files
author
Theodore Chang
authored
Merge pull request #99 from Azure/adsandor/fixes2
Cleanup comment format
2 parents d6b2847 + 7ca87f3 commit 728f072

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/windows/win-get-patches.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
######################################################################################################
2-
<#
2+
#
33
# .SYNOPSIS
44
# Get installed Windows patches for the nested Hyper-V server on a Rescue VM.
55
#
66
# .DESCRIPTION
77
# Get installed Windows patches for the nested Hyper-V server on a Rescue VM using DISM. This will be helpful if the attached OS disk is from a VM that is in a nonboot state due to corrupted/failing updates.
88
# Collects patches on the attached OS disk using DISM to verify which ones have successfully installed and which ones are failing to install. Prints them to the console and saves them to the rescue VM as a text file.
9-
10-
Public doc: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-operating-system-package-servicing-command-line-options?view=windows-11#get-packages
9+
# Public doc: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-operating-system-package-servicing-command-line-options?view=windows-11#get-packages
1110

1211
# .RESOLVES
1312
# Collecting patches that fail to install is difficult when the OS refuses to boot. This will be helpful to run on the repair VM if the attached OS disk is from a VM that is in a nonboot state due to corrupted/failing updates as the
1413
# failing package can then be manually passed to win-remove-patch.
15-
1614
#
1715
# .EXAMPLE
1816
# <# Get installed patches #>
@@ -23,7 +21,7 @@ Public doc: https://learn.microsoft.com/en-us/windows-hardware/manufacture/deskt
2321
#
2422
# .VERSION
2523
# v0.1: Initial commit
26-
#>
24+
#
2725
#######################################################################################################
2826

2927
# Initialize script

0 commit comments

Comments
 (0)