# Get-SessionsXml

## **Get-Help -Full**

```
PS C:\> Get-Help -Full Get-OSDSessions

NAME
    Get-OSDSessions
    
SYNOPSIS
    Returns the Session.xml Updates that have been applied to an Operating System
    
    
SYNTAX
    Get-OSDSessions [[-Path] <String>] [<CommonParameters>]
    
    
DESCRIPTION
    Returns the Session.xml Updates that have been applied to an Operating System
    

PARAMETERS
    -Path <String>
        Specifies the full path to the root directory of the offline Windows image that you will service
        Or Path of the Sessions.xml file
        If this value is not set, the running OS Sessions.xml will be processed
        
        Required?                    false
        Position?                    1
        Default value                "$env:SystemRoot\Servicing\Sessions\Sessions.xml"
        Accept pipeline input?       true (ByPropertyName)
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
NOTES
    
    
        19.11.20    Path now supports Mounted WIM Path
        19.10.14    David Segura @SeguraOSD Initial Release
    
    
RELATED LINKS
    https://osd.osdeploy.com/module/functions/get-osdsessions
```

## Running OS

![](/files/-LuBGFf0zUcItwDURmsl)

## Mounted Image

![](/files/-Lu8XA5bCnpI7LGE_coZ)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osd.osdeploy.com/docs/trash/general/get-osdsessions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
