# Invoke-RASStopOptimization

## NAME

Invoke-RASStopOptimization

## SYNOPSIS

Stop optimization on specified object.

## SYNTAX

**Invoke-RASStopOptimization** -[HostId](#hostid-string) *(string)* -[ObjType](#objtype) {AVDTemplate | RDSTemplate | VDITemplate | AVDHost | RDSHost | VDIHost} -[ProviderId](#providerid-string) *(uint)* \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Stops optimization on a specified object.

## PARAMETERS

## ObjType

([StopOptimizationObjType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/stopoptimizationobjtype)) Type of object to stop optimization for.

Possible values: AVDTemplate, RDSTemplate, VDITemplate, AVDHost, RDSHost, VDIHost

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ProviderId (uint)

Provider Id.

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HostId (string)

Host Id.

```
        Required?                    true

        Position?                    named

        Default value                

        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

-none-

## EXAMPLES

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

Invoke-RASCommand -Action StopOptimization -ObjType AVDHost -ProviderId 1 -HostId "f243a429-4502-4aa3-a1ed-0b61a32638e2"

Attempts to stop optimization of AVD Host with Id "f243a429-4502-4aa3-a1ed-0b61a32638e2" and under provider with Id 1.

## RELATED LINKS

* [Get-RASTemplate](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rastemplate)
* [Get-RASAVDHost](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasavdhost)
* [Get-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasrdshost)
* [Get-RASVDIHost](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasvdihost)
