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)
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
OptimizationType
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
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
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) 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) 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)
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