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

Commit953347d

Browse files
Update Win10OptimizeAndConfig.ps1
1 parent228fcfa commit953347d

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

‎Win10OptimizeAndConfig.ps1‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,8 +1335,8 @@ If($DisableActionCenter)
13351335

13361336
Set-SystemSetting-Path"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell"-Name"UseActionCenterExperience"-Type DWord-Value0-Force
13371337

1338-
Set-UserSetting-Message$CFGMessage-Path"HKEY_USERS\$($UserProfile.SID)\SOFTWARE\Policies\Microsoft\Windows\Explorer"-Name"DisableNotificationCenter"-Type DWord-Value1-Force-TryLGPO:$true
1339-
Set-UserSetting-Message$CFGMessage-Path"HKEY_USERS\$($UserProfile.SID)\SOFTWARE\Policies\Microsoft\Windows\Explorer"-Name"DisableNotificationCenter"-Type DWord-Value1-Force-TryLGPO:$true
1338+
Set-UserSetting-Message$CFGMessage-Path"SOFTWARE\Policies\Microsoft\Windows\Explorer"-Name"DisableNotificationCenter"-Type DWord-Value1-Force-TryLGPO:$true
1339+
Set-UserSetting-Message$CFGMessage-Path"SOFTWARE\Policies\Microsoft\Windows\Explorer"-Name"DisableNotificationCenter"-Type DWord-Value1-Force-TryLGPO:$true
13401340

13411341
}
13421342
Else{$stepCounter++}
@@ -1348,8 +1348,8 @@ If($DisableFeedback)
13481348
#Show-ProgressStatus -Message $CFGMessage -Step ($stepCounter++) -MaxStep $script:Maxsteps
13491349

13501350
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:7] [Optional] ::"}
1351-
Set-UserSetting-Message ("{1}{0}"-f$CFGMessage,$prefixmsg)-Path"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"-Name"NumberOfSIUFInPeriod"-Type DWord-Value0-Force
1352-
Set-UserSetting-Message ("{1}{0}"-f$CFGMessage,$prefixmsg)-Path"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"-Name"PeriodInNanoSeconds"-Type DWord-Value0-Force
1351+
Set-UserSetting-Message ("{1}{0}"-f$CFGMessage,$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"-Name"NumberOfSIUFInPeriod"-Type DWord-Value0-Force
1352+
Set-UserSetting-Message ("{1}{0}"-f$CFGMessage,$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"-Name"PeriodInNanoSeconds"-Type DWord-Value0-Force
13531353

13541354
Write-LogEntry"Disabling all feedback Scheduled Tasks..."
13551355
Disable-ScheduledTask-TaskName"Microsoft\Windows\Feedback\Siuf\DmClient"-ErrorAction SilentlyContinue|Out-Null
@@ -1598,7 +1598,7 @@ If ($DisableOneDrive)
15981598

15991599
Write-LogEntry"Disabling personal accounts for OneDrive synchronization..."
16001600
Set-SystemSetting-Path'HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive'-Name'DisablePersonalSync'-Type DWord-Value'1'-Force
1601-
Set-UserSetting-Message'Removing Onedrive'-RegPath"Software\Microsoft\Windows\CurrentVersion\Run"-Name'OneDriveSetup'-Remove-Force
1601+
Set-UserSetting-Message'Removing Onedrive'-RegPath"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"-Name'OneDriveSetup'-Remove-Force
16021602

16031603
#uninstall OneDrive
16041604
if (Test-Path"C:\Windows\System32\OneDriveSetup.exe"){
@@ -1631,7 +1631,7 @@ If ($DisableOneDrive)
16311631
Remove-Item-Path"HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}"-Recurse-ErrorAction SilentlyContinue
16321632

16331633
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:203] ::"}
1634-
Set-UserSetting-Message ("{0}Disabling Microsoft OneDrive startup run..."-f$prefixmsg)-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run"-Name OneDrive-Type Binary-Value 0300000064A102EF4C3ED101-Force
1634+
Set-UserSetting-Message ("{0}Disabling Microsoft OneDrive startup run..."-f$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run"-Name OneDrive-Type Binary-Value 0300000064A102EF4C3ED101-Force
16351635
If ($OSBuildNumber-le15063)
16361636
{
16371637
Remove-Item-Path'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}'-Recurse-ErrorAction SilentlyContinue
@@ -2363,7 +2363,7 @@ If ($ApplyPrivacyMitigations)
23632363
Set-SystemSetting-Path"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\NcdAutoSetup\Private"-Name"AutoSetup"-Type DWord-Value0-Force
23642364

23652365
Write-LogEntry"Privacy Mitigations :: Disabling customer experience improvement program..."
2366-
Set-SystemSetting-Path'HKLM:\Software\Microsoft\SQMClient\Windows'-Name'CEIPEnable'-Type DWord-Value'0'-Force
2366+
Set-SystemSetting-Path'HKLM:\SOFTWARE\Microsoft\SQMClient\Windows'-Name'CEIPEnable'-Type DWord-Value'0'-Force
23672367

23682368
Write-LogEntry"Privacy Mitigations :: Disabling sending settings to cloud..."
23692369
Set-SystemSetting-Path'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SettingSync'-Name'DisableSettingSync'-Type DWord-Value2-Force-TryLGPO:$true
@@ -2757,7 +2757,7 @@ If ($OptimizeForVDI)
27572757
Set-SystemSetting-Path"HKLM:\SOFTWARE\Policies\Microsoft\Windows\StorageSense"-Name"AllowStorageSenseGlobal"-Type DWord-Value0-Force-TryLGPO:$true
27582758

27592759
Write-LogEntry"VDI Optimizations [OSOT ID:32] :: Disabling customer experience improvement program..."
2760-
Set-SystemSetting-Path'HKLM:\Software\Microsoft\SQMClient\Windows'-Name'CEIPEnable'-Type DWord-Value'0'-Force
2760+
Set-SystemSetting-Path'HKLM:\SOFTWARE\Microsoft\SQMClient\Windows'-Name'CEIPEnable'-Type DWord-Value'0'-Force
27612761

27622762
Write-LogEntry"VDI Optimizations [OSOT ID:34] :: Enabling Automatically Reboot for the Crash Control"
27632763
Set-SystemSetting-Path"HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl"-Name"AutoReboot"-Type DWord-Value1-Force
@@ -2876,8 +2876,8 @@ If ($OptimizeForVDI)
28762876
Set-UserSetting-Message"VDI Optimizations :: Change Explorer Default View..."-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"LaunchTo"-Type DWord-Value1-Force
28772877
Set-UserSetting-Message"VDI Optimizations :: Settings Temporary Internet Files to Non Persistent"-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Cache"-Name"Persistent"-Value0-Type DWord-Force
28782878
Set-UserSetting-Message"VDI Optimizations [OSOT 11] :: Disable RSS Feeds"-Path"SOFTWARE\Microsoft\Feeds"-Name"SyncStatus"-Type DWord-Value0-Force
2879-
Set-UserSetting-Message"VDI Optimizations [OSOT ID:8] :: Disabling show most used apps at start menu"-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"Start_TrackProgs"-Type DWord-Value0-Force
2880-
Set-UserSetting-Message"VDI Optimizations [OSOT ID:9] :: Disabling show recent items at start menu"-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"Start_TrackDocs"-Type DWord-Value0-Force
2879+
Set-UserSetting-Message"VDI Optimizations [OSOT ID:8] :: Disabling show most used apps at start menu"-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"Start_TrackProgs"-Type DWord-Value0-Force
2880+
Set-UserSetting-Message"VDI Optimizations [OSOT ID:9] :: Disabling show recent items at start menu"-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"Start_TrackDocs"-Type DWord-Value0-Force
28812881
Set-UserSetting-Message"VDI Optimizations [OSOT ID:30] :: Disabling Toast notifications to the lock screen"-Path"SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications"-Name'NoToastApplicationNotificationOnLockScreen'-Type DWord-Value'1'-Force
28822882
Set-UserSetting-Message"VDI Optimizations [VDIGUYS] :: Remove People Button From the Task Bar in Windows"-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People"-Name"PeopleBand"-Type DWord-Value0-Force
28832883

@@ -2947,7 +2947,7 @@ If($EnableVisualPerformance)
29472947
Show-ProgressStatus-Message"Adjusting visual effects for performance"-Step ($stepCounter++)-MaxStep$script:Maxsteps
29482948

29492949
Write-LogEntry ("Disabling Checkbox selections on folders and files..."-f$prefixmsg)
2950-
Set-SystemSetting-Path"HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name'AutoCheckSelect'-Type DWord-Value'0'-Force
2950+
Set-SystemSetting-Path"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name'AutoCheckSelect'-Type DWord-Value'0'-Force
29512951

29522952
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:83] ::"}
29532953
Write-LogEntry ("{0}Disabling Animate windows when minimizing and maxmizing Visual Effect..."-f$prefixmsg)
@@ -2981,7 +2981,7 @@ If($EnableVisualPerformance)
29812981

29822982
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:72] ::"}
29832983
Set-UserSetting-Message ("{0}Setting Windows Visual Effects to Optimized for best performance"-f$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects"-Name"VisualFXSetting"-Type DWord-Value3-Force
2984-
Set-UserSetting-Message ("{0}Disabling Checkbox selections on folders and files"-f$prefixmsg)-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name'AutoCheckSelect'-Type DWord-Value'0'-Force
2984+
Set-UserSetting-Message ("{0}Disabling Checkbox selections on folders and files"-f$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name'AutoCheckSelect'-Type DWord-Value'0'-Force
29852985

29862986
If($OptimizeForVDI){$prefixmsg="VDI Optimizations [OSOT ID:83] ::"}
29872987
Set-UserSetting-Message ("{0}Disabling Animate windows when minimizing and maxmizing Visual Effect"-f$prefixmsg)-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax"-Name'DefaultValue'-Type DWord-Value'0'-Force
@@ -3045,17 +3045,17 @@ If($EnableVisualPerformance)
30453045
Set-UserSetting-Message ("Enabling TaskBar Icons Only")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"IconsOnly"-Type DWord-Value1-Force
30463046
Set-UserSetting-Message ("Disabling Desktop Shortcut Icons")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"HideIcons"-Type DWord-Value0-Force
30473047
Set-UserSetting-Message ("Disabling Explorer Information Tip")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"-Name"ShowInfoTip"-Type DWord-Value0-Force
3048-
Set-UserSetting-Message ("Disabling Combobox Slide Animations")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3049-
Set-UserSetting-Message ("Disabling Window Animations")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3050-
Set-UserSetting-Message ("Disabling Cursor Shadow")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3051-
Set-UserSetting-Message ("Disabling Content while dragging")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3052-
Set-UserSetting-Message ("Disabling Window shadows")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3053-
Set-UserSetting-Message ("Disabling Listbox smooth scrolling")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3054-
Set-UserSetting-Message ("Disabling Start Menu Animations")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3055-
Set-UserSetting-Message ("Disabling Windows Fade")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3056-
Set-UserSetting-Message ("Disabling Themes")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3057-
Set-UserSetting-Message ("Disabling Thumbnails")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3058-
Set-UserSetting-Message ("Disabling ToolTip Animations")-Path"Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3048+
Set-UserSetting-Message ("Disabling Combobox Slide Animations")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ComboBoxAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3049+
Set-UserSetting-Message ("Disabling Window Animations")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ControlAnimations"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3050+
Set-UserSetting-Message ("Disabling Cursor Shadow")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\CursorShadow"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3051+
Set-UserSetting-Message ("Disabling Content while dragging")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DragFullWindows"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3052+
Set-UserSetting-Message ("Disabling Window shadows")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\DropShadow"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3053+
Set-UserSetting-Message ("Disabling Listbox smooth scrolling")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ListBoxSmoothScrolling"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3054+
Set-UserSetting-Message ("Disabling Start Menu Animations")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\MenuAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3055+
Set-UserSetting-Message ("Disabling Windows Fade")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\SelectionFade"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3056+
Set-UserSetting-Message ("Disabling Themes")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\Themes"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3057+
Set-UserSetting-Message ("Disabling Thumbnails")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\ThumbnailsOrIcon"-Name'DefaultApplied'-Type DWord-Value'0'-Force
3058+
Set-UserSetting-Message ("Disabling ToolTip Animations")-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\TooltipAnimation"-Name'DefaultApplied'-Type DWord-Value'0'-Force
30593059
}
30603060
Else{$stepCounter++}
30613061

@@ -3168,7 +3168,7 @@ If ($DisableAppSuggestions)
31683168
Write-LogEntry ("Disabling`"{0}`" option [{1}]..."-f$AdName,$key.Key)
31693169

31703170
Show-ProgressStatus-Message"Disabling App Suggestions"-SubMessage ("Disabling:`"{2}`" ({0} of {1})"-f$i,$AppSuggestions.count,$AdName)-Step$i-MaxStep$AppSuggestions.count
3171-
Set-ItemProperty-Path"HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"-Name$key.Key-Type DWord-Value0
3171+
Set-ItemProperty-Path"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"-Name$key.Key-Type DWord-Value0
31723172

31733173
Set-UserSetting-Message"Disabling App Suggestion"-Path"SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager"-Name$key.Key-Type DWord-Value0-Force
31743174
<#

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp