> 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/rasadmin/cmdlets/get-raspubitemstatus.md).

# Get-RASPubItemStatus

## SYNOPSIS

Retrieves the status of one or multiple published resources session.

## SYNTAX

```powershell
Get-RASPubItemStatus [-GroupId <uint>] [-Id <uint>] [-IP <string>] [-Session <uint>]
 [-SessionType {Desktop | PublishedApps | Application | VDI | VDIApp | PC | PCApp | Admin | Unknown | RemoteApps | DirectRDP | All}]
 [-SiteId <uint>]
 [-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
 [-ThemeId <uint>] [-User <string>] [<CommonParameters>]
```

```powershell
Get-RASPubItemStatus -SessionHostId <string> -Source {RDS | VDI | AVD | All} [-GroupId <uint>]
 [-IP <string>] [-Session <uint>] [-SiteId <uint>]
 [-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
 [-ThemeId <uint>] [-User <string>] [<CommonParameters>]
```

```powershell
Get-RASPubItemStatus -SessionHostName <string> -Source {RDS | VDI | AVD | All} [-GroupId <uint>]
 [-IP <string>] [-Session <uint>] [-SiteId <uint>]
 [-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
 [-ThemeId <uint>] [-User <string>] [<CommonParameters>]
```

```powershell
Get-RASPubItemStatus [-GroupId <uint>] [-IP <string>] [-Session <uint>] [-SiteId <uint>]
 [-Source {RDS | VDI | AVD | All}]
 [-State {Active | Connected | ConnectQuery | Shadow | Disconnected | Idle | Listen | Reset | Down | Init | All}]
 [-ThemeId <uint>] [-User <string>] [<CommonParameters>]
```

## DESCRIPTION

Retrieves the status of one or multiple published resources session.

## EXAMPLES

### Example 1

```powershell
Get-RASPubItemStatus
```

Retrieves the status of all the available published resources.

### Example 2

```powershell
Get-RASPubItemStatus -Id 11
```

Retrieves the status of a published resource specified by ID.

### Example 3

```powershell
Get-RASPubItemStatus -Source RDS
```

Retrieves the published resources status for the available RDS Sessions.

### Example 4

```powershell
Get-RASPubItemStatus -Source RDS -SessionHost "MyServer"
```

Retrieves the published resources status for the RDS Sessions pertaining to the specified server.

### Example 5

```powershell
Get-RASPubItemStatus -Source VDI -SiteId 1
```

Retrieves the published resources status for the VDI Sessions and SiteId 1.

### Example 6

```powershell
Get-RASPubItemStatus -Source VDI -SessionHostId 1
```

Retrieves the published resources status for VDI Session and SessionHostId 1.

## PARAMETERS

### -Id

The app ID for which to retrieve the information (optional).

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
Accept pipeline input: False
Accept wildcard characters: False
```

### -SessionType

The type of Remote Desktop Session.

Possible values: Desktop, PublishedApps, Application, VDI, VDIApp, PC, PCApp, Admin, Unknown, RemoteApps, DirectRDP, All

Type reference: [SessionType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/sessiontype.md)

```yaml
Type: SessionType
Required: False
Position: Named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```

### -Session

RAS session ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
Accept pipeline input: False
Accept wildcard characters: False
```

### -SiteId

Site ID for which to retrieve the app status information (optional).

```yaml
Type: uint
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -Source

Remote Desktop Session source for which to retrieve the app status information.

Possible values: RDS, VDI, AVD, All

Type reference: [RDSessionSource](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdsessionsource.md)

```yaml
Type: RDSessionSource
Required: True
Position: Named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```

### -SessionHostId

The Host ID of the server for which to retrieve the app status information (optional).

```yaml
Type: string
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SessionHostName

The name of the host to filter the app status info list (optional).

```yaml
Type: string
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -State

The session state to filter the app status info list (optional).

Possible values: Active, Connected, ConnectQuery, Shadow, Disconnected, Idle, Listen, Reset, Down, Init, All

Type reference: [SessionState](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/sessionstate.md)

```yaml
Type: SessionState
Required: False
Position: Named
Default value: All
Accept pipeline input: False
Accept wildcard characters: False
```

### -User

User to filter the app status info list (optional).

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IP

The server IP Address to filter the app status info list (optional).

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ThemeId

The Theme ID for which to retrieve the information (optional).

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
Accept pipeline input: False
Accept wildcard characters: False
```

### -GroupId

The RDS Group ID for which to retrieve the information (optional).

```yaml
Type: uint
Required: False
Position: Named
Default value: 4294967295
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### None

## OUTPUTS

### [PubItemStatus](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubitemstatus.md)

## RELATED LINKS

* [Get-RASPubItemStatus](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-raspubitemstatus.md)


---

# 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/rasadmin/cmdlets/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.
