# Set-RASImageOptimization

## NAME

Set-RASImageOptimization

## SYNOPSIS

Modifies the Image Optimization settings.

## SYNTAX

**Set-RASImageOptimization** -[DefObjType](#defobjtype) {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings | VDIGuestDef} \[[AdditionalErrorReport](#additionalerrorreport-string) *(bool)*] \[[AnimateControlSelectElements](#animatecontrolselectelements-string) *(bool)*] \[[AnimateTaskbar](#animatetaskbar-string) *(bool)*] \[[AnimateWindowsWhenMinimizingMaximizing](#animatewindowswhenminimizingmaximizing-string) *(bool)*] \[[Arguments](#arguments-string) *(string)*] \[[CleanupSystemFiles](#cleanupsystemfiles-string) *(bool)*] \[[CleanupTemporaryFileLogs](#cleanuptemporaryfilelogs-string) *(bool)*] \[[CleanupWinSxSFolder](#cleanupwinsxsfolder-string) *(bool)*] \[[Command](#command-string) *(string)*] \[[CommonProgramGroups](#commonprogramgroups-string) *(bool)*] \[[Cortana](#cortana-string) *(bool)*] \[[CustomScriptEnabled](#customscriptenabled-string) *(bool)*] \[[DeleteUserProfiles](#deleteuserprofiles-string) *(bool)*] \[[DirCacheMax](#dircachemax-string) *(uint)*] \[[DirectoryCacheEnable](#directorycacheenable-string) *(bool)*] \[[DisableIPv6CompEnable](#disableipv6compenable-string) *(bool)*] \[[DisableIPv6ToIPv4](#disableipv6toipv4-string) *(bool)*] \[[DisableIsaTap](#disableisatap-string) *(bool)*] \[[DisableRealTimeProtection](#disablerealtimeprotection-string) *(bool)*] \[[DisableTCP](#disabletcp-string) *(bool)*] \[[DiskCleanupEnabled](#diskcleanupenabled-string) *(bool)*] \[[DormantFileLimit](#dormantfilelimit-string) *(uint)*] \[[DormantFileLimitEnable](#dormantfilelimitenable-string) *(bool)*] \[[DropShadowsIcon](#dropshadowsicon-string) *(bool)*] \[[EnableOptimization](#enableoptimization-string) *(bool)*] \[[EnablePeek](#enablepeek-string) *(bool)*] \[-[ExcludeExtension](#ExcludeExtension) *(string\[])*] \[-[ExcludeFolders](#ExcludeFolders) *(string\[])*] \[-[ExcludeProcesses](#ExcludeProcesses) *(string\[])*] \[[FadeOutMenuItems](#fadeoutmenuitems-string) *(bool)*] \[[FadeSlideMenus](#fadeslidemenus-string) *(bool)*] \[[FadeSlideToolTips](#fadeslidetooltips-string) *(bool)*] \[[FileInfoCache](#fileinfocache-string) *(uint)*] \[[FileInfoCacheEnable](#fileinfocacheenable-string) *(bool)*] \[[FileNotFoundCache](#filenotfoundcache-string) *(uint)*] \[[FileNotFoundCacheEnable](#filenotfoundcacheenable-string) *(bool)*] \[[Force](#force-string) *(SwitchParameter)*] \[[Hibernate](#hibernate-string) *(bool)*] \[[InitDir](#initdir-string) *(string)*] \[[MicrosoftConsumerExperience](#microsoftconsumerexperience-string) *(bool)*] \[[NetworkPerformanceEnabled](#networkperformanceenabled-string) *(bool)*] \[-[OptimizationType](#OptimizationType) {Automatic | Manual}] \[[PartialStartLayoutContent](#partialstartlayoutcontent-string) *(string)*] \[[PartialStartMenu](#partialstartmenu-string) *(bool)*] \[[Password](#password-string) *(SecureString)*] \[[RegistryEnabled](#registryenabled-string) *(bool)*] \[[RemoveOneDrive](#removeonedrive-string) *(bool)*] \[[SaveTaskbarThumbnail](#savetaskbarthumbnail-string) *(bool)*] \[[ShadowUnderWindows](#shadowunderwindows-string) *(bool)*] \[[ShowShadowUnderMouse](#showshadowundermouse-string) *(bool)*] \[[ShowTranslucentSelection](#showtranslucentselection-string) *(bool)*] \[[ShowWindowsContentWhilstDragging](#showwindowscontentwhilstdragging-string) *(bool)*] \[[SiteId](#siteid-string) *(uint)*] \[[SlideOpenComboBoxes](#slideopencomboboxes-string) *(bool)*] \[[SmoothEdgesScreenFonts](#smoothedgesscreenfonts-string) *(bool)*] \[[SmoothScrollListBoxes](#smoothscrolllistboxes-string) *(bool)*] \[[SystemRestore](#systemrestore-string) *(bool)*] \[[TeleCollection](#telecollection-string) *(bool)*] \[[ThumbnailsInsteadOfIcons](#thumbnailsinsteadoficons-string) *(bool)*] \[[Tiles](#tiles-string) *(bool)*] \[[User](#user-string) *(string)*] \[[VisualEffectsEnabled](#visualeffectsenabled-string) *(bool)*] \[-[VisualEffectsTypes](#VisualEffectsTypes) {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] \[-[WinDefATPTurnOffOn](#WinDefATPTurnOffOn) {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] \[[WindowsAdvancedOptionsEnabled](#windowsadvancedoptionsenabled-string) *(bool)*] \[[WindowsComponentsEnabled](#windowscomponentsenabled-string) *(bool)*] \[[WindowsDefenderATPEnabled](#windowsdefenderatpenabled-string) *(bool)*] \[[WindowsScheduledTasksEnabled](#windowsscheduledtasksenabled-string) *(bool)*] \[[WindowsServicesEnabled](#windowsservicesenabled-string) *(bool)*] \[[WindowsTips](#windowstips-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASImageOptimization** \[[Id](#id-string)]\*\* *(uint)* -[ObjType](#objtype) {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} \[[AdditionalErrorReport](#additionalerrorreport-string) *(bool)*] \[[AnimateControlSelectElements](#animatecontrolselectelements-string) *(bool)*] \[[AnimateTaskbar](#animatetaskbar-string) *(bool)*] \[[AnimateWindowsWhenMinimizingMaximizing](#animatewindowswhenminimizingmaximizing-string) *(bool)*] \[[Arguments](#arguments-string) *(string)*] \[[CleanupSystemFiles](#cleanupsystemfiles-string) *(bool)*] \[[CleanupTemporaryFileLogs](#cleanuptemporaryfilelogs-string) *(bool)*] \[[CleanupWinSxSFolder](#cleanupwinsxsfolder-string) *(bool)*] \[[Command](#command-string) *(string)*] \[[CommonProgramGroups](#commonprogramgroups-string) *(bool)*] \[[Cortana](#cortana-string) *(bool)*] \[[CustomScriptEnabled](#customscriptenabled-string) *(bool)*] \[[DeleteUserProfiles](#deleteuserprofiles-string) *(bool)*] \[[DirCacheMax](#dircachemax-string) *(uint)*] \[[DirectoryCacheEnable](#directorycacheenable-string) *(bool)*] \[[DisableIPv6CompEnable](#disableipv6compenable-string) *(bool)*] \[[DisableIPv6ToIPv4](#disableipv6toipv4-string) *(bool)*] \[[DisableIsaTap](#disableisatap-string) *(bool)*] \[[DisableRealTimeProtection](#disablerealtimeprotection-string) *(bool)*] \[[DisableTCP](#disabletcp-string) *(bool)*] \[[DiskCleanupEnabled](#diskcleanupenabled-string) *(bool)*] \[[DormantFileLimit](#dormantfilelimit-string) *(uint)*] \[[DormantFileLimitEnable](#dormantfilelimitenable-string) *(bool)*] \[[DropShadowsIcon](#dropshadowsicon-string) *(bool)*] \[[EnableOptimization](#enableoptimization-string) *(bool)*] \[[EnablePeek](#enablepeek-string) *(bool)*] \[-[ExcludeExtension](#ExcludeExtension) *(string\[])*] \[-[ExcludeFolders](#ExcludeFolders) *(string\[])*] \[-[ExcludeProcesses](#ExcludeProcesses) *(string\[])*] \[[FadeOutMenuItems](#fadeoutmenuitems-string) *(bool)*] \[[FadeSlideMenus](#fadeslidemenus-string) *(bool)*] \[[FadeSlideToolTips](#fadeslidetooltips-string) *(bool)*] \[[FileInfoCache](#fileinfocache-string) *(uint)*] \[[FileInfoCacheEnable](#fileinfocacheenable-string) *(bool)*] \[[FileNotFoundCache](#filenotfoundcache-string) *(uint)*] \[[FileNotFoundCacheEnable](#filenotfoundcacheenable-string) *(bool)*] \[[Force](#force-string) *(SwitchParameter)*] \[[Hibernate](#hibernate-string) *(bool)*] \[[InitDir](#initdir-string) *(string)*] \[[MicrosoftConsumerExperience](#microsoftconsumerexperience-string) *(bool)*] \[[NetworkPerformanceEnabled](#networkperformanceenabled-string) *(bool)*] \[-[OptimizationType](#OptimizationType) {Automatic | Manual}] \[[PartialStartLayoutContent](#partialstartlayoutcontent-string) *(string)*] \[[PartialStartMenu](#partialstartmenu-string) *(bool)*] \[[Password](#password-string) *(SecureString)*] \[[RegistryEnabled](#registryenabled-string) *(bool)*] \[[RemoveOneDrive](#removeonedrive-string) *(bool)*] \[[SaveTaskbarThumbnail](#savetaskbarthumbnail-string) *(bool)*] \[[ShadowUnderWindows](#shadowunderwindows-string) *(bool)*] \[[ShowShadowUnderMouse](#showshadowundermouse-string) *(bool)*] \[[ShowTranslucentSelection](#showtranslucentselection-string) *(bool)*] \[[ShowWindowsContentWhilstDragging](#showwindowscontentwhilstdragging-string) *(bool)*] \[[SlideOpenComboBoxes](#slideopencomboboxes-string) *(bool)*] \[[SmoothEdgesScreenFonts](#smoothedgesscreenfonts-string) *(bool)*] \[[SmoothScrollListBoxes](#smoothscrolllistboxes-string) *(bool)*] \[[SystemRestore](#systemrestore-string) *(bool)*] \[[TeleCollection](#telecollection-string) *(bool)*] \[[ThumbnailsInsteadOfIcons](#thumbnailsinsteadoficons-string) *(bool)*] \[[Tiles](#tiles-string) *(bool)*] \[[User](#user-string) *(string)*] \[[VisualEffectsEnabled](#visualeffectsenabled-string) *(bool)*] \[-[VisualEffectsTypes](#VisualEffectsTypes) {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] \[-[WinDefATPTurnOffOn](#WinDefATPTurnOffOn) {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] \[[WindowsAdvancedOptionsEnabled](#windowsadvancedoptionsenabled-string) *(bool)*] \[[WindowsComponentsEnabled](#windowscomponentsenabled-string) *(bool)*] \[[WindowsDefenderATPEnabled](#windowsdefenderatpenabled-string) *(bool)*] \[[WindowsScheduledTasksEnabled](#windowsscheduledtasksenabled-string) *(bool)*] \[[WindowsServicesEnabled](#windowsservicesenabled-string) *(bool)*] \[[WindowsTips](#windowstips-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASImageOptimization** \[-[InputObject](#inputobject)] *(*[*RASSerilazableObj*](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/rasserilazableobj)*)* \[[AdditionalErrorReport](#additionalerrorreport-string) *(bool)*] \[[AnimateControlSelectElements](#animatecontrolselectelements-string) *(bool)*] \[[AnimateTaskbar](#animatetaskbar-string) *(bool)*] \[[AnimateWindowsWhenMinimizingMaximizing](#animatewindowswhenminimizingmaximizing-string) *(bool)*] \[[Arguments](#arguments-string) *(string)*] \[[CleanupSystemFiles](#cleanupsystemfiles-string) *(bool)*] \[[CleanupTemporaryFileLogs](#cleanuptemporaryfilelogs-string) *(bool)*] \[[CleanupWinSxSFolder](#cleanupwinsxsfolder-string) *(bool)*] \[[Command](#command-string) *(string)*] \[[CommonProgramGroups](#commonprogramgroups-string) *(bool)*] \[[Cortana](#cortana-string) *(bool)*] \[[CustomScriptEnabled](#customscriptenabled-string) *(bool)*] \[[DeleteUserProfiles](#deleteuserprofiles-string) *(bool)*] \[[DirCacheMax](#dircachemax-string) *(uint)*] \[[DirectoryCacheEnable](#directorycacheenable-string) *(bool)*] \[[DisableIPv6CompEnable](#disableipv6compenable-string) *(bool)*] \[[DisableIPv6ToIPv4](#disableipv6toipv4-string) *(bool)*] \[[DisableIsaTap](#disableisatap-string) *(bool)*] \[[DisableRealTimeProtection](#disablerealtimeprotection-string) *(bool)*] \[[DisableTCP](#disabletcp-string) *(bool)*] \[[DiskCleanupEnabled](#diskcleanupenabled-string) *(bool)*] \[[DormantFileLimit](#dormantfilelimit-string) *(uint)*] \[[DormantFileLimitEnable](#dormantfilelimitenable-string) *(bool)*] \[[DropShadowsIcon](#dropshadowsicon-string) *(bool)*] \[[EnableOptimization](#enableoptimization-string) *(bool)*] \[[EnablePeek](#enablepeek-string) *(bool)*] \[-[ExcludeExtension](#ExcludeExtension) *(string\[])*] \[-[ExcludeFolders](#ExcludeFolders) *(string\[])*] \[-[ExcludeProcesses](#ExcludeProcesses) *(string\[])*] \[[FadeOutMenuItems](#fadeoutmenuitems-string) *(bool)*] \[[FadeSlideMenus](#fadeslidemenus-string) *(bool)*] \[[FadeSlideToolTips](#fadeslidetooltips-string) *(bool)*] \[[FileInfoCache](#fileinfocache-string) *(uint)*] \[[FileInfoCacheEnable](#fileinfocacheenable-string) *(bool)*] \[[FileNotFoundCache](#filenotfoundcache-string) *(uint)*] \[[FileNotFoundCacheEnable](#filenotfoundcacheenable-string) *(bool)*] \[[Force](#force-string) *(SwitchParameter)*] \[[Hibernate](#hibernate-string) *(bool)*] \[[InitDir](#initdir-string) *(string)*] \[[MicrosoftConsumerExperience](#microsoftconsumerexperience-string) *(bool)*] \[[NetworkPerformanceEnabled](#networkperformanceenabled-string) *(bool)*] \[-[OptimizationType](#OptimizationType) {Automatic | Manual}] \[[PartialStartLayoutContent](#partialstartlayoutcontent-string) *(string)*] \[[PartialStartMenu](#partialstartmenu-string) *(bool)*] \[[Password](#password-string) *(SecureString)*] \[[RegistryEnabled](#registryenabled-string) *(bool)*] \[[RemoveOneDrive](#removeonedrive-string) *(bool)*] \[[SaveTaskbarThumbnail](#savetaskbarthumbnail-string) *(bool)*] \[[ShadowUnderWindows](#shadowunderwindows-string) *(bool)*] \[[ShowShadowUnderMouse](#showshadowundermouse-string) *(bool)*] \[[ShowTranslucentSelection](#showtranslucentselection-string) *(bool)*] \[[ShowWindowsContentWhilstDragging](#showwindowscontentwhilstdragging-string) *(bool)*] \[[SlideOpenComboBoxes](#slideopencomboboxes-string) *(bool)*] \[[SmoothEdgesScreenFonts](#smoothedgesscreenfonts-string) *(bool)*] \[[SmoothScrollListBoxes](#smoothscrolllistboxes-string) *(bool)*] \[[SystemRestore](#systemrestore-string) *(bool)*] \[[TeleCollection](#telecollection-string) *(bool)*] \[[ThumbnailsInsteadOfIcons](#thumbnailsinsteadoficons-string) *(bool)*] \[[Tiles](#tiles-string) *(bool)*] \[[User](#user-string) *(string)*] \[[VisualEffectsEnabled](#visualeffectsenabled-string) *(bool)*] \[-[VisualEffectsTypes](#VisualEffectsTypes) {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] \[-[WinDefATPTurnOffOn](#WinDefATPTurnOffOn) {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] \[[WindowsAdvancedOptionsEnabled](#windowsadvancedoptionsenabled-string) *(bool)*] \[[WindowsComponentsEnabled](#windowscomponentsenabled-string) *(bool)*] \[[WindowsDefenderATPEnabled](#windowsdefenderatpenabled-string) *(bool)*] \[[WindowsScheduledTasksEnabled](#windowsscheduledtasksenabled-string) *(bool)*] \[[WindowsServicesEnabled](#windowsservicesenabled-string) *(bool)*] \[[WindowsTips](#windowstips-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASImageOptimization** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] -[ObjType](#objtype) {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} \[[AdditionalErrorReport](#additionalerrorreport-string) *(bool)*] \[[AnimateControlSelectElements](#animatecontrolselectelements-string) *(bool)*] \[[AnimateTaskbar](#animatetaskbar-string) *(bool)*] \[[AnimateWindowsWhenMinimizingMaximizing](#animatewindowswhenminimizingmaximizing-string) *(bool)*] \[[Arguments](#arguments-string) *(string)*] \[[CleanupSystemFiles](#cleanupsystemfiles-string) *(bool)*] \[[CleanupTemporaryFileLogs](#cleanuptemporaryfilelogs-string) *(bool)*] \[[CleanupWinSxSFolder](#cleanupwinsxsfolder-string) *(bool)*] \[[Command](#command-string) *(string)*] \[[CommonProgramGroups](#commonprogramgroups-string) *(bool)*] \[[Cortana](#cortana-string) *(bool)*] \[[CustomScriptEnabled](#customscriptenabled-string) *(bool)*] \[[DeleteUserProfiles](#deleteuserprofiles-string) *(bool)*] \[[DirCacheMax](#dircachemax-string) *(uint)*] \[[DirectoryCacheEnable](#directorycacheenable-string) *(bool)*] \[[DisableIPv6CompEnable](#disableipv6compenable-string) *(bool)*] \[[DisableIPv6ToIPv4](#disableipv6toipv4-string) *(bool)*] \[[DisableIsaTap](#disableisatap-string) *(bool)*] \[[DisableRealTimeProtection](#disablerealtimeprotection-string) *(bool)*] \[[DisableTCP](#disabletcp-string) *(bool)*] \[[DiskCleanupEnabled](#diskcleanupenabled-string) *(bool)*] \[[DormantFileLimit](#dormantfilelimit-string) *(uint)*] \[[DormantFileLimitEnable](#dormantfilelimitenable-string) *(bool)*] \[[DropShadowsIcon](#dropshadowsicon-string) *(bool)*] \[[EnableOptimization](#enableoptimization-string) *(bool)*] \[[EnablePeek](#enablepeek-string) *(bool)*] \[-[ExcludeExtension](#ExcludeExtension) *(string\[])*] \[-[ExcludeFolders](#ExcludeFolders) *(string\[])*] \[-[ExcludeProcesses](#ExcludeProcesses) *(string\[])*] \[[FadeOutMenuItems](#fadeoutmenuitems-string) *(bool)*] \[[FadeSlideMenus](#fadeslidemenus-string) *(bool)*] \[[FadeSlideToolTips](#fadeslidetooltips-string) *(bool)*] \[[FileInfoCache](#fileinfocache-string) *(uint)*] \[[FileInfoCacheEnable](#fileinfocacheenable-string) *(bool)*] \[[FileNotFoundCache](#filenotfoundcache-string) *(uint)*] \[[FileNotFoundCacheEnable](#filenotfoundcacheenable-string) *(bool)*] \[[Force](#force-string) *(SwitchParameter)*] \[[Hibernate](#hibernate-string) *(bool)*] \[[InitDir](#initdir-string) *(string)*] \[[MicrosoftConsumerExperience](#microsoftconsumerexperience-string) *(bool)*] \[[NetworkPerformanceEnabled](#networkperformanceenabled-string) *(bool)*] \[-[OptimizationType](#OptimizationType) {Automatic | Manual}] \[[PartialStartLayoutContent](#partialstartlayoutcontent-string) *(string)*] \[[PartialStartMenu](#partialstartmenu-string) *(bool)*] \[[Password](#password-string) *(SecureString)*] \[[RegistryEnabled](#registryenabled-string) *(bool)*] \[[RemoveOneDrive](#removeonedrive-string) *(bool)*] \[[SaveTaskbarThumbnail](#savetaskbarthumbnail-string) *(bool)*] \[[ShadowUnderWindows](#shadowunderwindows-string) *(bool)*] \[[ShowShadowUnderMouse](#showshadowundermouse-string) *(bool)*] \[[ShowTranslucentSelection](#showtranslucentselection-string) *(bool)*] \[[ShowWindowsContentWhilstDragging](#showwindowscontentwhilstdragging-string) *(bool)*] \[[SlideOpenComboBoxes](#slideopencomboboxes-string) *(bool)*] \[[SmoothEdgesScreenFonts](#smoothedgesscreenfonts-string) *(bool)*] \[[SmoothScrollListBoxes](#smoothscrolllistboxes-string) *(bool)*] \[[SystemRestore](#systemrestore-string) *(bool)*] \[[TeleCollection](#telecollection-string) *(bool)*] \[[ThumbnailsInsteadOfIcons](#thumbnailsinsteadoficons-string) *(bool)*] \[[Tiles](#tiles-string) *(bool)*] \[[User](#user-string) *(string)*] \[[VisualEffectsEnabled](#visualeffectsenabled-string) *(bool)*] \[-[VisualEffectsTypes](#VisualEffectsTypes) {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] \[-[WinDefATPTurnOffOn](#WinDefATPTurnOffOn) {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] \[[WindowsAdvancedOptionsEnabled](#windowsadvancedoptionsenabled-string) *(bool)*] \[[WindowsComponentsEnabled](#windowscomponentsenabled-string) *(bool)*] \[[WindowsDefenderATPEnabled](#windowsdefenderatpenabled-string) *(bool)*] \[[WindowsScheduledTasksEnabled](#windowsscheduledtasksenabled-string) *(bool)*] \[[WindowsServicesEnabled](#windowsservicesenabled-string) *(bool)*] \[[WindowsTips](#windowstips-string) *(bool)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

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

## PARAMETERS

## EnableOptimization (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OptimizationType

([OptimizationTypeEnum](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/optimizationtypeenum))

Possible values: Automatic, Manual

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsDefenderATPEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsComponentsEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsServicesEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsScheduledTasksEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsAdvancedOptionsEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## NetworkPerformanceEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RegistryEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VisualEffectsEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DiskCleanupEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CustomScriptEnabled (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WinDefATPTurnOffOn

([WindowsDefenderATPEnable](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/windowsdefenderatpenable))

Possible values: TurnOffWindowsDefenderATP, TurnOnWindowsDefenderATP

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableRealTimeProtection (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludeFolders (string\[])

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludeProcesses (string\[])

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludeExtension (string\[])

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PartialStartLayoutContent (string)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Hibernate (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TeleCollection (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SystemRestore (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AdditionalErrorReport (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Tiles (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Cortana (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MicrosoftConsumerExperience (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsTips (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CommonProgramGroups (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PartialStartMenu (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DirCacheMax (uint)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DormantFileLimit (uint)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileNotFoundCache (uint)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileInfoCache (uint)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileInfoCacheEnable (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DirectoryCacheEnable (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileNotFoundCacheEnable (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DormantFileLimitEnable (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableTCP (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableIPv6CompEnable (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableIPv6ToIPv4 (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisableIsaTap (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Arguments (string)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Command (string)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InitDir (string)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## User (string)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Password (SecureString)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CleanupWinSxSFolder (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CleanupSystemFiles (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CleanupTemporaryFileLogs (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RemoveOneDrive (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DeleteUserProfiles (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VisualEffectsTypes

([VisualEffectsType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/visualeffectstype))

Possible values: LetWindowsChooseWhatsBest, AdjustForBestAppearance, AdjustForBestAppearnce, AdjustForBestPerformance, Custom

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AnimateControlSelectElements (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AnimateWindowsWhenMinimizingMaximizing (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AnimateTaskbar (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnablePeek (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FadeSlideMenus (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FadeSlideToolTips (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FadeOutMenuItems (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SaveTaskbarThumbnail (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ShowShadowUnderMouse (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ShadowUnderWindows (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ThumbnailsInsteadOfIcons (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ShowTranslucentSelection (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ShowWindowsContentWhilstDragging (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SlideOpenComboBoxes (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SmoothEdgesScreenFonts (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SmoothScrollListBoxes (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DropShadowsIcon (bool)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Force (SwitchParameter)

Force Optimization.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Name (string)

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

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID from which to modify 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
```

## Id (uint)

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

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject

([RASSerilazableObj](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/rasserilazableobj)) An object of type RDS, VDITemplate or VDIDesktop for which to modify the Image Optimization settings.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ObjType

([OptimizationServerObjType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/optimizationserverobjtype)) The Object Type for which to modify 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](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/serverdefobjtype))

The Default Object Type for which to modify 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

-none-

## EXAMPLES

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

Set-RASImageOptimization -DefObjType RDSDef -NetworkPerformanceEnabled true

Modifies the Network Performance Enabled within the Image Optimization Settings of the RDS Default Settings.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

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

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

## RELATED LINKS

* [Get-RASImageOptimization](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasimageoptimization)
* [Get-RASImageOptimizationWindowsScheduledTask](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasimageoptimizationwindowsscheduledtask)
* [Get-RASImageOptimizationRegistry](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasimageoptimizationregistry)
* [Get-RASImageOptimizationWindowsComponent](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasimageoptimizationwindowscomponent)
