Set-RASImageOptimization.md
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)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseOptimizationType
Possible values: Automatic, Manual
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsDefenderATPEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsComponentsEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsServicesEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsScheduledTasksEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsAdvancedOptionsEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseNetworkPerformanceEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseRegistryEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseVisualEffectsEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDiskCleanupEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCustomScriptEnabled (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWinDefATPTurnOffOn
Possible values: TurnOffWindowsDefenderATP, TurnOnWindowsDefenderATP
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDisableRealTimeProtection (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseExcludeFolders (string[])
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseExcludeProcesses (string[])
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseExcludeExtension (string[])
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falsePartialStartLayoutContent (string)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseHibernate (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseTeleCollection (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSystemRestore (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseAdditionalErrorReport (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseTiles (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCortana (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseMicrosoftConsumerExperience (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseWindowsTips (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCommonProgramGroups (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falsePartialStartMenu (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDirCacheMax (uint)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDormantFileLimit (uint)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFileNotFoundCache (uint)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFileInfoCache (uint)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFileInfoCacheEnable (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDirectoryCacheEnable (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFileNotFoundCacheEnable (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDormantFileLimitEnable (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDisableTCP (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDisableIPv6CompEnable (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDisableIPv6ToIPv4 (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDisableIsaTap (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseArguments (string)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCommand (string)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseInitDir (string)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseUser (string)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falsePassword (SecureString)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCleanupWinSxSFolder (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCleanupSystemFiles (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseCleanupTemporaryFileLogs (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseRemoveOneDrive (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDeleteUserProfiles (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseVisualEffectsTypes
Possible values: LetWindowsChooseWhatsBest, AdjustForBestAppearance, AdjustForBestAppearnce, AdjustForBestPerformance, Custom
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseAnimateControlSelectElements (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseAnimateWindowsWhenMinimizingMaximizing (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseAnimateTaskbar (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseEnablePeek (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFadeSlideMenus (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFadeSlideToolTips (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseFadeOutMenuItems (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSaveTaskbarThumbnail (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseShowShadowUnderMouse (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseShadowUnderWindows (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseThumbnailsInsteadOfIcons (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseShowTranslucentSelection (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseShowWindowsContentWhilstDragging (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSlideOpenComboBoxes (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSmoothEdgesScreenFonts (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseSmoothScrollListBoxes (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseDropShadowsIcon (bool)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? falseForce (SwitchParameter)
Force Optimization.
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? falseName (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? falseSiteId (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? falseId (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? falseInputObject
(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? falseObjType
(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? falseDefObjType (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. **---------- 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
Last updated