mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-01-12 07:28:29 -05:00
Compare commits
115 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33ea31d09c | ||
|
|
3155383689 | ||
|
|
f4c9bbab69 | ||
|
|
05d4790009 | ||
|
|
95a977a90c | ||
|
|
241c2b336d | ||
|
|
cd845fa123 | ||
|
|
5335241c97 | ||
|
|
1070655187 | ||
|
|
7f304634d3 | ||
|
|
a9fa1d241b | ||
|
|
3ded96eeaa | ||
|
|
5db2e9edda | ||
|
|
c37015a0ad | ||
|
|
5c29297005 | ||
|
|
2339aa6691 | ||
|
|
1e8a668271 | ||
|
|
5bd2f62c4e | ||
|
|
30f93c340f | ||
|
|
130db064bd | ||
|
|
bd02d4322c | ||
|
|
47f8b9dede | ||
|
|
30af458827 | ||
|
|
ed35417025 | ||
|
|
14f2f2caee | ||
|
|
0138d07863 | ||
|
|
6df419cf3f | ||
|
|
ac7a141a75 | ||
|
|
7017a38e4e | ||
|
|
e536019794 | ||
|
|
abc2aefb5e | ||
|
|
1006b2648d | ||
|
|
b3b12239ec | ||
|
|
0129698032 | ||
|
|
f49b932407 | ||
|
|
159626f45b | ||
|
|
3b582a1f59 | ||
|
|
53058b1322 | ||
|
|
031848fcb9 | ||
|
|
e9d329f3d2 | ||
|
|
7062510cc1 | ||
|
|
0f26a47e0d | ||
|
|
95c66ecf21 | ||
|
|
6ce0765a03 | ||
|
|
12c2c533d5 | ||
|
|
8c9053cabc | ||
|
|
9365a3a013 | ||
|
|
24a1c79d58 | ||
|
|
9b765a694d | ||
|
|
c67227992a | ||
|
|
8069d87266 | ||
|
|
abe812ace0 | ||
|
|
aef24a75a8 | ||
|
|
2ab1f27eeb | ||
|
|
daa5da122e | ||
|
|
9d4a14c55a | ||
|
|
494409c3cb | ||
|
|
50e9804974 | ||
|
|
1b38a82c88 | ||
|
|
dc30f4b8c2 | ||
|
|
5b2333ba35 | ||
|
|
6786ed78b5 | ||
|
|
f830a46fa9 | ||
|
|
544e15aefc | ||
|
|
436e708a1f | ||
|
|
e4a24bf83d | ||
|
|
771a32db0d | ||
|
|
5ccc376764 | ||
|
|
ef8b490da8 | ||
|
|
08ce664a37 | ||
|
|
c511b60739 | ||
|
|
27157fef8f | ||
|
|
9e4ad4215b | ||
|
|
baa547cbd8 | ||
|
|
503b1a2826 | ||
|
|
3a0ff06a81 | ||
|
|
0438564bfe | ||
|
|
0d15efc24d | ||
|
|
db2c2d54d9 | ||
|
|
efb89f42c2 | ||
|
|
4d28393ac0 | ||
|
|
a7d1b3b3b1 | ||
|
|
0d1e8faf61 | ||
|
|
03d47362e0 | ||
|
|
f53ec4001a | ||
|
|
ccb7fa1b77 | ||
|
|
af751acb7f | ||
|
|
b0de075d46 | ||
|
|
f2b628048c | ||
|
|
7feaf667a8 | ||
|
|
a9c9bbb6f0 | ||
|
|
f42acded36 | ||
|
|
984e370fe6 | ||
|
|
3ecf486524 | ||
|
|
84b75b1a86 | ||
|
|
37b19b942a | ||
|
|
5565b31afb | ||
|
|
f64365bdcb | ||
|
|
96b5267c1f | ||
|
|
96da78d043 | ||
|
|
2c741b2c40 | ||
|
|
5f452a171a | ||
|
|
8ff24e54f1 | ||
|
|
aa4d3d58a4 | ||
|
|
a7f2b7b7c5 | ||
|
|
c747faa96a | ||
|
|
bce7bbc109 | ||
|
|
e2646d13e4 | ||
|
|
c5c107c59f | ||
|
|
2c235573c5 | ||
|
|
113055beaa | ||
|
|
22c2c047f1 | ||
|
|
a670106295 | ||
|
|
a68bb170a4 | ||
|
|
5fae7389e1 |
@@ -1,3 +1 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Win10.ps1" -include "%~dp0Win10.psm1" -preset "%~dpn0.preset"
|
||||
@powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Win10.ps1" -include "%~dp0Win10.psm1" -preset "%~dpn0.preset"
|
||||
|
||||
326
Default.preset
326
Default.preset
@@ -1,7 +1,7 @@
|
||||
##########
|
||||
# Win10 / WinServer2016 Initial Setup Script - Default preset
|
||||
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset
|
||||
# Author: Disassembler <disassembler@dasm.cz>
|
||||
# Version: v3.0, 2018-09-15
|
||||
# Version: development
|
||||
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
|
||||
##########
|
||||
|
||||
@@ -9,155 +9,203 @@
|
||||
RequireAdmin
|
||||
|
||||
### Privacy Tweaks ###
|
||||
DisableTelemetry # EnableTelemetry
|
||||
DisableWiFiSense # EnableWiFiSense
|
||||
# DisableSmartScreen # EnableSmartScreen
|
||||
DisableWebSearch # EnableWebSearch
|
||||
DisableAppSuggestions # EnableAppSuggestions
|
||||
DisableActivityHistory # EnableActivityHistory
|
||||
DisableBackgroundApps # EnableBackgroundApps
|
||||
DisableLocationTracking # EnableLocationTracking
|
||||
DisableMapUpdates # EnableMapUpdates
|
||||
DisableFeedback # EnableFeedback
|
||||
DisableTailoredExperiences # EnableTailoredExperiences
|
||||
DisableAdvertisingID # EnableAdvertisingID
|
||||
DisableWebLangList # EnableWebLangList
|
||||
DisableCortana # EnableCortana
|
||||
DisableErrorReporting # EnableErrorReporting
|
||||
# SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
|
||||
DisableDiagTrack # EnableDiagTrack
|
||||
DisableWAPPush # EnableWAPPush
|
||||
# HideRecentJumplists # ShowRecentJumplists
|
||||
DisableTelemetry # EnableTelemetry
|
||||
DisableWiFiSense # EnableWiFiSense
|
||||
# DisableSmartScreen # EnableSmartScreen
|
||||
DisableWebSearch # EnableWebSearch
|
||||
DisableAppSuggestions # EnableAppSuggestions
|
||||
DisableActivityHistory # EnableActivityHistory
|
||||
DisableBackgroundApps # EnableBackgroundApps
|
||||
# DisableSensors # EnableSensors
|
||||
DisableLocation # EnableLocation
|
||||
DisableMapUpdates # EnableMapUpdates
|
||||
DisableFeedback # EnableFeedback
|
||||
DisableTailoredExperiences # EnableTailoredExperiences
|
||||
DisableAdvertisingID # EnableAdvertisingID
|
||||
DisableWebLangList # EnableWebLangList
|
||||
DisableCortana # EnableCortana
|
||||
# DisableBiometrics # EnableBiometrics
|
||||
# DisableCamera # EnableCamera
|
||||
DisableErrorReporting # EnableErrorReporting
|
||||
# SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
|
||||
DisableDiagTrack # EnableDiagTrack
|
||||
DisableWAPPush # EnableWAPPush
|
||||
# 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
|
||||
# EnableCtrldFolderAccess # DisableCtrldFolderAccess
|
||||
# DisableFirewall # EnableFirewall
|
||||
# DisableDefender # EnableDefender
|
||||
# DisableDefenderCloud # EnableDefenderCloud
|
||||
EnableF8BootMenu # DisableF8BootMenu
|
||||
SetDEPOptOut # SetDEPOptIn
|
||||
# EnableCIMemoryIntegrity # DisableCIMemoryIntegrity
|
||||
DisableScriptHost # EnableScriptHost
|
||||
EnableDotNetStrongCrypto # DisableDotNetStrongCrypto
|
||||
# EnableMeltdownCompatFlag # DisableMeltdownCompatFlag
|
||||
# SetUACLow # SetUACHigh
|
||||
# EnableSharingMappedDrives # DisableSharingMappedDrives
|
||||
DisableAdminShares # EnableAdminShares
|
||||
# DisableSMB1 # EnableSMB1
|
||||
# DisableSMBServer # EnableSMBServer
|
||||
# DisableNetBIOS # EnableNetBIOS
|
||||
# DisableLLMNR # EnableLLMNR
|
||||
# DisableNCSIProbe # EnableNCSIProbe
|
||||
SetCurrentNetworkPrivate # SetCurrentNetworkPublic
|
||||
# SetUnknownNetworksPrivate # SetUnknownNetworksPublic
|
||||
# DisableConnectionSharing # EnableConnectionSharing
|
||||
# DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
|
||||
# DisableFirewall # EnableFirewall
|
||||
# HideDefenderTrayIcon # ShowDefenderTrayIcon
|
||||
# DisableDefender # EnableDefender
|
||||
# DisableDefenderCloud # EnableDefenderCloud
|
||||
# EnableCtrldFolderAccess # DisableCtrldFolderAccess
|
||||
# EnableCIMemoryIntegrity # DisableCIMemoryIntegrity
|
||||
# EnableDefenderAppGuard # DisableDefenderAppGuard
|
||||
HideAccountProtectionWarn # ShowAccountProtectionWarn
|
||||
# DisableDownloadBlocking # EnableDownloadBlocking
|
||||
DisableScriptHost # EnableScriptHost
|
||||
EnableDotNetStrongCrypto # DisableDotNetStrongCrypto
|
||||
# EnableMeltdownCompatFlag # DisableMeltdownCompatFlag
|
||||
EnableF8BootMenu # DisableF8BootMenu
|
||||
# DisableBootRecovery # EnableBootRecovery
|
||||
# DisableRecoveryAndReset # EnableRecoveryAndReset
|
||||
SetDEPOptOut # SetDEPOptIn
|
||||
|
||||
### Service Tweaks ###
|
||||
# DisableUpdateMSRT # EnableUpdateMSRT
|
||||
# DisableUpdateDriver # EnableUpdateDriver
|
||||
DisableUpdateRestart # EnableUpdateRestart
|
||||
# DisableHomeGroups # EnableHomeGroups
|
||||
DisableSharedExperiences # EnableSharedExperiences
|
||||
DisableRemoteAssistance # EnableRemoteAssistance
|
||||
EnableRemoteDesktop # DisableRemoteDesktop
|
||||
DisableAutoplay # EnableAutoplay
|
||||
DisableAutorun # EnableAutorun
|
||||
# EnableStorageSense # DisableStorageSense
|
||||
# DisableDefragmentation # EnableDefragmentation
|
||||
# DisableSuperfetch # EnableSuperfetch
|
||||
# DisableIndexing # EnableIndexing
|
||||
# SetBIOSTimeUTC # SetBIOSTimeLocal
|
||||
# EnableHibernation # DisableHibernation
|
||||
# DisableSleepButton # EnableSleepButton
|
||||
# DisableSleepTimeout # EnableSleepTimeout
|
||||
# DisableFastStartup # EnableFastStartup
|
||||
# DisableUpdateMSRT # EnableUpdateMSRT
|
||||
# DisableUpdateDriver # EnableUpdateDriver
|
||||
# DisableUpdateAutoDownload # EnableUpdateAutoDownload
|
||||
DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
|
||||
# DisableHomeGroups # EnableHomeGroups
|
||||
DisableSharedExperiences # EnableSharedExperiences
|
||||
# EnableClipboardHistory # DisableClipboardHistory
|
||||
DisableRemoteAssistance # EnableRemoteAssistance
|
||||
EnableRemoteDesktop # DisableRemoteDesktop
|
||||
DisableAutoplay # EnableAutoplay
|
||||
DisableAutorun # EnableAutorun
|
||||
# DisableRestorePoints # EnableRestorePoints
|
||||
# EnableStorageSense # DisableStorageSense
|
||||
# DisableDefragmentation # EnableDefragmentation
|
||||
# DisableSuperfetch # EnableSuperfetch
|
||||
# DisableIndexing # EnableIndexing
|
||||
# DisableSwapFile # EnableSwapFile
|
||||
EnableNTFSLongPaths # DisableNTFSLongPaths
|
||||
# DisableNTFSLastAccess # EnableNTFSLastAccess
|
||||
# SetBIOSTimeUTC # SetBIOSTimeLocal
|
||||
# EnableHibernation # DisableHibernation
|
||||
# DisableSleepButton # EnableSleepButton
|
||||
# DisableSleepTimeout # EnableSleepTimeout
|
||||
# DisableFastStartup # EnableFastStartup
|
||||
# DisableAutoRebootOnCrash # EnableAutoRebootOnCrash
|
||||
|
||||
### UI Tweaks ###
|
||||
DisableActionCenter # EnableActionCenter
|
||||
HideAccountProtectionWarn # ShowAccountProtectionWarn
|
||||
DisableLockScreen # EnableLockScreen
|
||||
# DisableLockScreenRS1 # EnableLockScreenRS1
|
||||
HideNetworkFromLockScreen # ShowNetworkOnLockScreen
|
||||
HideShutdownFromLockScreen # ShowShutdownOnLockScreen
|
||||
DisableStickyKeys # EnableStickyKeys
|
||||
ShowTaskManagerDetails # HideTaskManagerDetails
|
||||
ShowFileOperationsDetails # HideFileOperationsDetails
|
||||
# EnableFileDeleteConfirm # DisableFileDeleteConfirm
|
||||
HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
|
||||
HideTaskView # ShowTaskView
|
||||
ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
|
||||
SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
|
||||
HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
|
||||
ShowTrayIcons # HideTrayIcons
|
||||
DisableSearchAppInStore # EnableSearchAppInStore
|
||||
DisableNewAppPrompt # EnableNewAppPrompt
|
||||
# HideRecentlyAddedApps # ShowRecentlyAddedApps
|
||||
# SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
|
||||
SetVisualFXPerformance # SetVisualFXAppearance
|
||||
# AddENKeyboard # RemoveENKeyboard
|
||||
# EnableNumlock # DisableNumlock
|
||||
# SetSoundSchemeNone # SetSoundSchemeDefault
|
||||
# DisableStartupSound # EnableStartupSound
|
||||
# DisableChangingSoundScheme # EnableChangingSoundScheme
|
||||
DisableActionCenter # EnableActionCenter
|
||||
DisableLockScreen # EnableLockScreen
|
||||
# DisableLockScreenRS1 # EnableLockScreenRS1
|
||||
HideNetworkFromLockScreen # ShowNetworkOnLockScreen
|
||||
HideShutdownFromLockScreen # ShowShutdownOnLockScreen
|
||||
DisableLockScreenBlur # EnableLockScreenBlur
|
||||
# DisableAeroShake # EnableAeroShake
|
||||
DisableAccessibilityKeys # EnableAccessibilityKeys
|
||||
ShowTaskManagerDetails # HideTaskManagerDetails
|
||||
ShowFileOperationsDetails # HideFileOperationsDetails
|
||||
# EnableFileDeleteConfirm # DisableFileDeleteConfirm
|
||||
HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
|
||||
HideTaskView # ShowTaskView
|
||||
ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
|
||||
SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
|
||||
HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
|
||||
ShowTrayIcons # HideTrayIcons
|
||||
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 ###
|
||||
ShowKnownExtensions # HideKnownExtensions
|
||||
ShowHiddenFiles # HideHiddenFiles
|
||||
# EnableFldrSeparateProcess # DisableFldrSeparateProcess
|
||||
# EnableRestoreFldrWindows # DisableRestoreFldrWindows
|
||||
# DisableSharingWizard # EnableSharingWizard
|
||||
# HideSelectCheckboxes # ShowSelectCheckboxes
|
||||
HideSyncNotifications # ShowSyncNotifications
|
||||
HideRecentShortcuts # ShowRecentShortcuts
|
||||
SetExplorerThisPC # SetExplorerQuickAccess
|
||||
HideQuickAccess # ShowQuickAccess
|
||||
ShowThisPCOnDesktop # HideThisPCFromDesktop
|
||||
# ShowUserFolderOnDesktop # HideUserFolderFromDesktop
|
||||
HideDesktopFromThisPC # ShowDesktopInThisPC
|
||||
# HideDesktopFromExplorer # ShowDesktopInExplorer
|
||||
HideDocumentsFromThisPC # ShowDocumentsInThisPC
|
||||
# HideDocumentsFromExplorer # ShowDocumentsInExplorer
|
||||
HideDownloadsFromThisPC # ShowDownloadsInThisPC
|
||||
# HideDownloadsFromExplorer # ShowDownloadsInExplorer
|
||||
HideMusicFromThisPC # ShowMusicInThisPC
|
||||
# HideMusicFromExplorer # ShowMusicInExplorer
|
||||
HidePicturesFromThisPC # ShowPicturesInThisPC
|
||||
# HidePicturesFromExplorer # ShowPicturesInExplorer
|
||||
HideVideosFromThisPC # ShowVideosInThisPC
|
||||
# HideVideosFromExplorer # ShowVideosInExplorer
|
||||
Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
|
||||
# Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
|
||||
# DisableThumbnails # EnableThumbnails
|
||||
DisableThumbnailCache # EnableThumbnailCache
|
||||
DisableThumbsDBOnNetwork # EnableThumbsDBOnNetwork
|
||||
# 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
|
||||
HideDesktopFromThisPC # ShowDesktopInThisPC
|
||||
# HideDesktopFromExplorer # ShowDesktopInExplorer
|
||||
HideDocumentsFromThisPC # ShowDocumentsInThisPC
|
||||
# HideDocumentsFromExplorer # ShowDocumentsInExplorer
|
||||
HideDownloadsFromThisPC # ShowDownloadsInThisPC
|
||||
# HideDownloadsFromExplorer # ShowDownloadsInExplorer
|
||||
HideMusicFromThisPC # ShowMusicInThisPC
|
||||
# HideMusicFromExplorer # ShowMusicInExplorer
|
||||
HidePicturesFromThisPC # ShowPicturesInThisPC
|
||||
# HidePicturesFromExplorer # ShowPicturesInExplorer
|
||||
HideVideosFromThisPC # ShowVideosInThisPC
|
||||
# HideVideosFromExplorer # ShowVideosInExplorer
|
||||
Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
|
||||
# Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
|
||||
# HideIncludeInLibraryMenu # ShowIncludeInLibraryMenu
|
||||
# HideGiveAccessToMenu # ShowGiveAccessToMenu
|
||||
# HideShareMenu # ShowShareMenu
|
||||
# DisableThumbnails # EnableThumbnails
|
||||
DisableThumbnailCache # EnableThumbnailCache
|
||||
DisableThumbsDBOnNetwork # EnableThumbsDBOnNetwork
|
||||
|
||||
### Application Tweaks ###
|
||||
DisableOneDrive # EnableOneDrive
|
||||
UninstallOneDrive # InstallOneDrive
|
||||
UninstallMsftBloat # InstallMsftBloat
|
||||
UninstallThirdPartyBloat # InstallThirdPartyBloat
|
||||
# UninstallWindowsStore # InstallWindowsStore
|
||||
DisableXboxFeatures # EnableXboxFeatures
|
||||
DisableAdobeFlash # EnableAdobeFlash
|
||||
DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
|
||||
# UninstallMediaPlayer # InstallMediaPlayer
|
||||
# UninstallInternetExplorer # InstallInternetExplorer
|
||||
# UninstallWorkFolders # InstallWorkFolders
|
||||
# InstallLinuxSubsystem # UninstallLinuxSubsystem
|
||||
# InstallHyperV # UninstallHyperV
|
||||
SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
|
||||
AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
|
||||
# UninstallPDFPrinter # InstallPDFPrinter
|
||||
UninstallXPSPrinter # InstallXPSPrinter
|
||||
RemoveFaxPrinter # AddFaxPrinter
|
||||
# UninstallFaxAndScan # InstallFaxAndScan
|
||||
DisableOneDrive # EnableOneDrive
|
||||
UninstallOneDrive # InstallOneDrive
|
||||
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
|
||||
# UninstallPowerShellV2 # InstallPowerShellV2
|
||||
# InstallLinuxSubsystem # UninstallLinuxSubsystem
|
||||
# InstallHyperV # UninstallHyperV
|
||||
# InstallNET23 # UninstallNET23
|
||||
SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
|
||||
AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
|
||||
# UninstallPDFPrinter # InstallPDFPrinter
|
||||
UninstallXPSPrinter # InstallXPSPrinter
|
||||
RemoveFaxPrinter # AddFaxPrinter
|
||||
# UninstallFaxAndScan # InstallFaxAndScan
|
||||
|
||||
### Server Specific Tweaks ###
|
||||
# HideServerManagerOnLogin # ShowServerManagerOnLogin
|
||||
# DisableShutdownTracker # EnableShutdownTracker
|
||||
# DisablePasswordPolicy # EnablePasswordPolicy
|
||||
# DisableCtrlAltDelLogin # EnableCtrlAltDelLogin
|
||||
# DisableIEEnhancedSecurity # EnableIEEnhancedSecurity
|
||||
# EnableAudio # DisableAudio
|
||||
# HideServerManagerOnLogin # ShowServerManagerOnLogin
|
||||
# DisableShutdownTracker # EnableShutdownTracker
|
||||
# DisablePasswordPolicy # EnablePasswordPolicy
|
||||
# DisableCtrlAltDelLogin # EnableCtrlAltDelLogin
|
||||
# DisableIEEnhancedSecurity # EnableIEEnhancedSecurity
|
||||
# EnableAudio # DisableAudio
|
||||
|
||||
### Unpinning ###
|
||||
# UnpinStartMenuTiles
|
||||
|
||||
36
README.md
36
README.md
@@ -11,7 +11,7 @@
|
||||
|
||||
## Description
|
||||
|
||||
This is a PowerShell script for automation of routine tasks done after fresh installations of Windows 10 and Windows Server 2016. This is by no means any complete set of all existing Windows tweaks and neither is it another "antispying" type of script. It's simply a setting which I like to use and which in my opinion make the system less obtrusive.
|
||||
This is a PowerShell script for automation of routine tasks done after fresh installations of Windows 10 and Windows Server 2016 / 2019. This is by no means any complete set of all existing Windows tweaks and neither is it another "antispying" type of script. It's simply a setting which I like to use and which in my opinion make the system less obtrusive.
|
||||
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@ The script supports command line options and parameters which can help you custo
|
||||
**Q:** Which versions and editions of Windows are supported?
|
||||
**A:** The script aims to be fully compatible with the most up-to-date 64bit version of Windows 10 receiving updates from semi-annual channel, however if you create your own preset and exclude the incompatible tweaks, it will work also on LTSB/LTSC and possibly also on 32bit systems. Vast majority of the tweaks will work on all Windows editions. Some of them rely on group policy settings, so there may be a few limitations for Home and Education editions.
|
||||
|
||||
**Q:** Can I run the script on Windows Server 2016?
|
||||
**A:** Yes. Starting from version 2.5, Windows Server 2016 is supported. There are even few tweaks specific to Server environment. Keep in mind though, that the script is still primarily designed for Windows 10, so you have to create your own preset for Windows Server 2016.
|
||||
**Q:** Can I run the script on Windows Server 2016 or 2019?
|
||||
**A:** Yes. Starting from version 2.5, Windows Server is supported. There are even few tweaks specific to Server environment. Keep in mind though, that the script is still primarily designed for Windows 10, so you have to create your own preset.
|
||||
|
||||
**Q:** Can I run the script on Windows 7, 8, 8.1 or other versions of Windows?
|
||||
**A:** No. Although some tweaks may work also on older versions of Windows, the script is developed only for Windows 10 and Windows Server 2016. There are no plans to support older versions.
|
||||
**A:** No. Although some tweaks may work also on older versions of Windows, the script is developed only for Windows 10 and Windows Server 2016 / 2019. There are no plans to support older versions.
|
||||
|
||||
**Q:** Can I run the script in multi-user environment?
|
||||
**A:** Yes, to certain extent. Some tweaks (most notably UI tweaks) are set only for the user currently executing the script. As stated above, the script can be run repeatedly; therefore it's possible to run it multiple times, each time as different user. Due to the nature of authentication and privilege escalation mechanisms in Windows, most of the tweaks can be successfully applied only by users belonging to *Administrators* group. Standard users will get an UAC prompt asking for admin credentials which then causes the tweaks to be applied to the given admin account instead of the original non-privileged one. There are a few ways how this can be circumvented programmatically, but I'm not planning to include any as it would negatively impact code complexity and readability. If you still wish to try to use the script in multi-user environment, check [this answer in issue #29](https://github.com/Disassembler0/Win10-Initial-Setup-Script/issues/29#issuecomment-333040591) for some pointers.
|
||||
@@ -66,8 +66,8 @@ The script supports command line options and parameters which can help you custo
|
||||
**Q:** For how long are you going to maintain the script?
|
||||
**A:** As long as I use Windows 10.
|
||||
|
||||
**Q:** I really like the script. Is there any way to express gratitude and send a donation?
|
||||
**A:** Feel free to send donations via [PayPal donation link](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=disassembler%40dasm%2ecz&item_name=Disassembler&no_shipping=1). Any amount is appreciated, just be aware that PayPal charges [mediation fees](https://www.paypal.com/selfhelp/article/FAQ690). Also be aware that donations are completely voluntary and I'm not obliged to make any script adjustments in your favor regardless of the donated amount.
|
||||
**Q:** I really like the script. Can I send a donation?
|
||||
**A:** Feel free to send donations via [PayPal](https://www.paypal.me/Disassembler). Any amount is appreciated, but keep in mind that donations are completely voluntary and I'm not obliged to make any script adjustments in your favor regardless of the donated amount. You can also drop me a mail to discuss an alternative way.
|
||||
|
||||
|
||||
|
||||
@@ -81,21 +81,27 @@ The script supports command line options and parameters which can help you custo
|
||||
| 1703 | Redstone 2 (RS2) | Creators Update | 15063 |
|
||||
| 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 |
|
||||
|
||||
|
||||
|
||||
## 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
|
||||
|
||||
### Presets
|
||||
|
||||
The tweak library consists of separate idempotent functions, containing one tweak each. The functions can be grouped to *presets*. Preset is simply a list of function names which should be called. Any function which is not present or is commented in a preset will not be called, thus the corresponding tweak will not be applied. In order for the script to do something, you need to supply at least one tweak library via `-include` and at least one tweak name, either via `-preset` or directly as command line argument.
|
||||
|
||||
The tweak names can be prefixed with exclamation mark (`!`) which will instead cause the tweak to be removed from selection. This is useful in cases when you want to apply the whole preset, but omit a few specific tweaks in the current run. Alternatively, you can have a preset which "patches" another preset by adding and removing a small amount of tweaks.
|
||||
|
||||
To supply a customized preset, you can either pass the function names directly as arguments.
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include Win10.psm1 EnableFirewall EnableDefender
|
||||
@@ -109,7 +115,7 @@ Example of a preset file `mypreset.txt`:
|
||||
|
||||
# UI tweaks
|
||||
ShowKnownExtensions
|
||||
ShowHiddenFiles # Only hidden, not system
|
||||
ShowHiddenFiles # Only hidden, not system
|
||||
|
||||
Command using the preset file above:
|
||||
|
||||
@@ -141,9 +147,9 @@ Command using the script above:
|
||||
All features described above can be combined. You can have a preset which includes both tweaks from the original script and your personal ones. Both `-include` and `-preset` options can be used more than once, so you can split your tweaks into groups and then combine them based on your current needs. The `-include` modules are always imported before the first tweak is applied, so the order of the command line parameters doesn't matter and neither does the order of the tweaks (except for `RequireAdmin`, which should always be called first and `Restart`, which should be always called last). It can happen that some tweaks are applied more than once during a singe run because you have them in multiple presets. That shouldn't cause any problems as the tweaks are idempotent.
|
||||
Example of a preset file `otherpreset.txt`:
|
||||
|
||||
InstallLinuxSubsystem
|
||||
MyTweak1
|
||||
MyTweak2
|
||||
!ShowHiddenFiles # Will remove the tweak from selection
|
||||
WaitForKey
|
||||
|
||||
Command using all three examples combined:
|
||||
@@ -152,6 +158,14 @@ Command using all three examples combined:
|
||||
|
||||
|
||||
|
||||
### 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.
|
||||
@@ -208,7 +222,7 @@ Following is a list of rules which I'm trying to apply in this project. The rule
|
||||
Try to give a function a meaningful name up to 25 characters long, which gives away the purpose of the function. Use verbs like `Enable`/`Disable`, `Show`/`Hide`, `Install`/`Uninstall`, `Add`/`Remove` in the beginning of the function name. In case the function doesn't fit any of these verbs, come up with another name, beginning with the verb `Set`, which indicates what the function does, e.g. `SetCurrentNetworkPrivate` and `SetCurrentNetworkPublic`.
|
||||
|
||||
### Revert functions
|
||||
Always add a function with opposite name (or equivalent) which reverts the behavior to default. The default is considered freshly installed Windows 10 or Windows Server 2016 with no adjustments made during or after the installation. If you don't have access to either of these, create the revert function to the best of your knowledge and I will fill in the rest if necessary.
|
||||
Always add a function with opposite name (or equivalent) which reverts the behavior to default. The default is considered freshly installed Windows 10 or Windows Server 2016 / 2019 with no adjustments made during or after the installation. If you don't have access to either of these, create the revert function to the best of your knowledge and I will fill in the rest if necessary.
|
||||
|
||||
### Function similarities
|
||||
Check if there isn't already a function with similar purpose as the one you're trying to add. As long as the name and objective of the existing function is unchanged, feel free to add your tweak to that function rather than creating a new one.
|
||||
@@ -226,7 +240,7 @@ Unless applied on unsupported system, all functions have to be applicable repeat
|
||||
Suppress all output generated by commands and cmdlets using `| Out-Null` or `-ErrorAction SilentlyContinue` where applicable. Whenever an input is needed, use appropriate arguments to suppress the prompt and programmatically provide values for the command to run (e.g. using `-Confirm:$false`). The only acceptable output is from the `Write-Output` cmdlets in the beginning of each function and from non-suppressible cmdlets like `Remove-AppxPackage`.
|
||||
|
||||
### Registry
|
||||
Create the registry keys only if they don't exist on fresh installation if Windows 10 or Windows Server 2016. When deleting registry, delete only registry values, not the whole keys. When you're setting registry values, always use `Set-ItemProperty` instead of `New-ItemProperty`. When you're removing registry values, choose either `Set-ItemProperty` or `Remove-ItemProperty` to reinstate the same situation as it was on the clean installation. Again, if you don't know what the original state was, let me know in PR description and I will fill in the gaps. When you need to use `HKEY_USERS` registry hive, always add following snippet before the registry modification to ensure portability.
|
||||
Create the registry keys only if they don't exist on fresh installation if Windows 10 or Windows Server 2016 / 2019. When deleting registry, delete only registry values, not the whole keys. When you're setting registry values, always use `Set-ItemProperty` instead of `New-ItemProperty`. When you're removing registry values, choose either `Set-ItemProperty` or `Remove-ItemProperty` to reinstate the same situation as it was on the clean installation. Again, if you don't know what the original state was, let me know in PR description and I will fill in the gaps. When you need to use `HKEY_USERS` registry hive, always add following snippet before the registry modification to ensure portability.
|
||||
|
||||
```powershell
|
||||
If (!(Test-Path "HKU:")) {
|
||||
|
||||
26
Win10.ps1
26
Win10.ps1
@@ -1,7 +1,7 @@
|
||||
##########
|
||||
# Win10 / WinServer2016 Initial Setup Script - Main execution loop
|
||||
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Main execution loop
|
||||
# Author: Disassembler <disassembler@dasm.cz>
|
||||
# Version: v3.0, 2018-09-15
|
||||
# Version: development
|
||||
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
|
||||
##########
|
||||
|
||||
@@ -16,6 +16,16 @@ Function RequireAdmin {
|
||||
$tweaks = @()
|
||||
$PSCommandArgs = @()
|
||||
|
||||
Function AddOrRemoveTweak($tweak) {
|
||||
If ($tweak[0] -eq "!") {
|
||||
# If the name starts with exclamation mark (!), exclude the tweak from selection
|
||||
$script:tweaks = $script:tweaks | Where-Object { $_ -ne $tweak.Substring(1) }
|
||||
} ElseIf ($tweak -ne "") {
|
||||
# Otherwise add the tweak
|
||||
$script:tweaks += $tweak
|
||||
}
|
||||
}
|
||||
|
||||
# Parse and resolve paths in passed arguments
|
||||
$i = 0
|
||||
While ($i -lt $args.Length) {
|
||||
@@ -30,14 +40,20 @@ While ($i -lt $args.Length) {
|
||||
$preset = Resolve-Path $args[++$i]
|
||||
$PSCommandArgs += "-preset `"$preset`""
|
||||
# Load tweak names from the preset file
|
||||
$tweaks += Get-Content $preset -ErrorAction Stop | ForEach { $_.Split("#")[0].Trim() } | Where { $_ -ne "" }
|
||||
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
|
||||
$tweaks += $args[$i]
|
||||
AddOrRemoveTweak($args[$i])
|
||||
}
|
||||
$i++
|
||||
}
|
||||
|
||||
# Call the desired tweak functions
|
||||
$tweaks | ForEach { Invoke-Expression $_ }
|
||||
$tweaks | ForEach-Object { Invoke-Expression $_ }
|
||||
|
||||
1939
Win10.psm1
1939
Win10.psm1
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user