Created
January 10, 2019 06:03
-
-
Save OSDeploy/a2dfa9115ad99f707b3f072f96919da8 to your computer and use it in GitHub Desktop.
Quick introduction to Sessions.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Sessions PowerShell ISE GridView | |
[xml]$XmlDocument = Get-Content -Path "$env:WinDir\servicing\Sessions\Sessions.xml" | |
$XmlDocument.Sessions.Session.Tasks.Phase.package | Out-GridView | |
#Cumulative Updates | |
$XmlDocument.Sessions.Session.Tasks.Phase.package | ` | |
Where-Object {$_.id -like "*RollupFix*" -and $_.targetState -eq 'Installed'} | ` | |
Sort-Object id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment