Skip to content

Instantly share code, notes, and snippets.

@OSDeploy
Created January 10, 2019 06:03
Show Gist options
  • Save OSDeploy/a2dfa9115ad99f707b3f072f96919da8 to your computer and use it in GitHub Desktop.
Save OSDeploy/a2dfa9115ad99f707b3f072f96919da8 to your computer and use it in GitHub Desktop.
Quick introduction to Sessions.xml
#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