> 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/set-rasimageoptimization.md).

# Set-RASImageOptimization

## SYNOPSIS

Modifies the Image Optimization settings.

## SYNTAX

```powershell
Set-RASImageOptimization
 -DefObjType {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings}
 [-AdditionalErrorReport <bool>] [-AnimateControlSelectElements <bool>] [-AnimateTaskbar <bool>]
 [-AnimateWindowsWhenMinimizingMaximizing <bool>] [-Arguments <string>] [-CleanupSystemFiles <bool>]
 [-CleanupTemporaryFileLogs <bool>] [-CleanupWinSxSFolder <bool>] [-Command <string>]
 [-CommonProgramGroups <bool>] [-Cortana <bool>] [-CustomScriptEnabled <bool>]
 [-DeleteUserProfiles <bool>] [-DirCacheMax <uint>] [-DirectoryCacheEnable <bool>]
 [-DisableIPv6CompEnable <bool>] [-DisableIPv6ToIPv4 <bool>] [-DisableIsaTap <bool>]
 [-DisableRealTimeProtection <bool>] [-DisableTCP <bool>] [-DiskCleanupEnabled <bool>]
 [-DormantFileLimit <uint>] [-DormantFileLimitEnable <bool>] [-DropShadowsIcon <bool>]
 [-EnableOptimization <bool>] [-EnablePeek <bool>] [-ExcludeExtension <string[]>]
 [-ExcludeFolders <string[]>] [-ExcludeProcesses <string[]>] [-FadeOutMenuItems <bool>]
 [-FadeSlideMenus <bool>] [-FadeSlideToolTips <bool>] [-FileInfoCache <uint>]
 [-FileInfoCacheEnable <bool>] [-FileNotFoundCache <uint>] [-FileNotFoundCacheEnable <bool>]
 [-Force <SwitchParameter>] [-Hibernate <bool>] [-InitDir <string>]
 [-MicrosoftConsumerExperience <bool>] [-NetworkPerformanceEnabled <bool>]
 [-OptimizationType {Automatic | Manual}] [-PartialStartLayoutContent <string>]
 [-PartialStartMenu <bool>] [-Password <SecureString>] [-RegistryEnabled <bool>]
 [-RemoveOneDrive <bool>] [-SaveTaskbarThumbnail <bool>] [-ShadowUnderWindows <bool>]
 [-ShowShadowUnderMouse <bool>] [-ShowTranslucentSelection <bool>]
 [-ShowWindowsContentWhilstDragging <bool>] [-SiteId <uint>] [-SlideOpenComboBoxes <bool>]
 [-SmoothEdgesScreenFonts <bool>] [-SmoothScrollListBoxes <bool>] [-SystemRestore <bool>]
 [-TeleCollection <bool>] [-ThumbnailsInsteadOfIcons <bool>] [-Tiles <bool>] [-User <string>]
 [-VisualEffectsEnabled <bool>]
 [-VisualEffectsTypes {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestPerformance | Custom}]
 [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}]
 [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>]
 [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>]
 [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
```

```powershell
Set-RASImageOptimization [-Id] <uint>
 -ObjType {RDSHost | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate}
 [-AdditionalErrorReport <bool>] [-AnimateControlSelectElements <bool>] [-AnimateTaskbar <bool>]
 [-AnimateWindowsWhenMinimizingMaximizing <bool>] [-Arguments <string>] [-CleanupSystemFiles <bool>]
 [-CleanupTemporaryFileLogs <bool>] [-CleanupWinSxSFolder <bool>] [-Command <string>]
 [-CommonProgramGroups <bool>] [-Cortana <bool>] [-CustomScriptEnabled <bool>]
 [-DeleteUserProfiles <bool>] [-DirCacheMax <uint>] [-DirectoryCacheEnable <bool>]
 [-DisableIPv6CompEnable <bool>] [-DisableIPv6ToIPv4 <bool>] [-DisableIsaTap <bool>]
 [-DisableRealTimeProtection <bool>] [-DisableTCP <bool>] [-DiskCleanupEnabled <bool>]
 [-DormantFileLimit <uint>] [-DormantFileLimitEnable <bool>] [-DropShadowsIcon <bool>]
 [-EnableOptimization <bool>] [-EnablePeek <bool>] [-ExcludeExtension <string[]>]
 [-ExcludeFolders <string[]>] [-ExcludeProcesses <string[]>] [-FadeOutMenuItems <bool>]
 [-FadeSlideMenus <bool>] [-FadeSlideToolTips <bool>] [-FileInfoCache <uint>]
 [-FileInfoCacheEnable <bool>] [-FileNotFoundCache <uint>] [-FileNotFoundCacheEnable <bool>]
 [-Force <SwitchParameter>] [-Hibernate <bool>] [-InitDir <string>]
 [-MicrosoftConsumerExperience <bool>] [-NetworkPerformanceEnabled <bool>]
 [-OptimizationType {Automatic | Manual}] [-PartialStartLayoutContent <string>]
 [-PartialStartMenu <bool>] [-Password <SecureString>] [-RegistryEnabled <bool>]
 [-RemoveOneDrive <bool>] [-SaveTaskbarThumbnail <bool>] [-ShadowUnderWindows <bool>]
 [-ShowShadowUnderMouse <bool>] [-ShowTranslucentSelection <bool>]
 [-ShowWindowsContentWhilstDragging <bool>] [-SlideOpenComboBoxes <bool>]
 [-SmoothEdgesScreenFonts <bool>] [-SmoothScrollListBoxes <bool>] [-SystemRestore <bool>]
 [-TeleCollection <bool>] [-ThumbnailsInsteadOfIcons <bool>] [-Tiles <bool>] [-User <string>]
 [-VisualEffectsEnabled <bool>]
 [-VisualEffectsTypes {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestPerformance | Custom}]
 [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}]
 [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>]
 [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>]
 [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
```

```powershell
Set-RASImageOptimization [-InputObject] <RASSerilazableObj> [-AdditionalErrorReport <bool>]
 [-AnimateControlSelectElements <bool>] [-AnimateTaskbar <bool>]
 [-AnimateWindowsWhenMinimizingMaximizing <bool>] [-Arguments <string>] [-CleanupSystemFiles <bool>]
 [-CleanupTemporaryFileLogs <bool>] [-CleanupWinSxSFolder <bool>] [-Command <string>]
 [-CommonProgramGroups <bool>] [-Cortana <bool>] [-CustomScriptEnabled <bool>]
 [-DeleteUserProfiles <bool>] [-DirCacheMax <uint>] [-DirectoryCacheEnable <bool>]
 [-DisableIPv6CompEnable <bool>] [-DisableIPv6ToIPv4 <bool>] [-DisableIsaTap <bool>]
 [-DisableRealTimeProtection <bool>] [-DisableTCP <bool>] [-DiskCleanupEnabled <bool>]
 [-DormantFileLimit <uint>] [-DormantFileLimitEnable <bool>] [-DropShadowsIcon <bool>]
 [-EnableOptimization <bool>] [-EnablePeek <bool>] [-ExcludeExtension <string[]>]
 [-ExcludeFolders <string[]>] [-ExcludeProcesses <string[]>] [-FadeOutMenuItems <bool>]
 [-FadeSlideMenus <bool>] [-FadeSlideToolTips <bool>] [-FileInfoCache <uint>]
 [-FileInfoCacheEnable <bool>] [-FileNotFoundCache <uint>] [-FileNotFoundCacheEnable <bool>]
 [-Force <SwitchParameter>] [-Hibernate <bool>] [-InitDir <string>]
 [-MicrosoftConsumerExperience <bool>] [-NetworkPerformanceEnabled <bool>]
 [-OptimizationType {Automatic | Manual}] [-PartialStartLayoutContent <string>]
 [-PartialStartMenu <bool>] [-Password <SecureString>] [-RegistryEnabled <bool>]
 [-RemoveOneDrive <bool>] [-SaveTaskbarThumbnail <bool>] [-ShadowUnderWindows <bool>]
 [-ShowShadowUnderMouse <bool>] [-ShowTranslucentSelection <bool>]
 [-ShowWindowsContentWhilstDragging <bool>] [-SlideOpenComboBoxes <bool>]
 [-SmoothEdgesScreenFonts <bool>] [-SmoothScrollListBoxes <bool>] [-SystemRestore <bool>]
 [-TeleCollection <bool>] [-ThumbnailsInsteadOfIcons <bool>] [-Tiles <bool>] [-User <string>]
 [-VisualEffectsEnabled <bool>]
 [-VisualEffectsTypes {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestPerformance | Custom}]
 [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}]
 [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>]
 [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>]
 [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
```

```powershell
Set-RASImageOptimization [-Name] <string> [[-SiteId] <uint>]
 -ObjType {RDSHost | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate}
 [-AdditionalErrorReport <bool>] [-AnimateControlSelectElements <bool>] [-AnimateTaskbar <bool>]
 [-AnimateWindowsWhenMinimizingMaximizing <bool>] [-Arguments <string>] [-CleanupSystemFiles <bool>]
 [-CleanupTemporaryFileLogs <bool>] [-CleanupWinSxSFolder <bool>] [-Command <string>]
 [-CommonProgramGroups <bool>] [-Cortana <bool>] [-CustomScriptEnabled <bool>]
 [-DeleteUserProfiles <bool>] [-DirCacheMax <uint>] [-DirectoryCacheEnable <bool>]
 [-DisableIPv6CompEnable <bool>] [-DisableIPv6ToIPv4 <bool>] [-DisableIsaTap <bool>]
 [-DisableRealTimeProtection <bool>] [-DisableTCP <bool>] [-DiskCleanupEnabled <bool>]
 [-DormantFileLimit <uint>] [-DormantFileLimitEnable <bool>] [-DropShadowsIcon <bool>]
 [-EnableOptimization <bool>] [-EnablePeek <bool>] [-ExcludeExtension <string[]>]
 [-ExcludeFolders <string[]>] [-ExcludeProcesses <string[]>] [-FadeOutMenuItems <bool>]
 [-FadeSlideMenus <bool>] [-FadeSlideToolTips <bool>] [-FileInfoCache <uint>]
 [-FileInfoCacheEnable <bool>] [-FileNotFoundCache <uint>] [-FileNotFoundCacheEnable <bool>]
 [-Force <SwitchParameter>] [-Hibernate <bool>] [-InitDir <string>]
 [-MicrosoftConsumerExperience <bool>] [-NetworkPerformanceEnabled <bool>]
 [-OptimizationType {Automatic | Manual}] [-PartialStartLayoutContent <string>]
 [-PartialStartMenu <bool>] [-Password <SecureString>] [-RegistryEnabled <bool>]
 [-RemoveOneDrive <bool>] [-SaveTaskbarThumbnail <bool>] [-ShadowUnderWindows <bool>]
 [-ShowShadowUnderMouse <bool>] [-ShowTranslucentSelection <bool>]
 [-ShowWindowsContentWhilstDragging <bool>] [-SlideOpenComboBoxes <bool>]
 [-SmoothEdgesScreenFonts <bool>] [-SmoothScrollListBoxes <bool>] [-SystemRestore <bool>]
 [-TeleCollection <bool>] [-ThumbnailsInsteadOfIcons <bool>] [-Tiles <bool>] [-User <string>]
 [-VisualEffectsEnabled <bool>]
 [-VisualEffectsTypes {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestPerformance | Custom}]
 [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}]
 [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>]
 [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>]
 [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
```

## DESCRIPTION

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

## EXAMPLES

### Example 1

```powershell
Set-RASImageOptimization -DefObjType RDSDef -NetworkPerformanceEnabled true
```

Modifies the Network Performance Enabled within the Image Optimization Settings of the RDS Default Settings.

### Example 2

```powershell
Set-RASImageOptimization -Id 1 -ObjType RDS -NetworkPerformanceEnabled false
```

Modifies the Network Performance Enabled within the Image Optimization Settings of the specified RDS by Id.

## PARAMETERS

### -EnableOptimization

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

### -OptimizationType

Possible values: Automatic, Manual

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

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

### -WindowsDefenderATPEnabled

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

### -WindowsComponentsEnabled

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

### -WindowsServicesEnabled

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

### -WindowsScheduledTasksEnabled

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

### -WindowsAdvancedOptionsEnabled

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

### -NetworkPerformanceEnabled

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

### -RegistryEnabled

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

### -VisualEffectsEnabled

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

### -DiskCleanupEnabled

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

### -CustomScriptEnabled

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

### -WinDefATPTurnOffOn

Possible values: TurnOffWindowsDefenderATP, TurnOnWindowsDefenderATP

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

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

### -DisableRealTimeProtection

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

### -ExcludeFolders

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

### -ExcludeProcesses

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

### -ExcludeExtension

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

### -PartialStartLayoutContent

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

### -Hibernate

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

### -TeleCollection

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

### -SystemRestore

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

### -AdditionalErrorReport

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

### -Tiles

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

### -Cortana

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

### -MicrosoftConsumerExperience

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

### -WindowsTips

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

### -CommonProgramGroups

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

### -PartialStartMenu

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

### -DirCacheMax

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

### -DormantFileLimit

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

### -FileNotFoundCache

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

### -FileInfoCache

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

### -FileInfoCacheEnable

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

### -DirectoryCacheEnable

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

### -FileNotFoundCacheEnable

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

### -DormantFileLimitEnable

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

### -DisableTCP

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

### -DisableIPv6CompEnable

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

### -DisableIPv6ToIPv4

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

### -DisableIsaTap

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

### -Arguments

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

### -Command

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

### -InitDir

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

### -User

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

### -Password

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

### -CleanupWinSxSFolder

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

### -CleanupSystemFiles

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

### -CleanupTemporaryFileLogs

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

### -RemoveOneDrive

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

### -DeleteUserProfiles

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

### -VisualEffectsTypes

Possible values: LetWindowsChooseWhatsBest, AdjustForBestAppearance, AdjustForBestPerformance, Custom

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

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

### -AnimateControlSelectElements

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

### -AnimateWindowsWhenMinimizingMaximizing

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

### -AnimateTaskbar

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

### -EnablePeek

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

### -FadeSlideMenus

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

### -FadeSlideToolTips

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

### -FadeOutMenuItems

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

### -SaveTaskbarThumbnail

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

### -ShowShadowUnderMouse

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

### -ShadowUnderWindows

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

### -ThumbnailsInsteadOfIcons

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

### -ShowTranslucentSelection

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

### -ShowWindowsContentWhilstDragging

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

### -SlideOpenComboBoxes

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

### -SmoothEdgesScreenFonts

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

### -SmoothScrollListBoxes

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

### -DropShadowsIcon

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

### -Force

Force Optimization.

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

### -Name

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

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

### -SiteId

Site ID from which to modify the Image Optimization settings.

If the parameter is omitted, the Licensing Server site ID 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 a server for which to modify the Image Optimization settings.

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

### -InputObject

An object of type RDS, VDITemplate or VDIDesktop for which to modify the Image Optimization settings.

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

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

### -ObjType

The Object Type for which to modify the Image Optimization settings.

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

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

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

### -DefObjType

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

Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings, AVDMultiSessionDefaultSettings

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

```yaml
Type: ServerDefObjType
Required: True
Position: Named
Default value: 0
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

### None

## RELATED LINKS

* [Get-RASImageOptimization](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasimageoptimization.md)
* [Get-RASImageOptimizationWindowsScheduledTask](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasimageoptimizationwindowsscheduledtask.md)
* [Get-RASImageOptimizationRegistry](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasimageoptimizationregistry.md)
* [Get-RASImageOptimizationWindowsComponent](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasimageoptimizationwindowscomponent.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/set-rasimageoptimization.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.
