You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
# When running in Tasksequence and configureation exists, use that instead
935
934
If(Get-SMSTSENV){
936
935
# Global Settings
@@ -981,7 +980,6 @@ If($OfficeInstalled){
981
980
982
981
If($EnableIESoftwareRender){
983
982
Set-UserSetting-Message"Enabling Software Rendering For IE"-Path"SOFTWARE\Microsoft\Internet Explorer\Main"-Name'UseSWRender'-Type DWord-Value1-Force
984
-
Set-UserSetting-Message"Disabling First Run Wizard For IE"-Path"SOFTWARE\Microsoft\Internet Explorer\Main"-Name'DisableFirstRunCustomize'-Type DWord-Value3-Force
Copy file name to clipboardExpand all lines: Win10OptimizeAndConfig.ps1
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -97,17 +97,18 @@
97
97
CFG_RemoveActiveSetupComponents
98
98
CFG_PreCompileAssemblies
99
99
CFG_OptimizeNetwork
100
+
CFG_RemoveUnusedPrinters
100
101
101
102
.NOTES
102
103
Author: Richard Tracy
103
-
Last Update: 05/15/2019
104
-
Version: 3.1.5
104
+
Last Update: 05/24/2019
105
+
Version: 3.1.6
105
106
Thanks to: unixuser011,W4RH4WK,TheVDIGuys,cluberti
106
107
107
108
.EXAMPLE
108
109
#Copy this to MDT CustomSettings.ini
109
110
110
-
Properties=CFG_DisableConfigScript,CFG_UseLGPOForConfigs,LGPOPath,CFG_OptimizeForVDI,CFG_EnableVisualPerformance,CFG_InstallLogonScript,CFG_LogonScriptPath,CFG_EnableDarkTheme,CFG_EnableTaskbarAutoColor,CFG_DisableFontSmoothing,CFG_DisableCortana,CFG_DisableInternetSearch,CFG_EnableOfficeOneNote,CFG_DisableOneDrive,CFG_DisableWindowsFirstLoginAnimation,CFG_DisableIEFirstRunWizard,CFG_DisableWMPFirstRunWizard,CFG_ShowKnownExtensions,CFG_ShowHiddenFiles,CFG_ShowThisPCOnDesktop,CFG_ShowUserFolderOnDesktop,CFG_RemoveRecycleBinOnDesktop,CFG_Hide3DObjectsFromExplorer,CFG_DisableEdgeShortcut,CFG_DisableStoreOnTaskbar,CFG_DisableActivityHistory,CFG_SetSmartScreenFilter,CFG_EnableNumlockStartup,CFG_DisableAppSuggestions,,#// System Settings,CFG_InstallPSModules,CFG_SetPowerCFG,CFG_PowerCFGFilePath,CFG_EnableIEEnterpriseMode,CFG_IEEMSiteListPath,CFG_ApplyCustomHost,HostPath,CFG_EnableSecureLogonCAD,CFG_DisableAllNotifications,CFG_EnableVerboseMsg,CFG_DisableAutoRun,CFG_PreferIPv4OverIPv6,CFG_EnableAppsRunAsAdmin,CFG_HideDrives,CFG_DisableActionCenter,CFG_DisableFeedback,CFG_DisableWUP2P,CFG_DisablePreviewBuild,CFG_DisableDriverUpdates,CFG_DisableWindowsUpgrades,CFG_ApplyPrivacyMitigations,CFG_RemoveRebootOnLockScreen,CFG_DisableSmartCardLogon,CFG_ForceStrictSmartCardLogon,CFG_EnableFIPS,CFG_EnableCredGuard,CFG_DisableUAC,CFG_EnableStrictUAC,CFG_EnableRDP,CFG_EnableWinRM,CFG_EnableRemoteRegistry,CFG_EnableUEV,CFG_EnableAppV,CFG_EnablePSLogging,CFG_EnableLinuxSubSystem,CFG_DisableAdminShares,CFG_DisableSchTasks,CFG_DisableDefender,CFG_DisableFirewall,CFG_DisableWireless,CFG_DisableBluetooth,CFG_DisableNewNetworkDialog,CFG_DisableInternetServices,CFG_DisabledUnusedServices,CFG_DisabledUnusedFeatures,CFG_DisableIndexing,CFG_RemoveActiveSetupComponents,CFG_PreCompileAssemblies,CFG_OptimizeNetwork
111
+
Properties=CFG_DisableConfigScript,CFG_UseLGPOForConfigs,LGPOPath,CFG_OptimizeForVDI,CFG_EnableVisualPerformance,CFG_InstallLogonScript,CFG_LogonScriptPath,CFG_EnableDarkTheme,CFG_EnableTaskbarAutoColor,CFG_DisableFontSmoothing,CFG_DisableCortana,CFG_DisableInternetSearch,CFG_EnableOfficeOneNote,CFG_DisableOneDrive,CFG_DisableWindowsFirstLoginAnimation,CFG_DisableIEFirstRunWizard,CFG_DisableWMPFirstRunWizard,CFG_ShowKnownExtensions,CFG_ShowHiddenFiles,CFG_ShowThisPCOnDesktop,CFG_ShowUserFolderOnDesktop,CFG_RemoveRecycleBinOnDesktop,CFG_Hide3DObjectsFromExplorer,CFG_DisableEdgeShortcut,CFG_DisableStoreOnTaskbar,CFG_DisableActivityHistory,CFG_SetSmartScreenFilter,CFG_EnableNumlockStartup,CFG_DisableAppSuggestions,,#// System Settings,CFG_InstallPSModules,CFG_SetPowerCFG,CFG_PowerCFGFilePath,CFG_EnableIEEnterpriseMode,CFG_IEEMSiteListPath,CFG_ApplyCustomHost,HostPath,CFG_EnableSecureLogonCAD,CFG_DisableAllNotifications,CFG_EnableVerboseMsg,CFG_DisableAutoRun,CFG_PreferIPv4OverIPv6,CFG_EnableAppsRunAsAdmin,CFG_HideDrives,CFG_DisableActionCenter,CFG_DisableFeedback,CFG_DisableWUP2P,CFG_DisablePreviewBuild,CFG_DisableDriverUpdates,CFG_DisableWindowsUpgrades,CFG_ApplyPrivacyMitigations,CFG_RemoveRebootOnLockScreen,CFG_DisableSmartCardLogon,CFG_ForceStrictSmartCardLogon,CFG_EnableFIPS,CFG_EnableCredGuard,CFG_DisableUAC,CFG_EnableStrictUAC,CFG_EnableRDP,CFG_EnableWinRM,CFG_EnableRemoteRegistry,CFG_EnableUEV,CFG_EnableAppV,CFG_EnablePSLogging,CFG_EnableLinuxSubSystem,CFG_DisableAdminShares,CFG_DisableSchTasks,CFG_DisableDefender,CFG_DisableFirewall,CFG_DisableWireless,CFG_DisableBluetooth,CFG_DisableNewNetworkDialog,CFG_DisableInternetServices,CFG_DisabledUnusedServices,CFG_DisabledUnusedFeatures,CFG_DisableIndexing,CFG_RemoveActiveSetupComponents,CFG_PreCompileAssemblies,CFG_OptimizeNetwork,CFG_RemoveUnusedPrinters
111
112
112
113
#Then add each option to a priority specifically for your use, like:
Set-UserSetting-Message ("{0}Disabling IE First Run Wizard"-f$prefixmsg)-Path"SOFTWARE\Policies\Microsoft\Internet Explorer\Main"-Name'DisableFirstRunCustomize'-Type DWord-Value'1'-Force-TryLGPO:$true
1692
+
Set-UserSetting-Message"Setting Show Run in IE"-Path"SOFTWARE\Microsoft\Internet Explorer\Main"-Name'RunOnceHasShown'-Type DWord-Value'1'-Force
1693
+
Set-UserSetting-Message"Setting Run Once Comleted in IE"-Path"SOFTWARE\Microsoft\Internet Explorer\Main"-Name'RunOnceComplete'-Type DWord-Value'1'-Force
1694
+
1684
1695
}
1685
1696
Else{$stepCounter++}
1686
1697
@@ -3258,4 +3269,12 @@ If ($PreCompileAssemblies -or $OptimizeForVDI)
3258
3269
Else{$stepCounter++}
3259
3270
3260
3271
3272
+
If($RemoveUnusedPrinters)
3273
+
{
3274
+
$filter="Microsoft XPS Document Writer|Microsoft Print to PDF"