# Get-RASImageOptimization

## NAME

Get-RASImageOptimization

## SYNOPSIS

Retrieves the Image Optimization settings.

## SYNTAX

**Get-RASImageOptimization**\
-[DefObjType](#defobjtype) {RDSDef |\
VDIDef | AVDSingleSessionDefaultSettings |\
AVDMultiSessionDefaultSettings | VDIGuestDef}\
\[[SiteId](#siteid-string) _(uint)_]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Get-RASImageOptimization** \[[Id](#id-string)]\*\*_(uint)_ -[ObjType](#objtype) {RDSHost |\
RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate |\
AVDTemplate}\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Get-RASImageOptimization**\
\[\[-[Name](#name-string)] _(string)_]\
\[\[-[SiteId](#siteid-string)] _(uint)_]\
-[ObjType](#objtype) {RDSHost | RDS |\
VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate}\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Retrieves the Image Optimization settings of RDS, RDSDefaults,\
VDITemplate or VDIDefaults.

## PARAMETERS

## Name (string)

The name or server for which to retrieve the Image Optimization\
settings.

```
        Required?                    false

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

The ID of a server for which to retrieve the Image Optimization\
settings.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID from which to retrieve the Image Optimization settings.

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

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ObjType

([OptimizationServerObjType](../types/optimizationserverobjtype))\
The Object Type for which to retrieve the Image Optimization settings.

Possible values: RDSHost, RDS, VDIHostPool, AVDHostPool, RDSTemplate,\
VDITemplate, AVDTemplate

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefObjType ([ServerDefObjType](../types/serverdefobjtype))

The Default Object Type for which to retrieve the Image Optimization\
settings.

Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings,\
AVDMultiSessionDefaultSettings, VDIGuestDef

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

[ImageOptimization](../types/imageoptimization)

## EXAMPLES

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

Get-RASImageOptimization -DefObjType RDSDef

Retrieves the Image Optimization of the RDS Default Settings.\
\*\*---------- EXAMPLE 2 ----------

Get-RASImageOptimization -Id 1 -ObjType VDITemplate

Retrieves the Image Optimization of the specified VDITemplate by Id.

## RELATED LINKS

* [Set-RASImageOptimization](set-rasimageoptimization)
