Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit05e4436

Browse files
update configs
1 parent210d3d1 commit05e4436

File tree

2 files changed

+28
-12
lines changed

2 files changed

+28
-12
lines changed

‎AppOptimizeAndConfig.ps1‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@
2323
CFG_EnableLyncStartup
2424
CFG_RemoveAppxPackages
2525
CFG_RemoveFODPackages
26-
27-
26+
2827
.NOTES
2928
Author: Richard Tracy
30-
Last Update: 05/15/2019
31-
Version: 1.1.1
29+
Last Update: 05/24/2019
30+
Version: 1.1.2
3231
Thanks to: unixuser011,W4RH4WK,TheVDIGuys,cluberti
3332
3433
.EXAMPLE
3534
#Copy this to MDT CustomSettings.ini
36-
Properties=CFG_DisableAppScript,CFG_UseLGPOForConfigs,LGPOPath,CFG_DisableOfficeAnimation,CFG_EnableIESoftwareRender,CFG_EnableLyncStartup,CFG_RemoveAppxPackages,CFG_RemoveFODPackages
35+
Properties=CFG_DisableAppScript,CFG_UseLGPOForConfigs,LGPOPath,CFG_DisableOfficeAnimation,CFG_EnableIESoftwareRender,CFG_EnableLyncStartup,CFG_RemoveAppxPackages,CFG_RemoveFODPackages,CFG_RemoveUnusedPrinters
3736
3837
#Then add each option to a priority specifically for your use, like:
3938
[Default]
@@ -50,6 +49,7 @@
5049
https://github.com/cluberti/VDI/blob/master/ConfigAsVDI.ps1
5150
5251
.LOG
52+
1.1.2 - May 24, 2019 - Removed IE customized settings
5353
1.1.1 - May 15, 2019 - Added Get-ScriptPpath function to support VScode and ISE; fixed Set-UserSettings
5454
1.1.0 - May 10, 2019 - added appx removal Feature on Demand removal, reorganized controls in categories
5555
1.0.4 - May 09, 2019 - added Office detection
@@ -930,7 +930,6 @@ Write-Host "logging to file: $LogFilePath" -ForegroundColor Cyan
930930
[boolean]$RemoveAppxPackages=$false
931931
[boolean]$RemoveFODPackages=$false
932932

933-
934933
# When running in Tasksequence and configureation exists, use that instead
935934
If(Get-SMSTSENV){
936935
# Global Settings
@@ -981,7 +980,6 @@ If($OfficeInstalled){
981980

982981
If($EnableIESoftwareRender){
983982
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
985983
}
986984
Else{$stepCounter++}
987985

@@ -1142,5 +1140,4 @@ If($RemoveFODPackages)
11421140
}
11431141
Else{$stepCounter++}
11441142

1145-
11461143
Show-ProgressStatus-Message'Completed'-Step$script:maxSteps-MaxStep$script:maxSteps

‎Win10OptimizeAndConfig.ps1‎

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,18 @@
9797
CFG_RemoveActiveSetupComponents
9898
CFG_PreCompileAssemblies
9999
CFG_OptimizeNetwork
100+
CFG_RemoveUnusedPrinters
100101
101102
.NOTES
102103
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
105106
Thanks to: unixuser011,W4RH4WK,TheVDIGuys,cluberti
106107
107108
.EXAMPLE
108109
#Copy this to MDT CustomSettings.ini
109110
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
111112
112113
#Then add each option to a priority specifically for your use, like:
113114
[Default]
@@ -124,6 +125,7 @@
124125
https://github.com/cluberti/VDI/blob/master/ConfigAsVDI.ps1
125126
126127
.LOGS
128+
3.1.6 - May 24, 2019 - Added Unused Printer removal, fixed DisableIEFirstRunWizard section
127129
3.1.5 - May 15, 2019 - Added Get-ScriptPpath function to support VScode and ISE; fixed Set-UserSettings
128130
3.1.4 - May 10, 2019 - added strict smart card login scenario; reorganized controls in categories
129131
fixed PS module import
@@ -1118,6 +1120,7 @@ Write-Host "logging to file: $LogFilePath" -ForegroundColor Cyan
11181120
[boolean]$DisableWindowsUpgrades=$false
11191121
[boolean]$ApplyPrivacyMitigations=$false
11201122
[boolean]$RemoveRebootOnLockScreen=$false
1123+
[boolean]$RemoveUnusedPrinters=$false
11211124
# System Adv Settings
11221125
[boolean]$DisableSmartCardLogon=$false
11231126
[boolean]$ForceStrictSmartCardLogon=$false
@@ -1206,6 +1209,7 @@ If(Get-SMSTSENV){
12061209
If($tsenv:CFG_DisableWindowsUpgrades){[boolean]$DisableWindowsUpgrades= [boolean]::Parse($tsenv.Value("CFG_DisableWindowsUpgrades"))}
12071210
If($tsenv:CFG_ApplyPrivacyMitigations){[boolean]$ApplyPrivacyMitigations= [boolean]::Parse($tsenv.Value("CFG_ApplyPrivacyMitigations"))}
12081211
If($tsenv:CFG_RemoveRebootOnLockScreen){[boolean]$RemoveRebootOnLockScreen= [boolean]::Parse($tsenv.Value("CFG_RemoveRebootOnLockScreen"))}
1212+
If($tsenv:CFG_RemoveUnusedPrinters){[boolean]$RemoveUnusedPrinters= [boolean]::Parse($tsenv.Value("CFG_RemoveUnusedPrinters"))}
12091213
# System Adv Settings
12101214
If($tsenv:CFG_DisableSmartCardLogon){[boolean]$DisableSmartCardLogon= [boolean]::Parse($tsenv.Value("CFG_DisableSmartCardLogon"))}
12111215
If($tsenv:CFG_ForceStrictSmartCardLogon){[boolean]$ForceStrictSmartCardLogon= [boolean]::Parse($tsenv.Value("CFG_ForceStrictSmartCardLogon"))}
@@ -1675,12 +1679,19 @@ If($DisableAllNotifications)
16751679
Else{$stepCounter++}
16761680

16771681

1678-
If ($DisabledIEFirstRunWizard)
1682+
If ($DisableIEFirstRunWizard)
16791683
{
16801684
# Disable IE First Run Wizard
16811685
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:40] ::"}
16821686
Show-ProgressStatus-Message ("{0}Disabling IE First Run Wizard"-f$prefixmsg)-Step ($stepCounter++)-MaxStep$script:Maxsteps
16831687
Set-SystemSetting-Path'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main'-Name'DisableFirstRunCustomize'-Type DWord-Value'1'-Force-TryLGPO:$true
1688+
Set-SystemSetting-Path'HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main'-Name'RunOnceHasShown'-Type DWord-Value'1'-Force
1689+
Set-SystemSetting-Path'HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main'-Name'RunOnceComplete'-Type DWord-Value'1'-Force
1690+
1691+
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+
16841695
}
16851696
Else{$stepCounter++}
16861697

@@ -3258,4 +3269,12 @@ If ($PreCompileAssemblies -or $OptimizeForVDI)
32583269
Else{$stepCounter++}
32593270

32603271

3272+
If($RemoveUnusedPrinters)
3273+
{
3274+
$filter="Microsoft XPS Document Writer|Microsoft Print to PDF"
3275+
3276+
Get-Printer|Where{$_.Name-notmatch$filter}|Remove-Printer-PassThru-Confirm:$false
3277+
3278+
}
3279+
32613280
Show-ProgressStatus-Message'Completed'-Step$script:maxSteps-MaxStep$script:maxSteps

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp