87 Commits
3.3 ... 3.8

Author SHA1 Message Date
Disassembler
91a6afba1f v3.8, 2019-09-11
- Add "Enable updates for Microsoft products via Windows Update" (thx @farag2)
 - Add "Disable Microphone"
 - Add "Disable Recycle Bin" (thx @Robot1me)
 - Add "Show Build Number On Desktop" (thx @Cubox-)
 - Add "Show seconds in taskbar functions" (thx @reloxx13)
 - Add "Disable Automatic Restart after Windows Update"
 - Add several tweaks to disable network protocols (thx @gxjit)
 - Create new group for network tweaks and move appropriate tweaks there
 - Update DisableAppSuggestions to disable Ink Workspace suggestions
 - Update UninstallOneDrive to not remove user files if OneDrive has already been used
 - Update main execution loop to return nonzero exit code when module or preset file doesn't exist or can't be loaded
2019-09-11 14:37:17 +02:00
Disassembler
b6caea6a56 Remove DisableWebSearch warning as it's fixed by KB4515384, related to #262 2019-09-11 14:20:11 +02:00
Disassembler
a73dc396f7 Fix typo and suppress 2 more error messages 2019-09-09 20:33:25 +02:00
Disassembler
94d9046fd4 Reintroduce "Disable Automatic Restart after Windows Update" 2019-09-09 13:35:18 +02:00
Disassembler
f61ef1a899 Add tweaks to disable network protocols. Reimplements #257 (thx @gxjit) 2019-09-06 07:59:01 +02:00
Disassembler
965d033fd7 Create "Network Tweaks" group and move related tweaks 2019-09-05 17:23:00 +02:00
MoritzDa
a74666786c Add quotes in New-PSDrive commands (#259) 2019-09-05 15:10:45 +02:00
reloxx13
e75bfe9842 Add "Show seconds in taskbar functions" (#256) 2019-09-05 15:05:05 +02:00
Disassembler
58881c87f4 Reorder the new tweaks 2019-09-05 15:00:39 +02:00
Disassembler
3f09ce7b9e Add "Show Build Number On Desktop", closes #255 (thx @Cubox-) 2019-09-05 14:23:28 +02:00
Disassembler
bf69210346 Add Write-Output strings 2019-09-05 14:22:45 +02:00
Disassembler
7e52af6d42 Add "Disable Recycle Bin", closes #245 2019-09-05 14:10:06 +02:00
Disassembler
004dd6d752 Rename 2019-09-05 13:55:46 +02:00
Disassembler
30382f9b30 Return nonzero exit code when module or preset file doesn't exist, resolves #258 2019-09-05 13:32:24 +02:00
Disassembler
d8f790e6f3 Add "Disable Microphone", closes #253 2019-09-05 13:07:28 +02:00
Disassembler
81b660974c Don't remove user files if OneDrive has already been used, closes #248 2019-09-05 09:52:40 +02:00
Disassembler
1f9e9c48ff Disable Windows Ink Workspace suggestions as part of DisableAppSuggestions, closes #246 2019-09-05 08:29:11 +02:00
Disassembler
fb04190dfd Comment DisableWebSearch and add a note about breakage in 18362.329. Closes #262 2019-09-04 19:48:13 +02:00
Andy Pilate
8dbe0c49fc Unset the feature on default preset
Co-Authored-By: kroimon <github@kroimon.de>
2019-08-23 15:43:53 +02:00
Andy Pilate
6d1b6b725d Merge pull request #2 from Cubox-/patch-1
Add ShowBuildNumberOnDesktop function
2019-07-20 02:08:45 +02:00
Andy Pilate
f489347b17 Merge pull request #1 from Cubox-/patch-2
Add BuildNumberOnDesktop to Default.preset
2019-07-20 02:07:16 +02:00
Andy Pilate
26d5762d97 Add BuildNumberOnDesktop to Default.preset
Enabled by default
2019-07-20 02:05:41 +02:00
Andy Pilate
3472bde78c Add ShowBuildNumberOnDesktop function 2019-07-20 02:03:59 +02:00
Disassembler
b67cde21cc Add "Enable updates for Microsoft products via WU", closes #250 (thx @farag2) 2019-06-19 17:49:36 +02:00
Robot1me
a79832ca0d Add "EnableRecycleFiles"
Option to enforce file deletion, without moving files to recycle bin.
2019-06-07 19:54:06 +02:00
Disassembler
e488251c16 v3.7, 2019-05-31
- Add -log parameter for output logging
 - Add more bloatware for removal (thx @r3incarnat0r)
 - Add "Disable Location services" (thx @r3incarnat0r)
 - Add "Disable Sensor services" (thx @r3incarnat0r)
 - Add "Disable Biometric services" (thx @r3incarnat0r)
 - Add "Disable Camera" (thx @r3incarnat0r)
 - Add "Disable Media Sharing" (thx @r3incarnat0r)
 - Add "Show verbose startup/shutdown status messages" (thx @CruzMarcio)
 - Add "Disable First Logon Animation" (thx @mrcrutch)
 - Add "Disable Windows Update automatic downloads" (thx @pablospizzamiglio)
 - Add "Disable Lock screen Blur" (thx @sippi90)
 - Add "Show full path in Explorer title" (thx @Zweikeks)
 - Add "Show protected operating system files" (thx @Zweikeks)
 - Add "Show empty drives" (thx @Zweikeks)
 - Add "Show folder merge conflicts" (thx @Zweikeks)
 - Add "Show all folders in Explorer navigation pane" (thx @Zweikeks)
 - Add "Show coloring of encrypted or compressed NTFS files" (thx @Zweikeks)
 - Add "Disable accessibility keys prompts" (thx @r3incarnat0r)
 - Add "Disable F1 Help key" (thx @Conder000)
 - Add "Disable NetBIOS" (thx @shaunography)
 - Add "Hide Recycle Bin From Desktop" (thx @mcavallo-git)
 - Add "Show Network On Desktop" (thx @mcavallo-git)
 - Add "Enable Clipboard History" (thx @Ash258)
 - Add "Enable NTFS long paths"
 - Add "Disable Internet Connection Sharing"
 - Add "Disable Fullscreen optimizations"
 - Add "Disable nightly wake-up for Automatic Maintenance"
 - Update "EnableXboxFeatures" to disable Game mode
 - Update "Enable Remote Desktop" to leave Network Level Authentication enabled
 - Update "DisableTelemetry" to set more registry keys (thx @r3incarnat0r)
 - Update "DisableCortana" to set more registry keys (thx @r3incarnat0r)
 - Remove "DisableLocationTracking" in favor of "DisableLocation"
 - Remove "DisableStickyKeys" in favor of "DisableAccessibilityKeys"
 - Remove "DisableUpdateRestart" in favor of "DisableMaintenanceWakeUp"
2019-05-31 21:29:37 +02:00
Disassembler
3155383689 Add "Disable nightly wake-up for Automatic Maintenance", closes #240 2019-05-31 19:04:03 +02:00
Disassembler
f4c9bbab69 Simplify Disable/EnableCortana 2019-05-31 16:15:07 +02:00
r3incarnat0r
05d4790009 Disable more Telemetry, CEIP and Cortana keys (#223) 2019-05-31 16:13:02 +02:00
Disassembler
95a977a90c Merge branch 'r3incarnat0r-features', closes #210 2019-05-31 15:06:10 +02:00
Disassembler
241c2b336d Move DisableSensors to privacy tweaks, Remove old "DisableLocationTracking" 2019-05-31 15:05:46 +02:00
Disassembler
cd845fa123 Merge branch 'features' of git://github.com/r3incarnat0r/Win10-Initial-Setup-Script into r3incarnat0r-features 2019-05-31 15:03:10 +02:00
Disassembler
5335241c97 Add -log parameter for transcript output, reimplements #207 2019-05-31 13:24:17 +02:00
Disassembler
1070655187 Add "Disable Fullscreen optimizations", closes #209 2019-05-30 23:49:30 +02:00
Disassembler
7f304634d3 Add "Disable Internet Connection Sharing", closes #234 2019-05-30 22:35:30 +02:00
Disassembler
a9fa1d241b Apply coding style for Enable/DisableVerboseStatus 2019-05-30 16:55:12 +02:00
Disassembler
3ded96eeaa Reorder and add comment for Microsoft.Advertising.Xaml 2019-05-30 15:48:22 +02:00
Disassembler
5db2e9edda Add "Enable NTFS long paths", closes #233 2019-05-25 17:49:53 +02:00
Disassembler
c37015a0ad Add "Enable Clipboard History", closes #231 (thx @Ash258) 2019-05-25 17:42:49 +02:00
Disassembler
5c29297005 Add and reorder some more bloatware to uninstall, closes #211 2019-05-25 17:29:45 +02:00
Disassembler
2339aa6691 Add "Hide Recycle Bin From Desktop" + "Show Network On Desktop", reimplements #228 (thx @mcavallo-git) 2019-05-25 16:58:51 +02:00
Disassembler
1e8a668271 Fix some mess in ordering, add clarification for DEP options
(No functional changes)
2019-05-25 16:48:59 +02:00
shaunography
5bd2f62c4e Add "Disable NetBIOS" (#226) 2019-05-25 16:39:40 +02:00
Conder000
30f93c340f Add "Disable F1 Help key" (#221) 2019-05-25 16:30:49 +02:00
Disassembler
130db064bd Add "Disable accessibility keys prompts", reimplements #213 (thx @r3incarnat0r) 2019-05-25 15:09:47 +02:00
r3incarnat0r
bd02d4322c Update bloatware and subscribed content definitions (#208) 2019-05-25 14:52:28 +02:00
Zweikeks
47f8b9dede Complement explorer folder options (#206) 2019-05-25 14:37:44 +02:00
sippi90
30af458827 Add "Disable Lock screen Blur" (#204) 2019-05-25 13:40:21 +02:00
Pablo
ed35417025 Add "Disable Windows Update automatic downloads" (#203) 2019-05-25 13:33:29 +02:00
mrcrutch
14f2f2caee Add "Disable First Logon Animation" (#202) 2019-05-25 13:25:23 +02:00
CruzMarcio
0138d07863 Add verbose startup/shutdown status messages (#198) 2019-05-25 13:16:25 +02:00
Disassembler
6df419cf3f Add 1903 to Windows builds overview 2019-05-25 13:04:42 +02:00
Disassembler
ac7a141a75 Align DiagTrack and dmwappushservice service names with 1809 naming 2019-05-25 09:50:35 +02:00
Disassembler
7017a38e4e Update "Enable Remote Desktop" to leave Network Level Authentication enabled 2019-05-25 09:26:36 +02:00
Martin Hujer
e536019794 DisableSMBServer: add note regarding Docker (#217), closes #216 2019-02-23 08:44:48 +01:00
r3incarnat0r
abc2aefb5e Add new sensor and service tweaks (beta2)
Removed DisableAutoRotation:
I tested today and does not work as I expected. I put here this Sensors GPO instead...

DisableSensors:
Sensor features like autorotation are disabled. Autorotation button is removed from Action Center. Unfortunately I couldn't any detailed info what sensors exactly does it affect.

DisableCamera:
Disables use of camera devices. Settings\Privacy\Camera becomes "managed by organization".
2019-02-18 20:31:04 +01:00
r3incarnat0r
1006b2648d Add new sensor and service tweaks (beta)
DisableLocation:
GPO to disable location related features. Location settings become "managed by organization".

DisableBiometrics:
GPO to disable biometric features. For example Windows Hello settings become "managed by organization".

DisableAutoRotation:
Machine-level tweak to disable auto rotation feature. For example makes the Action Center Rotation button greyed out. Autorotation is nice for tablet  and mobile-oriented devices, but annoying if using regular laptops like EliteBook, as I personally experienced.

DisableMediaSharing:
GPO to prevent media sharing and streaming. Network and Sharing Center\Media streaming options will show a message that Media streaming is disabled by group policy etc.
2019-02-17 18:48:36 +01:00
Disassembler
b3b12239ec Disable Game mode as part of "EnableXboxFeatures", resolves #205 2019-02-14 23:07:15 +01:00
r3incarnat0r
0129698032 Update ThirdPartyBloat (#200) 2019-02-09 21:02:01 +01:00
Disassembler
f49b932407 v3.6, 2019-01-28
- Add "Disable IE first run wizard" (thx @sippi90)
 - Add "Disable Modern UI swap file" (thx gtein)
 - Add "Disable enhanced pointer precision"
 - Add "Enable clearing of recent files on exit" (thx @r3incarnat0r)
 - Add "Disable recent files lists" (thx @r3incarnat0r)
 - Reimplement HideMostUsedApps using GPO (thx @r3incarnat0r)
 - *BREAKING* Removed HideRecentJumplists (superseded by DisableRecentFiles)
 - Update UninstallMsftBloat to not remove Snipping tool
 - Update DisableTelemetry to not report KMS client activation data (thx @wallrik)
 - Fix main execution loop when the script is called by another PowerShell process
2019-01-28 15:22:29 +01:00
Disassembler
159626f45b Add "Disable enhanced pointer precision" 2019-01-27 23:17:15 +01:00
r3incarnat0r
3b582a1f59 Add tweaks for disabling and cleanup of recent items (#159)
- Add "EnableClearRecentFiles" for cleanup on every logout
- Add "DisableRecentFiles" to not create MRU lists at all
- Add previously removed "HideMostUsedApps", this time via GPO
- Removed HideRecentJumplists (superseded by DisableRecentFiles)
2019-01-27 21:55:37 +01:00
Disassembler
53058b1322 Update DisableTelemetry to not report KMS client activation data, closes #195 (thx @wallrik) 2019-01-27 14:55:11 +01:00
Disassembler
031848fcb9 Add "Disable Modern UI swap file", closes #190 (thx gtein) 2019-01-27 14:13:07 +01:00
Disassembler
e9d329f3d2 Use script scope instead of global for preset compilation, fixes #196 2019-01-19 10:25:21 +01:00
Disassembler
7062510cc1 Don't remove Screen Sketch as it replaces Snipping tool, closes #193 2019-01-09 23:57:51 +01:00
sippi90
0f26a47e0d Add "Disable IE first run wizard" (#189) 2018-12-26 22:16:28 +01:00
Disassembler
95c66ecf21 v3.5, 2018-12-23
- Fix "DisableUpdateDriver" to not block driver installation entirely (thx Nick for pointing this out)
 - Fix "HideShortcutArrow" to not show black squares over the icons (thx @Ozgood for helping me debug)
2018-12-23 17:09:31 +01:00
Disassembler
6ce0765a03 Update "HideShortcutArrow" to use RGBA icon, closes for #186 2018-12-22 14:22:34 +01:00
Disassembler
12c2c533d5 Revert "Update "DisableUpdateDriver" to add one more GPO, closes #178 (thx @kukubau)"
This reverts commit daa5da122e.
2018-12-21 09:30:00 +01:00
Disassembler
8c9053cabc Update "HideShortcutArrow" to restart explorer process, tryfix for #186 2018-12-19 22:53:27 +01:00
Disassembler
9365a3a013 v3.4, 2018-12-19
- Add more bloatware for removal (thx @r3incarnat0r, @mhujer)
 - Add "Hide shortcut icon arrow"
 - Add "Show Control panel shortcut on desktop" (thx @Win10debloater)
 - Add "Enable window title bar color" (thx @scruel)
 - Add "Disable Edge preload after Windows startup" (thx Nick)
 - Update "DisableBackgroundApps" to properly show toasts and notifications
 - Update "DisableActivityHistory" to fix problems caused by disabled CDP user service
 - Update "DisableUpdateDriver" to add one more GPO (thx @kukubau)
2018-12-19 19:06:10 +01:00
Disassembler
24a1c79d58 Update "HideShortcutArrow" to clean icon cache
Prevents black squares showing in place of arrows
2018-12-19 18:47:04 +01:00
Disassembler
9b765a694d Reorder ShowControlPanelOnDesktop (no functional changes) 2018-12-19 18:15:58 +01:00
Disassembler
c67227992a Change all "Dword" to "DWord" (No functional changes) 2018-12-17 15:19:17 +01:00
Disassembler
8069d87266 Add "Disable Edge preload after Windows startup", closes #184 (thx Nick) 2018-12-17 15:13:18 +01:00
Disassembler
abe812ace0 Reimplement "Enable window title bar color", closes #162 (thx @scruel) 2018-12-17 14:02:07 +01:00
Disassembler
aef24a75a8 Properly PascalCase ShowControlPanelOnDesktop name and comment in default preset 2018-12-17 13:44:23 +01:00
Win10debloater
2ab1f27eeb Show Control panel shortcut on desktop (#183) 2018-12-17 13:42:57 +01:00
Disassembler
daa5da122e Update "DisableUpdateDriver" to add one more GPO, closes #178 (thx @kukubau) 2018-12-17 13:36:01 +01:00
Martin Hujer
9d4a14c55a UninstallThirdPartyBloat: also remove Fitbit.FitbitCoach (#175) 2018-11-18 05:18:33 +01:00
Disassembler
494409c3cb Use modern method of determining server/workstation, closes #168 2018-11-15 09:22:13 +01:00
Disassembler
50e9804974 Revert "Update DisableActivityHistory to disable CDP user service". Fixes #170, #172
This reverts commit 08ce664a37.
2018-11-15 08:36:42 +01:00
Varghese Jacob
1b38a82c88 Fix "HKCU:\Software" case, no functional changes (#167) 2018-11-06 13:21:33 +01:00
Disassembler
dc30f4b8c2 Update DisableBackgroundApps to properly show toasts and notifications, closes #164 2018-10-28 11:42:07 +01:00
Disassembler
5b2333ba35 Add "Hide shortcut icon arrow" 2018-10-23 22:19:08 +02:00
r3incarnat0r
6786ed78b5 Add more MS bloatware for removal (#158) 2018-10-23 08:06:03 +02:00
4 changed files with 1219 additions and 423 deletions

View File

@@ -1,7 +1,7 @@
##########
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset
# Author: Disassembler <disassembler@dasm.cz>
# Version: v3.3, 2018-10-22
# Version: v3.8, 2019-09-11
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########
@@ -12,34 +12,32 @@ RequireAdmin
DisableTelemetry # EnableTelemetry
DisableWiFiSense # EnableWiFiSense
# DisableSmartScreen # EnableSmartScreen
DisableWebSearch # EnableWebSearch
# DisableWebSearch # EnableWebSearch
DisableAppSuggestions # EnableAppSuggestions
DisableActivityHistory # EnableActivityHistory
DisableBackgroundApps # EnableBackgroundApps
DisableLocationTracking # EnableLocationTracking
# DisableSensors # EnableSensors
DisableLocation # EnableLocation
DisableMapUpdates # EnableMapUpdates
DisableFeedback # EnableFeedback
DisableTailoredExperiences # EnableTailoredExperiences
DisableAdvertisingID # EnableAdvertisingID
DisableWebLangList # EnableWebLangList
DisableCortana # EnableCortana
# DisableBiometrics # EnableBiometrics
# DisableCamera # EnableCamera
# DisableMicrophone # EnableMicrophone
DisableErrorReporting # EnableErrorReporting
# SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
DisableDiagTrack # EnableDiagTrack
DisableWAPPush # EnableWAPPush
# HideRecentJumplists # ShowRecentJumplists
# EnableClearRecentFiles # DisableClearRecentFiles
# DisableRecentFiles # EnableRecentFiles
### Security Tweaks ###
# SetUACLow # SetUACHigh
# EnableSharingMappedDrives # DisableSharingMappedDrives
DisableAdminShares # EnableAdminShares
# DisableSMB1 # EnableSMB1
# DisableSMBServer # EnableSMBServer
# DisableLLMNR # EnableLLMNR
# DisableNCSIProbe # EnableNCSIProbe
SetCurrentNetworkPrivate # SetCurrentNetworkPublic
# SetUnknownNetworksPrivate # SetUnknownNetworksPublic
# DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
# DisableFirewall # EnableFirewall
# HideDefenderTrayIcon # ShowDefenderTrayIcon
# DisableDefender # EnableDefender
@@ -57,14 +55,35 @@ EnableF8BootMenu # DisableF8BootMenu
# DisableRecoveryAndReset # EnableRecoveryAndReset
SetDEPOptOut # SetDEPOptIn
### Network Tweaks ###
SetCurrentNetworkPrivate # SetCurrentNetworkPublic
# SetUnknownNetworksPrivate # SetUnknownNetworksPublic
# DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
# DisableHomeGroups # EnableHomeGroups
# DisableSMB1 # EnableSMB1
# DisableSMBServer # EnableSMBServer
# DisableNetBIOS # EnableNetBIOS
# DisableLLMNR # EnableLLMNR
# DisableLLDP # EnableLLDP
# DisableLLTD # EnableLLTD
# DisableMSNetClient # EnableMSNetClient
# DisableQoS # EnableQoS
# DisableIPv4 # EnableIPv4
# DisableIPv6 # EnableIPv6
# DisableNCSIProbe # EnableNCSIProbe
# DisableConnectionSharing # EnableConnectionSharing
DisableRemoteAssistance # EnableRemoteAssistance
# EnableRemoteDesktop # DisableRemoteDesktop
### Service Tweaks ###
# DisableUpdateMSRT # EnableUpdateMSRT
# DisableUpdateDriver # EnableUpdateDriver
EnableUpdateMSProducts # DisableUpdateMSProducts
# DisableUpdateAutoDownload # EnableUpdateAutoDownload
DisableUpdateRestart # EnableUpdateRestart
# DisableHomeGroups # EnableHomeGroups
DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
DisableSharedExperiences # EnableSharedExperiences
DisableRemoteAssistance # EnableRemoteAssistance
EnableRemoteDesktop # DisableRemoteDesktop
# EnableClipboardHistory # DisableClipboardHistory
DisableAutoplay # EnableAutoplay
DisableAutorun # EnableAutorun
# DisableRestorePoints # EnableRestorePoints
@@ -72,6 +91,9 @@ DisableAutorun # EnableAutorun
# DisableDefragmentation # EnableDefragmentation
# DisableSuperfetch # EnableSuperfetch
# DisableIndexing # EnableIndexing
# DisableSwapFile # EnableSwapFile
# DisableRecycleBin # EnableRecycleBin
EnableNTFSLongPaths # DisableNTFSLongPaths
# DisableNTFSLastAccess # EnableNTFSLastAccess
# SetBIOSTimeUTC # SetBIOSTimeLocal
# EnableHibernation # DisableHibernation
@@ -86,8 +108,9 @@ DisableLockScreen # EnableLockScreen
# DisableLockScreenRS1 # EnableLockScreenRS1
HideNetworkFromLockScreen # ShowNetworkOnLockScreen
HideShutdownFromLockScreen # ShowShutdownOnLockScreen
DisableLockScreenBlur # EnableLockScreenBlur
# DisableAeroShake # EnableAeroShake
DisableStickyKeys # EnableStickyKeys
DisableAccessibilityKeys # EnableAccessibilityKeys
ShowTaskManagerDetails # HideTaskManagerDetails
ShowFileOperationsDetails # HideFileOperationsDetails
# EnableFileDeleteConfirm # DisableFileDeleteConfirm
@@ -97,33 +120,50 @@ ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
ShowTrayIcons # HideTrayIcons
# ShowSecondsInTaskbar # HideSecondsFromTaskbar
DisableSearchAppInStore # EnableSearchAppInStore
DisableNewAppPrompt # EnableNewAppPrompt
# HideRecentlyAddedApps # ShowRecentlyAddedApps
# HideMostUsedApps # ShowMostUsedApps
# SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
DisableShortcutInName # EnableShortcutInName
# HideShortcutArrow # ShowShortcutArrow
SetVisualFXPerformance # SetVisualFXAppearance
# EnableTitleBarColor # DisableTitleBarColor
# EnableDarkTheme # DisableDarkTheme
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock
# DisableEnhPointerPrecision # EnableEnhPointerPrecision
# SetSoundSchemeNone # SetSoundSchemeDefault
# DisableStartupSound # EnableStartupSound
# DisableChangingSoundScheme # EnableChangingSoundScheme
# EnableVerboseStatus # DisableVerboseStatus
DisableF1HelpKey # EnableF1HelpKey
### Explorer UI Tweaks ###
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath
ShowKnownExtensions # HideKnownExtensions
ShowHiddenFiles # HideHiddenFiles
# ShowSuperHiddenFiles # HideSuperHiddenFiles
# ShowEmptyDrives # HideEmptyDrives
# ShowFolderMergeConflicts # HideFolderMergeConflicts
EnableNavPaneExpand # DisableNavPaneExpand
# ShowNavPaneAllFolders # HideNavPaneAllFolders
# EnableFldrSeparateProcess # DisableFldrSeparateProcess
# EnableRestoreFldrWindows # DisableRestoreFldrWindows
# ShowEncCompFilesColor # HideEncCompFilesColor
# DisableSharingWizard # EnableSharingWizard
# HideSelectCheckboxes # ShowSelectCheckboxes
HideSyncNotifications # ShowSyncNotifications
HideRecentShortcuts # ShowRecentShortcuts
SetExplorerThisPC # SetExplorerQuickAccess
HideQuickAccess # ShowQuickAccess
# HideRecycleBinFromDesktop # ShowRecycleBinOnDesktop
ShowThisPCOnDesktop # HideThisPCFromDesktop
# ShowUserFolderOnDesktop # HideUserFolderFromDesktop
# ShowControlPanelOnDesktop # HideControlPanelFromDesktop
# ShowNetworkOnDesktop # HideNetworkFromDesktop
# ShowBuildNumberOnDesktop # HideBuildNumberFromDesktop
HideDesktopFromThisPC # ShowDesktopInThisPC
# HideDesktopFromExplorer # ShowDesktopInExplorer
HideDocumentsFromThisPC # ShowDocumentsInThisPC
@@ -152,8 +192,13 @@ UninstallMsftBloat # InstallMsftBloat
UninstallThirdPartyBloat # InstallThirdPartyBloat
# UninstallWindowsStore # InstallWindowsStore
DisableXboxFeatures # EnableXboxFeatures
# DisableFullscreenOptims # EnableFullscreenOptims
DisableAdobeFlash # EnableAdobeFlash
DisableEdgePreload # EnableEdgePreload
DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
DisableIEFirstRun # EnableIEFirstRun
DisableFirstLogonAnimation # EnableFirstLogonAnimation
DisableMediaSharing # EnableMediaSharing
# UninstallMediaPlayer # InstallMediaPlayer
# UninstallInternetExplorer # InstallInternetExplorer
# UninstallWorkFolders # InstallWorkFolders

View File

@@ -82,15 +82,17 @@ The script supports command line options and parameters which can help you custo
| 1709 | Redstone 3 (RS3) | Fall Creators Update | 16299 |
| 1803 | Redstone 4 (RS4) | April 2018 Update | 17134 |
| 1809 | Redstone 5 (RS5) | October 2018 Update | 17763 |
| 1903 | 19H1 | May 2019 Update | 18362 |
&nbsp;
## Advanced usage
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 [-include filename] [-preset filename] [[!]tweakname]
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 [-include filename] [-preset filename] [-log logname] [[!]tweakname]
-include filename load module with user-defined tweaks
-preset filename load preset with tweak names to apply
-log logname save script output to a file
tweakname apply tweak with this particular name
!tweakname remove tweak with this particular name from selection
@@ -156,6 +158,14 @@ Command using all three examples combined:
&nbsp;
### Logging
If you'd like to store output from the script execution, you can do so using `-log` parameter followed by a filename of the log file you want to create. For example:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include Win10.psm1 -preset mypreset.txt -log myoutput.log
The logging is done using PowerShell `Start-Transcript` cmdlet, which writes extra information about current environment (date, machine and user name, command used for execution etc.) to the beginning of the file and logs both standard output and standard error streams.
## Maintaining own forks
The easiest way to customize the script settings it is to create your own preset and, if needed, your own tweak scripts as described above. For easy start, you can base the modifications on the *Default.cmd* and *Default.preset* and maintain just that. If you choose to fork the script anyway, you don't need to comment or remove the actual functions in *Win10.psm1*, because if they are not called, they are not used.

View File

@@ -1,7 +1,7 @@
##########
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Main execution loop
# Author: Disassembler <disassembler@dasm.cz>
# Version: v3.3, 2018-10-22
# Version: v3.8, 2019-09-11
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########
@@ -19,10 +19,10 @@ $PSCommandArgs = @()
Function AddOrRemoveTweak($tweak) {
If ($tweak[0] -eq "!") {
# If the name starts with exclamation mark (!), exclude the tweak from selection
$global:tweaks = $global:tweaks | Where-Object { $_ -ne $tweak.Substring(1) }
$script:tweaks = $script:tweaks | Where-Object { $_ -ne $tweak.Substring(1) }
} ElseIf ($tweak -ne "") {
# Otherwise add the tweak
$global:tweaks += $tweak
$script:tweaks += $tweak
}
}
@@ -31,16 +31,22 @@ $i = 0
While ($i -lt $args.Length) {
If ($args[$i].ToLower() -eq "-include") {
# Resolve full path to the included file
$include = Resolve-Path $args[++$i]
$include = Resolve-Path $args[++$i] -ErrorAction Stop
$PSCommandArgs += "-include `"$include`""
# Import the included file as a module
Import-Module -Name $include
Import-Module -Name $include -ErrorAction Stop
} ElseIf ($args[$i].ToLower() -eq "-preset") {
# Resolve full path to the preset file
$preset = Resolve-Path $args[++$i]
$preset = Resolve-Path $args[++$i] -ErrorAction Stop
$PSCommandArgs += "-preset `"$preset`""
# Load tweak names from the preset file
Get-Content $preset -ErrorAction Stop | ForEach-Object { AddOrRemoveTweak($_.Split("#")[0].Trim()) }
} ElseIf ($args[$i].ToLower() -eq "-log") {
# Resolve full path to the output file
$log = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($args[++$i])
$PSCommandArgs += "-log `"$log`""
# Record session to the output file
Start-Transcript $log
} Else {
$PSCommandArgs += $args[$i]
# Load tweak names from command line

1537
Win10.psm1

File diff suppressed because it is too large Load Diff