Set-RASImageOptimization

NAME

Set-RASImageOptimization

SYNOPSIS

Modifies the Image Optimization settings.

SYNTAX

Set-RASImageOptimization -DefObjTypearrow-up-right {RDSDef | VDIDef | AVDSingleSessionDefaultSettings | AVDMultiSessionDefaultSettings | VDIGuestDef} [-AdditionalErrorReportarrow-up-right <bool>] [-AnimateControlSelectElementsarrow-up-right <bool>] [-AnimateTaskbararrow-up-right <bool>] [-AnimateWindowsWhenMinimizingMaximizingarrow-up-right <bool>] [-Argumentsarrow-up-right <string>] [-CleanupSystemFilesarrow-up-right <bool>] [-CleanupTemporaryFileLogsarrow-up-right <bool>] [-CleanupWinSxSFolderarrow-up-right <bool>] [-Commandarrow-up-right <string>] [-CommonProgramGroupsarrow-up-right <bool>] [-Cortanaarrow-up-right <bool>] [-CustomScriptEnabledarrow-up-right <bool>] [-DeleteUserProfilesarrow-up-right <bool>] [-DirCacheMaxarrow-up-right <uint>] [-DirectoryCacheEnablearrow-up-right <bool>] [-DisableIPv6CompEnablearrow-up-right <bool>] [-DisableIPv6ToIPv4arrow-up-right <bool>] [-DisableIsaTaparrow-up-right <bool>] [-DisableRealTimeProtectionarrow-up-right <bool>] [-DisableTCParrow-up-right <bool>] [-DiskCleanupEnabledarrow-up-right <bool>] [-DormantFileLimitarrow-up-right <uint>] [-DormantFileLimitEnablearrow-up-right <bool>] [-DropShadowsIconarrow-up-right <bool>] [-EnableOptimizationarrow-up-right <bool>] [-EnablePeekarrow-up-right <bool>] [-ExcludeExtensionarrow-up-right <string[]>] [-ExcludeFoldersarrow-up-right <string[]>] [-ExcludeProcessesarrow-up-right <string[]>] [-FadeOutMenuItemsarrow-up-right <bool>] [-FadeSlideMenusarrow-up-right <bool>] [-FadeSlideToolTipsarrow-up-right <bool>] [-FileInfoCachearrow-up-right <uint>] [-FileInfoCacheEnablearrow-up-right <bool>] [-FileNotFoundCachearrow-up-right <uint>] [-FileNotFoundCacheEnablearrow-up-right <bool>] [-Forcearrow-up-right <SwitchParameter>] [-Hibernatearrow-up-right <bool>] [-InitDirarrow-up-right <string>] [-MicrosoftConsumerExperiencearrow-up-right <bool>] [-NetworkPerformanceEnabledarrow-up-right <bool>] [-OptimizationTypearrow-up-right {Automatic | Manual}] [-PartialStartLayoutContentarrow-up-right <string>] [-PartialStartMenuarrow-up-right <bool>] [-Passwordarrow-up-right <SecureString>] [-RegistryEnabledarrow-up-right <bool>] [-RemoveOneDrivearrow-up-right <bool>] [-SaveTaskbarThumbnailarrow-up-right <bool>] [-ShadowUnderWindowsarrow-up-right <bool>] [-ShowShadowUnderMousearrow-up-right <bool>] [-ShowTranslucentSelectionarrow-up-right <bool>] [-ShowWindowsContentWhilstDraggingarrow-up-right <bool>] [-SiteIdarrow-up-right <uint>] [-SlideOpenComboBoxesarrow-up-right <bool>] [-SmoothEdgesScreenFontsarrow-up-right <bool>] [-SmoothScrollListBoxesarrow-up-right <bool>] [-SystemRestorearrow-up-right <bool>] [-TeleCollectionarrow-up-right <bool>] [-ThumbnailsInsteadOfIconsarrow-up-right <bool>] [-Tilesarrow-up-right <bool>] [-Userarrow-up-right <string>] [-VisualEffectsEnabledarrow-up-right <bool>] [-VisualEffectsTypesarrow-up-right {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOnarrow-up-right {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabledarrow-up-right <bool>] [-WindowsComponentsEnabledarrow-up-right <bool>] [-WindowsDefenderATPEnabledarrow-up-right <bool>] [-WindowsScheduledTasksEnabledarrow-up-right <bool>] [-WindowsServicesEnabledarrow-up-right <bool>] [-WindowsTipsarrow-up-right <bool>] [<CommonParametersarrow-up-right>] Set-RASImageOptimization [-Idarrow-up-right] <uint> -ObjTypearrow-up-right {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} [-AdditionalErrorReportarrow-up-right <bool>] [-AnimateControlSelectElementsarrow-up-right <bool>] [-AnimateTaskbararrow-up-right <bool>] [-AnimateWindowsWhenMinimizingMaximizingarrow-up-right <bool>] [-Argumentsarrow-up-right <string>] [-CleanupSystemFilesarrow-up-right <bool>] [-CleanupTemporaryFileLogsarrow-up-right <bool>] [-CleanupWinSxSFolderarrow-up-right <bool>] [-Commandarrow-up-right <string>] [-CommonProgramGroupsarrow-up-right <bool>] [-Cortanaarrow-up-right <bool>] [-CustomScriptEnabledarrow-up-right <bool>] [-DeleteUserProfilesarrow-up-right <bool>] [-DirCacheMaxarrow-up-right <uint>] [-DirectoryCacheEnablearrow-up-right <bool>] [-DisableIPv6CompEnablearrow-up-right <bool>] [-DisableIPv6ToIPv4arrow-up-right <bool>] [-DisableIsaTaparrow-up-right <bool>] [-DisableRealTimeProtectionarrow-up-right <bool>] [-DisableTCParrow-up-right <bool>] [-DiskCleanupEnabledarrow-up-right <bool>] [-DormantFileLimitarrow-up-right <uint>] [-DormantFileLimitEnablearrow-up-right <bool>] [-DropShadowsIconarrow-up-right <bool>] [-EnableOptimizationarrow-up-right <bool>] [-EnablePeekarrow-up-right <bool>] [-ExcludeExtensionarrow-up-right <string[]>] [-ExcludeFoldersarrow-up-right <string[]>] [-ExcludeProcessesarrow-up-right <string[]>] [-FadeOutMenuItemsarrow-up-right <bool>] [-FadeSlideMenusarrow-up-right <bool>] [-FadeSlideToolTipsarrow-up-right <bool>] [-FileInfoCachearrow-up-right <uint>] [-FileInfoCacheEnablearrow-up-right <bool>] [-FileNotFoundCachearrow-up-right <uint>] [-FileNotFoundCacheEnablearrow-up-right <bool>] [-Forcearrow-up-right <SwitchParameter>] [-Hibernatearrow-up-right <bool>] [-InitDirarrow-up-right <string>] [-MicrosoftConsumerExperiencearrow-up-right <bool>] [-NetworkPerformanceEnabledarrow-up-right <bool>] [-OptimizationTypearrow-up-right {Automatic | Manual}] [-PartialStartLayoutContentarrow-up-right <string>] [-PartialStartMenuarrow-up-right <bool>] [-Passwordarrow-up-right <SecureString>] [-RegistryEnabledarrow-up-right <bool>] [-RemoveOneDrivearrow-up-right <bool>] [-SaveTaskbarThumbnailarrow-up-right <bool>] [-ShadowUnderWindowsarrow-up-right <bool>] [-ShowShadowUnderMousearrow-up-right <bool>] [-ShowTranslucentSelectionarrow-up-right <bool>] [-ShowWindowsContentWhilstDraggingarrow-up-right <bool>] [-SlideOpenComboBoxesarrow-up-right <bool>] [-SmoothEdgesScreenFontsarrow-up-right <bool>] [-SmoothScrollListBoxesarrow-up-right <bool>] [-SystemRestorearrow-up-right <bool>] [-TeleCollectionarrow-up-right <bool>] [-ThumbnailsInsteadOfIconsarrow-up-right <bool>] [-Tilesarrow-up-right <bool>] [-Userarrow-up-right <string>] [-VisualEffectsEnabledarrow-up-right <bool>] [-VisualEffectsTypesarrow-up-right {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOnarrow-up-right {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabledarrow-up-right <bool>] [-WindowsComponentsEnabledarrow-up-right <bool>] [-WindowsDefenderATPEnabledarrow-up-right <bool>] [-WindowsScheduledTasksEnabledarrow-up-right <bool>] [-WindowsServicesEnabledarrow-up-right <bool>] [-WindowsTipsarrow-up-right <bool>] [<CommonParametersarrow-up-right>] Set-RASImageOptimization [-InputObjectarrow-up-right] <RASSerilazableObjarrow-up-right> [-AdditionalErrorReportarrow-up-right <bool>] [-AnimateControlSelectElementsarrow-up-right <bool>] [-AnimateTaskbararrow-up-right <bool>] [-AnimateWindowsWhenMinimizingMaximizingarrow-up-right <bool>] [-Argumentsarrow-up-right <string>] [-CleanupSystemFilesarrow-up-right <bool>] [-CleanupTemporaryFileLogsarrow-up-right <bool>] [-CleanupWinSxSFolderarrow-up-right <bool>] [-Commandarrow-up-right <string>] [-CommonProgramGroupsarrow-up-right <bool>] [-Cortanaarrow-up-right <bool>] [-CustomScriptEnabledarrow-up-right <bool>] [-DeleteUserProfilesarrow-up-right <bool>] [-DirCacheMaxarrow-up-right <uint>] [-DirectoryCacheEnablearrow-up-right <bool>] [-DisableIPv6CompEnablearrow-up-right <bool>] [-DisableIPv6ToIPv4arrow-up-right <bool>] [-DisableIsaTaparrow-up-right <bool>] [-DisableRealTimeProtectionarrow-up-right <bool>] [-DisableTCParrow-up-right <bool>] [-DiskCleanupEnabledarrow-up-right <bool>] [-DormantFileLimitarrow-up-right <uint>] [-DormantFileLimitEnablearrow-up-right <bool>] [-DropShadowsIconarrow-up-right <bool>] [-EnableOptimizationarrow-up-right <bool>] [-EnablePeekarrow-up-right <bool>] [-ExcludeExtensionarrow-up-right <string[]>] [-ExcludeFoldersarrow-up-right <string[]>] [-ExcludeProcessesarrow-up-right <string[]>] [-FadeOutMenuItemsarrow-up-right <bool>] [-FadeSlideMenusarrow-up-right <bool>] [-FadeSlideToolTipsarrow-up-right <bool>] [-FileInfoCachearrow-up-right <uint>] [-FileInfoCacheEnablearrow-up-right <bool>] [-FileNotFoundCachearrow-up-right <uint>] [-FileNotFoundCacheEnablearrow-up-right <bool>] [-Forcearrow-up-right <SwitchParameter>] [-Hibernatearrow-up-right <bool>] [-InitDirarrow-up-right <string>] [-MicrosoftConsumerExperiencearrow-up-right <bool>] [-NetworkPerformanceEnabledarrow-up-right <bool>] [-OptimizationTypearrow-up-right {Automatic | Manual}] [-PartialStartLayoutContentarrow-up-right <string>] [-PartialStartMenuarrow-up-right <bool>] [-Passwordarrow-up-right <SecureString>] [-RegistryEnabledarrow-up-right <bool>] [-RemoveOneDrivearrow-up-right <bool>] [-SaveTaskbarThumbnailarrow-up-right <bool>] [-ShadowUnderWindowsarrow-up-right <bool>] [-ShowShadowUnderMousearrow-up-right <bool>] [-ShowTranslucentSelectionarrow-up-right <bool>] [-ShowWindowsContentWhilstDraggingarrow-up-right <bool>] [-SlideOpenComboBoxesarrow-up-right <bool>] [-SmoothEdgesScreenFontsarrow-up-right <bool>] [-SmoothScrollListBoxesarrow-up-right <bool>] [-SystemRestorearrow-up-right <bool>] [-TeleCollectionarrow-up-right <bool>] [-ThumbnailsInsteadOfIconsarrow-up-right <bool>] [-Tilesarrow-up-right <bool>] [-Userarrow-up-right <string>] [-VisualEffectsEnabledarrow-up-right <bool>] [-VisualEffectsTypesarrow-up-right {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOnarrow-up-right {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabledarrow-up-right <bool>] [-WindowsComponentsEnabledarrow-up-right <bool>] [-WindowsDefenderATPEnabledarrow-up-right <bool>] [-WindowsScheduledTasksEnabledarrow-up-right <bool>] [-WindowsServicesEnabledarrow-up-right <bool>] [-WindowsTipsarrow-up-right <bool>] [<CommonParametersarrow-up-right>] Set-RASImageOptimization [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -ObjTypearrow-up-right {RDSHost | RDS | VDIHostPool | AVDHostPool | RDSTemplate | VDITemplate | AVDTemplate} [-AdditionalErrorReportarrow-up-right <bool>] [-AnimateControlSelectElementsarrow-up-right <bool>] [-AnimateTaskbararrow-up-right <bool>] [-AnimateWindowsWhenMinimizingMaximizingarrow-up-right <bool>] [-Argumentsarrow-up-right <string>] [-CleanupSystemFilesarrow-up-right <bool>] [-CleanupTemporaryFileLogsarrow-up-right <bool>] [-CleanupWinSxSFolderarrow-up-right <bool>] [-Commandarrow-up-right <string>] [-CommonProgramGroupsarrow-up-right <bool>] [-Cortanaarrow-up-right <bool>] [-CustomScriptEnabledarrow-up-right <bool>] [-DeleteUserProfilesarrow-up-right <bool>] [-DirCacheMaxarrow-up-right <uint>] [-DirectoryCacheEnablearrow-up-right <bool>] [-DisableIPv6CompEnablearrow-up-right <bool>] [-DisableIPv6ToIPv4arrow-up-right <bool>] [-DisableIsaTaparrow-up-right <bool>] [-DisableRealTimeProtectionarrow-up-right <bool>] [-DisableTCParrow-up-right <bool>] [-DiskCleanupEnabledarrow-up-right <bool>] [-DormantFileLimitarrow-up-right <uint>] [-DormantFileLimitEnablearrow-up-right <bool>] [-DropShadowsIconarrow-up-right <bool>] [-EnableOptimizationarrow-up-right <bool>] [-EnablePeekarrow-up-right <bool>] [-ExcludeExtensionarrow-up-right <string[]>] [-ExcludeFoldersarrow-up-right <string[]>] [-ExcludeProcessesarrow-up-right <string[]>] [-FadeOutMenuItemsarrow-up-right <bool>] [-FadeSlideMenusarrow-up-right <bool>] [-FadeSlideToolTipsarrow-up-right <bool>] [-FileInfoCachearrow-up-right <uint>] [-FileInfoCacheEnablearrow-up-right <bool>] [-FileNotFoundCachearrow-up-right <uint>] [-FileNotFoundCacheEnablearrow-up-right <bool>] [-Forcearrow-up-right <SwitchParameter>] [-Hibernatearrow-up-right <bool>] [-InitDirarrow-up-right <string>] [-MicrosoftConsumerExperiencearrow-up-right <bool>] [-NetworkPerformanceEnabledarrow-up-right <bool>] [-OptimizationTypearrow-up-right {Automatic | Manual}] [-PartialStartLayoutContentarrow-up-right <string>] [-PartialStartMenuarrow-up-right <bool>] [-Passwordarrow-up-right <SecureString>] [-RegistryEnabledarrow-up-right <bool>] [-RemoveOneDrivearrow-up-right <bool>] [-SaveTaskbarThumbnailarrow-up-right <bool>] [-ShadowUnderWindowsarrow-up-right <bool>] [-ShowShadowUnderMousearrow-up-right <bool>] [-ShowTranslucentSelectionarrow-up-right <bool>] [-ShowWindowsContentWhilstDraggingarrow-up-right <bool>] [-SlideOpenComboBoxesarrow-up-right <bool>] [-SmoothEdgesScreenFontsarrow-up-right <bool>] [-SmoothScrollListBoxesarrow-up-right <bool>] [-SystemRestorearrow-up-right <bool>] [-TeleCollectionarrow-up-right <bool>] [-ThumbnailsInsteadOfIconsarrow-up-right <bool>] [-Tilesarrow-up-right <bool>] [-Userarrow-up-right <string>] [-VisualEffectsEnabledarrow-up-right <bool>] [-VisualEffectsTypesarrow-up-right {LetWindowsChooseWhatsBest | AdjustForBestAppearance | AdjustForBestAppearnce | AdjustForBestPerformance | Custom}] [-WinDefATPTurnOffOnarrow-up-right {TurnOffWindowsDefenderATP | TurnOnWindowsDefenderATP}] [-WindowsAdvancedOptionsEnabledarrow-up-right <bool>] [-WindowsComponentsEnabledarrow-up-right <bool>] [-WindowsDefenderATPEnabledarrow-up-right <bool>] [-WindowsScheduledTasksEnabledarrow-up-right <bool>] [-WindowsServicesEnabledarrow-up-right <bool>] [-WindowsTipsarrow-up-right <bool>] [<CommonParametersarrow-up-right>]

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 <OptimizationTypeEnumarrow-up-right> 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 <WindowsDefenderATPEnablearrow-up-right> 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>

-WindowsTips <bool>

-CommonProgramGroups <bool>

-PartialStartMenu <bool>

-DirCacheMax <uint>

-DormantFileLimit <uint>

-FileNotFoundCache <uint>

-FileInfoCache <uint>

-FileInfoCacheEnable <bool>

-DirectoryCacheEnable <bool>

-FileNotFoundCacheEnable <bool>

-DormantFileLimitEnable <bool>

-DisableTCP <bool>

-DisableIPv6CompEnable <bool>

-DisableIPv6ToIPv4 <bool>

-DisableIsaTap <bool>

-Arguments <string>

-Command <string>

-InitDir <string>

-User <string>

-Password <SecureString>

-CleanupWinSxSFolder <bool>

-CleanupSystemFiles <bool>

-CleanupTemporaryFileLogs <bool>

-RemoveOneDrive <bool>

-DeleteUserProfiles <bool>

-VisualEffectsTypes <VisualEffectsTypearrow-up-right> Possible values: LetWindowsChooseWhatsBest, AdjustForBestAppearance, AdjustForBestAppearnce, AdjustForBestPerformance, Custom

-AnimateControlSelectElements <bool>

-AnimateWindowsWhenMinimizingMaximizing <bool>

-AnimateTaskbar <bool>

-EnablePeek <bool>

-FadeSlideMenus <bool>

-FadeSlideToolTips <bool>

-FadeOutMenuItems <bool>

-SaveTaskbarThumbnail <bool>

-ShowShadowUnderMouse <bool>

-ShadowUnderWindows <bool>

-ThumbnailsInsteadOfIcons <bool>

-ShowTranslucentSelection <bool>

-ShowWindowsContentWhilstDragging <bool>

-SlideOpenComboBoxes <bool>

-SmoothEdgesScreenFonts <bool>

-SmoothScrollListBoxes <bool>

-DropShadowsIcon <bool>

-Force <SwitchParameter> Force Optimization.

-Name <string> The name or server for which to modify the Image Optimization settings.

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

-Id <uint> The ID of a server for which to modify the Image Optimization settings.

-InputObject <RASSerilazableObjarrow-up-right> An object of type RDS, VDITemplate or VDIDesktop for which to modify the Image Optimization settings.

-ObjType <OptimizationServerObjTypearrow-up-right> The Object Type for which to modify the Image Optimization settings. Possible values: RDSHost, RDS, VDIHostPool, AVDHostPool, RDSTemplate, VDITemplate, AVDTemplate

-DefObjType <ServerDefObjTypearrow-up-right> The Default Object Type for which to modify the Image Optimization settings. Possible values: RDSDef, VDIDef, AVDSingleSessionDefaultSettings, AVDMultiSessionDefaultSettings, VDIGuestDef

<CommonParameters>

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

Last updated