# Get-RASScheduleTarget

## NAME

Get-RASScheduleTarget

## SYNOPSIS

Gets a list of a Schedule's target native hosts or ids.

## SYNTAX

**Get-RASScheduleTarget** \[[Id](#id-string)]\*\* *(uint)* -[ObjType](#objtype) {RDS | VDI | AVD} \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Get-RASScheduleTarget** \[\[-[Name](#name-string)]\*\* *(string)*] \[\[-[SiteId](#siteid-string)] *(uint)*] -[ObjType](#objtype) {RDS | VDI | AVD} \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Retrieves a list of a Schedule's target native hosts or ids.

## PARAMETERS

## Name (string)

Scheduler job name.

```
        Required?                    false

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID from which to retrieve the schedule job.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

Scheduler job ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ObjType ([ScheduleObjType](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/scheduleobjtype.md))

Schedule object type.

Possible values: RDS, VDI, AVD

```
        Required?                    true

        Position?                    named

        Default value                0

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

## INPUTS

-none-

## OUTPUTS

[TargetNativeHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/targetnativehost.md)

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Get-RASScheduleTarget -ObjType VDI -Id 1

Gets a list of a schedule's target native hosts or ids specified by schedule id.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Get-RASScheduleTarget -ObjType VDI -Name "My Schedule" -SiteId 1

Gets a list of a schedule's target native hosts or ids specified by schedule name and site id.

## RELATED LINKS

* [Add-RASScheduleTarget](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/add-rasscheduletarget.md)
* [Remove-RASScheduleTarget](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/remove-rasscheduletarget.md)


---

# 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://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasscheduletarget.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.
