Set-RASImageOptimization
NAME
Set-RASImageOptimization
SYNOPSIS
Modifies the Image Optimization settings.
SYNTAX
Set-RASImageOptimization -DefObjType {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings | VDIGuestDef} [-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 | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>] [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>] [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
Set-RASImageOptimization [-Id] <uint> -ObjType {RDSHost | RDS | 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 | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>] [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>] [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
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 | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOn {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabled <bool>] [-WindowsComponentsEnabled <bool>] [-WindowsDefenderATPEnabled <bool>] [-WindowsScheduledTasksEnabled <bool>] [-WindowsServicesEnabled <bool>] [-WindowsTips <bool>] [<CommonParameters>]
Set-RASImageOptimization [-Name] <string> [[-SiteId] <uint>] -ObjType {RDSHost | RDS | 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 | AdjustForBestAppearnce | 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.
PARAMETERS
-EnableOptimization <bool>
-OptimizationType <OptimizationTypeEnum>
Possible values: Automatic, Manual
-WindowsDefenderATPEnabled <bool>
-WindowsComponentsEnabled <bool>
-WindowsServicesEnabled <bool>
-WindowsScheduledTasksEnabled <bool>
-WindowsAdvancedOptionsEnabled <bool>
-NetworkPerformanceEnabled <bool>
-RegistryEnabled <bool>
-VisualEffectsEnabled <bool>
-DiskCleanupEnabled <bool>
-CustomScriptEnabled <bool>
-WinDefATPTurnOffOn <WindowsDefenderATPEnable>
Possible values: TurnOffWindowsDefenderATP, TurnOnWindowsDefenderATP
-DisableRealTimeProtection <bool>
-ExcludeFolders <string[]>
-ExcludeProcesses <string[]>
-ExcludeExtension <string[]>
-PartialStartLayoutContent <string>
-Hibernate <bool>
-TeleCollection <bool>
-SystemRestore <bool>
-AdditionalErrorReport <bool>
-Tiles <bool>
-Cortana <bool>
-MicrosoftConsumerExperience <bool>