> 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-rasrdshoststatus.md).

# Get-RASRDSHostStatus

## SYNOPSIS

Retrieves the RD Session Host server status information.

## SYNTAX

```powershell
Get-RASRDSHostStatus [[-Id] <uint>] [-StatusLevel {Level1 | Level2 | Level3}] [<CommonParameters>]
```

```powershell
Get-RASRDSHostStatus [[-InputObject] <RDSHost>] [-StatusLevel {Level1 | Level2 | Level3}]
 [<CommonParameters>]
```

```powershell
Get-RASRDSHostStatus [[-Server] <string>] [[-SiteId] <uint>]
 [-StatusLevel {Level1 | Level2 | Level3}] [<CommonParameters>]
```

## DESCRIPTION

Retrieves the RD Session Host status information and optionally session and application information.

## EXAMPLES

### Example 1

```powershell
Get-RASRDSHostStatus -Id 15
```

Retrieves the RD Session Host status information for the server with ID 15.

### Example 2

```powershell
Get-RASRDSHostStatus -Server MyRDSH -StatusLevel Level2
```

Retrieves the RD Session Host status and session information for the server named "MyRDSH".

### Example 3

```powershell
Get-RASRDSHostStatus -InputObject $RDSH -StatusLevel Level3
```

Retrieves the RD Session Host status, session, and application information for the server represented by the $RDSH object.

### Example 4

```powershell
Get-RASRDSHost -Id 15 | Get-RASRDSHostStatus -StatusLevel Level1
```

Retrieves the RD Session Host status information for the server represented by the object obtained from the pipeline output.

## PARAMETERS

### -Server

The name of the RD Session Host server for which to retrieve the information.

This must be the actual server name used in the RAS farm.

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

### -SiteId

Site ID from which to retrieve the specified RD Session Host server information.

If the parameter is omitted, the site ID of the Licensing Server will be used.

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

### -Id

The ID of the RD Session Host server. To obtain the ID, use the Get-RASRDSHost cmdlet.

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

### -InputObject

An object of type RDS representing the RD Session Host server.

To obtain the object, use the Get-RASRDSHost cmdlet.

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

```yaml
Type: RDSHost
Required: False
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -StatusLevel

Specifies the level of detail that should be retrieved.

Acceptable values: Level1 (status information only), Level2 (status and session information), Level3 (status, session, and application info).

Possible values: Level1, Level2, Level3

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

```yaml
Type: StatusLevel
Required: False
Position: Named
Default value: Level1
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

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

## OUTPUTS

### [RDSHostSysInfo](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdshostsysinfo.md) [RDSHostSysInfoSession](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdshostsysinfosession.md) [RDSHostSysInfoSessionApp](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdshostsysinfosessionapp.md)

## RELATED LINKS

* [New-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/new-rasrdshost.md)
* [Get-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasrdshost.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-rasrdshoststatus.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.
