Skip to content

Commit 882158b

Browse files
add ie and edge configs
1 parent 3ff134d commit 882158b

File tree

2 files changed

+53
-22
lines changed

2 files changed

+53
-22
lines changed

AppOptimizeAndConfig.ps1

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,8 @@ Write-Host "logging to file: $LogFilePath" -ForegroundColor Cyan
950950
[boolean]$EnableLyncStartup = $false
951951
[boolean]$RemoveAppxPackages = $false
952952
[boolean]$RemoveFODPackages = $false
953+
[boolean]$ForceIEHomepage = $false
954+
[boolean]$ForceEdgeHomepage = $false
953955

954956
# When running in Tasksequence and configureation exists, use that instead
955957
If(Get-SMSTSENV){
@@ -965,6 +967,9 @@ If(Get-SMSTSENV){
965967
If($tsenv:CFG_EnableLyncStartup){[boolean]$EnableLyncStartup = [boolean]::Parse($tsenv.Value("CFG_EnableLyncStartup"))}
966968
If($tsenv:CFG_RemoveAppxPackages){[boolean]$RemoveAppxPackages = [boolean]::Parse($tsenv.Value("CFG_RemoveAppxPackages"))}
967969
If($tsenv:CFG_RemoveFODPackages){[boolean]$RemoveFODPackages = [boolean]::Parse($tsenv.Value("CFG_RemoveFODPackages"))}
970+
If($tsenv:CFG_ForceIEHomepage){[boolean]$ForceIEHomepage = [boolean]::Parse($tsenv.Value("CFG_ForceIEHomepage"))}
971+
If($tsenv:CFG_ForceEdgeHomepage){[boolean]$ForceEdgeHomepage = [boolean]::Parse($tsenv.Value("CFG_ForceEdgeHomepage"))}
972+
If($tsenv:Homepage){$Homepage = $tsenv.Value("Homepage")}
968973
}
969974

970975
# Ultimately disable the entire script. This is useful for testing and using one task sequences with many rules
@@ -1008,6 +1013,28 @@ If($EnableIESoftwareRender){
10081013
Else{$stepCounter++}
10091014

10101015

1016+
If($ForceIEHomepage -and $Homepage){
1017+
Set-UserSetting -Message "Setting Homepage For IE" -Path 'SOFTWARE\Microsoft\Internet Explorer\Main' -Name 'Start Page' -Type String -Value $Homepage -Force
1018+
Set-UserSetting -Message "Setting Default Page For IE" -Path 'SOFTWARE\Microsoft\Internet Explorer\Main' -Name 'Default_Page_URL' -Type String -Value $Homepage -Force
1019+
Set-UserSetting -Message "Enabling Continuous Browsing For IE" -Path 'SOFTWARE\Microsoft\Internet Explorer\ContinuousBrowsing' -Name 'Enabled' -Type DWord -Value 1 -Force
1020+
Set-UserSetting -Message "Disabling Default browser prompt For IE" -Path 'SOFTWARE\Microsoft\Internet Explorer\Main' -Name 'Check_Associations' -Type String -Value 'No' -Force
1021+
Set-UserSetting -Message "Enable new tab homepage For IE" -Path 'Software\Microsoft\Internet Explorer\TabbedBrowsing' -Name 'NewTabbedPageShow' -Type DWord -Value 1 -Force
1022+
}
1023+
Else{$stepCounter++}
1024+
1025+
1026+
If($ForceEdgeHomepage -and $Homepage){
1027+
Set-UserSetting -Message "Setting Homepage For Edge" -Path 'SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main' -Name 'HomeButtonPage' -Type String -Value $Homepage -Force
1028+
Set-UserSetting -Message "Enabling Home button For Edge" -Path 'SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main' -Name 'HomeButtonEnabled' -Type DWord -Value 1 -Force
1029+
Set-UserSetting -Message "Disabling startpage lockdown For Edge" -Path 'SOFTWARE\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'DisableLockdownOfStartPages' -Type DWord -Value 1 -Force -TryLGPO:$true
1030+
Set-UserSetting -Message "Enabling provisioned homepages For Edge" -Path 'SOFTWARE\Policies\Microsoft\MicrosoftEdge\Internet Settings' -Name 'ProvisionedHomePages' -Type String -Value $Homepage -Force -TryLGPO:$true
1031+
Set-UserSetting -Message "Disabling First run For Edge" -Path 'SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FirstRun' -Name 'LastFirstRunVersionDelivered' -Type DWord -Value 1 -Force
1032+
Set-UserSetting -Message "Disabling IE10 Tour Show For Edge" -Path 'SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main' -Name 'IE10TourShown' -Type DWord -Value 1 -Force
1033+
Set-UserSetting -Message "Disabling Default browser prompt For Edge" -Path 'SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main' -Name 'DisallowDefaultBrowserPrompt' -Type DWord -Value 1 -Force
1034+
}
1035+
Else{$stepCounter++}
1036+
1037+
10111038
If ($DisableOfficeAnimation -and $OfficeInstalled){
10121039
Set-UserSetting -Message "Disabling OST Cache mode for $OfficeTitle" -Path "SOFTWARE\Policies\Microsoft\Office\$OfficeVersion\Outlook\ost" -Name 'NoOST' -Type DWord -Value 2 -Force
10131040
Set-UserSetting -Message "Disabling Exchange cache mode for $OfficeTitle" -Path "SOFTWARE\Policies\Microsoft\Office\$OfficeVersion\Outlook\cache mode" -Name 'Enable' -Type DWord -Value 0 -Force

CustomSettings.example.ini

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
Priority=MacAddress,DefaultGateway,Make,Model,Default
66
Properties=SavedJoinDomain,CaptureSection,Prefix,BgColor,TPMEnabled,TPMActivated,TPMOwned,CCTKPath,CCTKInstallerVersion,BIOSSettingsFile,NewBIOSPassword,BIOSPasswords(*),AssetTag,ForceUEFI,OSBootDiskOverrideWQL,EZTVURL,DVConfigFile,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,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_RemoveUnusedPrinters,CFG_DisableSmartCardLogon,CFG_ForceStrictSmartCardLogon,CFG_EnableFIPS,CFG_EnableCredGuard,CFG_DisableUAC,CFG_EnableStrictUAC,CFG_EnableRDP,CFG_EnableWinRM,CFG_EnableRemoteRegistry,CFG_EnableUEV,CFG_EnableAppV,CFG_DisableIPv6,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_DisableAppScript,CFG_DisableOfficeAnimation,CFG_EnableIESoftwareRender,CFG_EnableLyncStartup,CFG_RemoveAppxPackages,CFG_RemoveFODPackages,CFG_ForceEdgeHomepage,CFG_ForceIEHomepage,CFG_ApplySTIGItems,CFG_ApplyEMETMitigations
77
8-
9-
108
'// GATWAY DETECTION
119
[DefaultGateway]
1210
192.168.1.254=WKS
@@ -39,14 +37,6 @@ SkipApplications=YES
3937
'// Configuration Settings (Used by Win10OptimizeAndConfig.ps1)
4038
CFG_VDIOptimizations=True
4139
42-
'// Configuration Settings (used with AppOptimizeAndConfig.ps1)
43-
CFG_DisableAppScript=False
44-
CFG_DisableOfficeAnimation=True
45-
CFG_EnableIESoftwareRender=True
46-
CFG_EnableLyncStartup=True
47-
CFG_RemoveAppxPackages=False
48-
CFG_RemoveFODPackages=False
49-
5040
5141
'// DOMAIN SETTINGS
5242
[WKS]
@@ -197,17 +187,25 @@ FinishAction=REBOOT
197187
WSUSServer=http://WSUS.mydomain:8530
198188
EventService=http://MDT.mydomain:9800
199189

190+
HomePage=http://www.sublynx.com
191+
200192
'// Configuration Settings (used with Win10OptimizeAndConfig.ps1)
201-
'// Overall Settings
202-
CFG_DisableConfigScript=False
193+
'// Common Settings
203194
CFG_UseLGPOForConfigs=True
204195
CFG_PowerCFGFilePath=%DeployRoot%\Scripts\Custom\OS-Configs\Files\AlwaysOnPowerScheme.pow
205-
CFG_IEEMSiteListPath=\\%JoinDomain%\NETLOGON\IE_EM_List\SiteList.xml
206196
CFG_ApplyCustomHost=False
207197
HostPath=%DeployRoot%\Scripts\Custom\OS-Configs\Files\WindowsTelemetryhosts
208198

209-
'// VDI Performance
199+
' // LGPO SETTINGS ( used with ZTILGPOSettings.wsf AND Win10OptimizeAndConfig.ps1)
200+
'// Path to LGPO.exe
201+
LGPOPath=%DeployRoot%\Scripts\Custom\OS-Configs\Tools\LGPO\
202+
203+
'// Overall Configuation Script Control
210204
CFG_OptimizeForVDI=False
205+
CFG_DisableSTIGScript=True
206+
CFG_DisableAppScript=False
207+
208+
'// VDI Performance
211209
CFG_EnableVisualPerformance=False
212210
CFG_SetPowerCFG=Custom
213211

@@ -262,16 +260,16 @@ CFG_RemoveUnusedPrinters=False
262260
'//System Adv Settings
263261
CFG_DisableSmartCardLogon=False
264262
CFG_ForceStrictSmartCardLogon=False
265-
CFG_EnableFIPS=False
263+
CFG_EnableFIPS=True
266264
CFG_EnableCredGuard=True
267265
CFG_DisableUAC=False
268266
CFG_EnableStrictUAC=False
269267
CFG_EnableRDP=True
270268
CFG_EnableWinRM=True
271269
CFG_EnableRemoteRegistry=True
272-
CFG_EnableUEV=False
270+
CFG_EnableUEV=True
273271
CFG_EnableAppV=True
274-
CFG_EnablePSLogging=False
272+
CFG_EnablePSLogging=True
275273
CFG_EnableLinuxSubSystem=False
276274
CFG_DisableAdminShares=False
277275
CFG_EnableLinuxSubSystem=False
@@ -282,18 +280,24 @@ CFG_DisableWireless=True
282280
CFG_DisableBluetooth=True
283281
CFG_DisableNewNetworkDialog=True
284282
CFG_DisableInternetServices=True
285-
CFG_DisabledUnusedServices=False
283+
CFG_DisabledUnusedServices=True
286284
CFG_DisabledUnusedFeatures=True
287285
CFG_DisableIndexing=False
288286
CFG_RemoveActiveSetupComponents=True
289287
CFG_PreCompileAssemblies=True
290288
CFG_OptimizeNetwork=False
291289
292290
' // Configuration Settings ( used by: Win10STIGandMigration.ps1)
293-
CFG_DisableSTIGScript=True
294291
CFG_UseLGPOForConfigs=True
295-
CFG_ApplySTIGItems=False
296-
CFG_ApplyEMETMitigations=False
292+
CFG_ApplySTIGItems=True
293+
CFG_ApplyEMETMitigations=True
297294

298295
'// Configuration Settings (used with AppOptimizeAndConfig.ps1)
299-
CFG_DisableAppScript=True
296+
CFG_DisableOfficeAnimation=True
297+
CFG_EnableIESoftwareRender=True
298+
CFG_EnableLyncStartup=True
299+
CFG_RemoveAppxPackages=True
300+
CFG_RemoveFODPackages=True
301+
CFG_ForceEdgeHomepage=True
302+
CFG_ForceIEHomepage=True
303+

0 commit comments

Comments
 (0)