For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RASImageOptimization

SYNOPSIS

Modifies the Image Optimization settings.

SYNTAX

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

DESCRIPTION

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

EXAMPLES

Example 1

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

Example 2

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

PARAMETERS

-EnableOptimization

-OptimizationType

Possible values: Automatic, Manual

Type reference: OptimizationTypeEnum

-WindowsDefenderATPEnabled

-WindowsComponentsEnabled

-WindowsServicesEnabled

-WindowsScheduledTasksEnabled

-WindowsAdvancedOptionsEnabled

-NetworkPerformanceEnabled

-RegistryEnabled

-VisualEffectsEnabled

-DiskCleanupEnabled

-CustomScriptEnabled

-WinDefATPTurnOffOn

Possible values: TurnOffWindowsDefenderATP, TurnOnWindowsDefenderATP

Type reference: WindowsDefenderATPEnable

-DisableRealTimeProtection

-ExcludeFolders

-ExcludeProcesses

-ExcludeExtension

-PartialStartLayoutContent

-Hibernate

-TeleCollection

-SystemRestore

-AdditionalErrorReport

-Tiles

-Cortana

-MicrosoftConsumerExperience

-WindowsTips

-CommonProgramGroups

-PartialStartMenu

-DirCacheMax

-DormantFileLimit

-FileNotFoundCache

-FileInfoCache

-FileInfoCacheEnable

-DirectoryCacheEnable

-FileNotFoundCacheEnable

-DormantFileLimitEnable

-DisableTCP

-DisableIPv6CompEnable

-DisableIPv6ToIPv4

-DisableIsaTap

-Arguments

-Command

-InitDir

-User

-Password

-CleanupWinSxSFolder

-CleanupSystemFiles

-CleanupTemporaryFileLogs

-RemoveOneDrive

-DeleteUserProfiles

-VisualEffectsTypes

Possible values: LetWindowsChooseWhatsBest, AdjustForBestAppearance, AdjustForBestPerformance, Custom

Type reference: VisualEffectsType

-AnimateControlSelectElements

-AnimateWindowsWhenMinimizingMaximizing

-AnimateTaskbar

-EnablePeek

-FadeSlideMenus

-FadeSlideToolTips

-FadeOutMenuItems

-SaveTaskbarThumbnail

-ShowShadowUnderMouse

-ShadowUnderWindows

-ThumbnailsInsteadOfIcons

-ShowTranslucentSelection

-ShowWindowsContentWhilstDragging

-SlideOpenComboBoxes

-SmoothEdgesScreenFonts

-SmoothScrollListBoxes

-DropShadowsIcon

-Force

Force Optimization.

-Name

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

-SiteId

Site ID from which to modify the Image Optimization settings.

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

-Id

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

-InputObject

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

Type reference: RASSerilazableObj

-ObjType

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

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

Type reference: OptimizationServerObjType

-DefObjType

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

Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings, AVDMultiSessionDefaultSettings

Type reference: ServerDefObjType

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.

INPUTS

None

OUTPUTS

None

Last updated