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)

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

(VisualEffectsType)

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

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

ObjType

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

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

DefObjType (ServerDefObjType)

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