> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/v19/parallels-ras-powershell-admin-module/commands/get-raspubitemstatus.md).

# Get-RASPubItemStatus

### NAME

Get-RASPubItemStatus\ <br>

### SYNOPSIS

Retrieves the status of one or multiple published resources session.\ <br>

### SYNTAX

Get-RASPubItemStatus -[SessionType](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SessionType) {Desktop | PublishedApps | Application | VDI | VDIApp | PC | PCApp | Admin | Unknown | RemoteApps | DirectRDP | All} \[-[GroupId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#GroupId) *\<uint>*] \[-[Id](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Id) *\<uint>*] \[-[IP](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#IP) *\<string>*] \[-[Session](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Session) *\<uint>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SiteId) *\<uint>*] \[-[State](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#State) {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}] \[-[ThemeId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#ThemeId) *\<uint>*] \[-[User](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#User) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#CommonParameters)*>*]\
\
Get-RASPubItemStatus -[SessionHostId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SessionHostId) *\<string>* -[Source](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Source) {RDS | VDI | AVD | All} \[-[GroupId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#GroupId) *\<uint>*] \[-[IP](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#IP) *\<string>*] \[-[Session](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Session) *\<uint>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SiteId) *\<uint>*] \[-[State](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#State) {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}] \[-[ThemeId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#ThemeId) *\<uint>*] \[-[User](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#User) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#CommonParameters)*>*]\
\
Get-RASPubItemStatus -[SessionHostName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SessionHostName) *\<string>* -[Source](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Source) {RDS | VDI | AVD | All} \[-[GroupId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#GroupId) *\<uint>*] \[-[IP](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#IP) *\<string>*] \[-[Session](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Session) *\<uint>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SiteId) *\<uint>*] \[-[State](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#State) {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}] \[-[ThemeId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#ThemeId) *\<uint>*] \[-[User](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#User) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#CommonParameters)*>*]\
\
Get-RASPubItemStatus \[-[GroupId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#GroupId) *\<uint>*] \[-[IP](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#IP) *\<string>*] \[-[Session](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Session) *\<uint>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#SiteId) *\<uint>*] \[-[Source](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#Source) {RDS | VDI | AVD | All}] \[-[State](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#State) {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}] \[-[ThemeId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#ThemeId) *\<uint>*] \[-[User](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#User) *\<string>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Get-RASPubItemStatus.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Retrieves the status of one or multiple published resources session.\ <br>

### PARAMETERS

\
-**Id \<uint>**\
The app ID for which to retrieve the information (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                4294967295
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SessionType <**[**SessionType**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/SessionType.html)**>**\
The type of Remote Desktop Session.\
\
Possible values: Desktop, PublishedApps, Application, VDI, VDIApp, PC, PCApp, Admin, Unknown, RemoteApps, DirectRDP, All\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                All
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Session \<uint>**\
RAS session ID.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                4294967295
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SiteId \<uint>**\
Site ID for which to retrieve the app status information (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Source <**[**RDSessionSource**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RDSessionSource.html)**>**\
Remote Desktop Session source for which to retrieve the app status information.\
\
Possible values: RDS, VDI, AVD, All\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                All
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SessionHostId \<string>**\
The Host ID of the server for which to retrieve the app status information (optional).\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SessionHostName \<string>**\
The name of the host to filter the app status info list (optional).\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**State <**[**SessionState**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/SessionState.html)**>**\
The session state to filter the app status info list (optional).\
\
Possible values: Active, Connected, ConnectQuery, Shadow, Disconnected, Idle, Listen, Reset, Down, Init, All\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                All
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**User \<string>**\
User to filter the app status info list (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**IP \<string>**\
The server IP Address to filter the app status info list (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ThemeId \<uint>**\
The Theme ID for which to retrieve the information (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                4294967295
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**GroupId \<uint>**\
The RDS Group ID for which to retrieve the information (optional).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                4294967295
```

```
        Accept pipeline input?       false
```

```
        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 . 
```

<br>

### INPUTS

-none-

### OUTPUTS

[PubItemStatus\[\]](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubItemStatus\[].html)

### EXAMPLES

\
**---------- EXAMPLE 1 ----------**\
\
Get-RASPubItemStatus\
\
Retrieves the status of all the available published resources.\
**---------- EXAMPLE 2 ----------**\
\
Get-RASPubItemStatus -Id 11\
\
Retrieves the status of a published resource specified by ID.\
**---------- EXAMPLE 3 ----------**\
\
Get-RASPubItemStatus -Source RDS\
\
Retrieves the published resources status for the available RDS Sessions.\
**---------- EXAMPLE 4 ----------**\
\
Get-RASPubItemStatus -Source RDS -SessionHost "MyServer"\
\
Retrieves the published resources status for the RDS Sessions pertaining to the specified server.\
**---------- EXAMPLE 5 ----------**\
\
Get-RASPubItemStatus -Source VDI -SiteId 1\
\
Retrieves the published resources status for the VDI Sessions and SiteId 1.\
**---------- EXAMPLE 6 ----------**\
\
Get-RASPubItemStatus -Source VDI -SessionHostId 1\
\
Retrieves the published resources status for VDI Session and SessionHostId 1.<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/v19/parallels-ras-powershell-admin-module/commands/get-raspubitemstatus.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
