44 Commits
3.0 ... 3.2

Author SHA1 Message Date
Disassembler
27157fef8f v3.2, 2018-10-08, Server 2019 support added
- Add "Hide Windows Defender SysTray icon" (thx @sippi90)
 - Revert DisableSharedExperiences to safer non-GPO variant
 - Update DisableAppSuggestions to hide suggestions in settings
 - Update DisableAppSuggestions to purge and reload tile cache
 - Update UnpinStartMenuTiles to reload tile cache
 - Update EnableStorageSense to set only the necessary values
 - Update documentation and comments to announce Server 2019 support
2018-10-08 22:05:19 +02:00
Disassembler
9e4ad4215b Revert DisableSharedExperiences to non-GPO variant, closes #145
Reverts commit 98e106b78a
2018-10-08 22:04:45 +02:00
Disassembler
baa547cbd8 Update UnpinStartMenuTiles to purge tile cache 2018-10-08 21:45:30 +02:00
Disassembler
503b1a2826 Update DisableAppSuggestions to purge tile cache, related to #145 2018-10-08 21:45:00 +02:00
Disassembler
3a0ff06a81 Add "Hide Windows Defender SysTray icon", salvaged from #146 (thx @sippi90) 2018-10-08 16:44:02 +02:00
Disassembler
0438564bfe Remove extra values in EnableStorageSense, see #143 2018-10-08 16:16:24 +02:00
Disassembler
0d15efc24d Update DisableAppSuggestions to hide suggestions in settings 2018-10-06 16:18:54 +02:00
Disassembler
db2c2d54d9 Add note about InstallLinuxSubsystem Server applicability 2018-10-04 23:04:29 +02:00
Disassembler
efb89f42c2 Update note about DisableSuperfetch Server applicability 2018-10-04 22:55:46 +02:00
Disassembler
4d28393ac0 Add note about DefenderAppGuard Server applicability 2018-10-04 22:41:30 +02:00
Disassembler
a7d1b3b3b1 v3.1, 2018-10-04
- Add "Disable Restore Points"
 - Add "Disable Automatic Boot Recovery"
 - Add "Disable Recovery and Factory Reset"
 - Add "Disable NTFS Last Acccess time stamps" (thx @r3incarnat0r)
 - Add "Enable Defender Application Guard" (thx @sippi90)
 - Add "Uninstall PowerShell 2.0" (thx @sippi90)
 - Add "Install .NET Framework 2.0, 3.0 and 3.5 runtimes"
 - Add "Enable navigation pane expanding to current folder" (thx arobasse2)
 - Add "Disable Aero Shake" (thx arobasse2)
 - Add "Disable adding '- shortcut' to shortcut name" (thx arobasse2)
 - Add "Disable automatic reboot on crash" (thx arobasse2)
 - Add "Disable blocking of downloaded files" (thx arobasse2)
 - Add "Hide 'Include in library' context menu item" (thx arobasse2)
 - Add "Hide 'Share' and 'Give access to' context menu items" (thx arobasse2)
 - Update SetP2PUpdate* to use GPO (thx @sippi90)
 - Update Enable/DisableHibernation to run powercfg (thx @r3incarnat0r)
 - Update ShowTaskManagerDetails to not get stuck (thx @r3incarnat0r)
 - Update EnableDefender for 1809
 - Update UninstallMsftBloat for 1809 (thx @sippi90)
 - Update UnpinStartMenuTiles for 1809
 - Update CtrldFolderAccess to suppress warnings when Defender is disabled
 - Fix copy paste error in EnableSharingWizard (thx @sippi90)
 - Bunch of minor comment changes, code style alignments, reorganizations, clarifications and nitpicks
2018-10-04 21:15:22 +02:00
Disassembler
0d1e8faf61 Suppress CtrldFolderAccess warnings when Defender is disabled
Use single quotes instead escaped double quotes in PhotoViewerOpenWith
2018-10-04 20:53:30 +02:00
Disassembler
03d47362e0 Add "Hide 'Share' and 'Give access to' context menu items" (thx arobasse2) 2018-10-04 20:52:10 +02:00
Disassembler
f53ec4001a Add "Hide 'Include in library' context menu item" (thx arobasse2) 2018-10-04 20:48:33 +02:00
Disassembler
ccb7fa1b77 Add "Disable blocking of downloaded files" (thx arobasse2) 2018-10-04 20:42:53 +02:00
Disassembler
af751acb7f Add "Disable automatic reboot on crash" (thx arobasse2) 2018-10-04 20:42:47 +02:00
Disassembler
b0de075d46 Add "Disable adding '- shortcut' to shortcut name" (thx arobasse2) 2018-10-04 20:42:15 +02:00
Disassembler
f2b628048c Add "Disable Aero Shake" (thx arobasse2) 2018-10-04 14:02:00 +02:00
Disassembler
7feaf667a8 Add "Enable navigation pane expanding to current folder" (thx arobasse2) 2018-10-04 14:01:36 +02:00
Disassembler
a9c9bbb6f0 Move HideAccountProtectionWarn to have Defender tweaks together
No functional change
2018-10-04 12:59:21 +02:00
Disassembler
f42acded36 Update UninstallPowerShellV2 + InstallNET23 for Server 2018-10-03 20:30:03 +02:00
Disassembler
984e370fe6 Suppress EnableHibernation warning on systems not supporting it 2018-10-03 17:56:28 +02:00
Disassembler
3ecf486524 Typo fixes 2018-10-03 17:48:32 +02:00
Disassembler
84b75b1a86 Update UnpinStartMenuTiles for 1809 2018-10-03 17:44:50 +02:00
Disassembler
37b19b942a Add "Install .NET Framework 2.0, 3.0 and 3.5 runtimes" 2018-10-03 17:41:34 +02:00
Disassembler
5565b31afb Bit more comment style edits. No functional changes. 2018-10-03 17:29:34 +02:00
Disassembler
f64365bdcb Add UninstallPowerShellV2, picked from and closes #141 (thx @sippi90) 2018-10-03 17:24:13 +02:00
Disassembler
96b5267c1f Move UninstallMediaPlayer to proper place. No functional change. 2018-10-03 17:12:10 +02:00
Disassembler
96da78d043 Remove even more bloatware, picked from #141 (thx @sippi90) 2018-10-03 17:07:50 +02:00
Disassembler
2c741b2c40 Add EnableDefenderAppGuard, picked from #141 (thx @sippi90) 2018-10-03 16:45:14 +02:00
Disassembler
5f452a171a Unify comment style, fix preset tabstop. No functional changes. 2018-10-03 16:43:48 +02:00
Disassembler
8ff24e54f1 Update EnableDefender for 1809 2018-10-03 16:16:25 +02:00
Disassembler
aa4d3d58a4 Add regions for better code overview, picked from #141 (thx @sippi90) 2018-10-03 15:19:10 +02:00
Disassembler
a7f2b7b7c5 Add 1807 / RS5 into Windows builds overview 2018-10-03 15:15:11 +02:00
sippi90
c747faa96a Improvements from vscode's PSScriptAnalyzer (#139) 2018-10-02 21:36:11 +02:00
r3incarnat0r
bce7bbc109 Update Hibernation ad Task Manager tweaks (#137) 2018-09-29 07:38:24 +02:00
r3incarnat0r
e2646d13e4 Add DisableNTFSLastAccess (#136) 2018-09-28 21:28:19 +02:00
Disassembler
c5c107c59f Use GPO for SetP2PUpdate* - reimplements #135 (thx @sippi90) 2018-09-27 14:56:40 +02:00
Disassembler
2c235573c5 Add a note to DisableRestorePoints about WinServer 2018-09-27 12:59:22 +02:00
Disassembler
113055beaa Add DisableBootRecovery and DisableRecoveryAndReset, closes #131 2018-09-27 12:29:35 +02:00
Disassembler
22c2c047f1 Add DisableRestorePoints, related to #131 2018-09-27 11:36:00 +02:00
sippi90
a670106295 Fix copy paste error in EnableSharingWizard (#134)
SharingWizardOn must be deleted and not PersistBrowsers
2018-09-27 10:40:26 +02:00
Disassembler
a68bb170a4 Reorganize order of defender and boot tweaks (no functional changes). 2018-09-27 10:22:56 +02:00
r3incarnat0r
5fae7389e1 Minor changes (#133)
- shortened Default.cmd
- prevented annoying homegroup errors for 1803+ (counterpart for enabling not touched, cuz it's good to see the errors in this case imo)
2018-09-18 14:06:57 +02:00
5 changed files with 724 additions and 361 deletions

View File

@@ -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"

View File

@@ -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: v3.2, 2018-10-08
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########
@@ -9,155 +9,171 @@
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
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
### 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
# DisableLLMNR # EnableLLMNR
# DisableNCSIProbe # EnableNCSIProbe
SetCurrentNetworkPrivate # SetCurrentNetworkPublic
# SetUnknownNetworksPrivate # SetUnknownNetworksPublic
# 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
DisableUpdateRestart # EnableUpdateRestart
# DisableHomeGroups # EnableHomeGroups
DisableSharedExperiences # EnableSharedExperiences
DisableRemoteAssistance # EnableRemoteAssistance
EnableRemoteDesktop # DisableRemoteDesktop
DisableAutoplay # EnableAutoplay
DisableAutorun # EnableAutorun
# DisableRestorePoints # EnableRestorePoints
# EnableStorageSense # DisableStorageSense
# DisableDefragmentation # EnableDefragmentation
# DisableSuperfetch # EnableSuperfetch
# DisableIndexing # EnableIndexing
# 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
# DisableAeroShake # EnableAeroShake
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
DisableShortcutInName # EnableShortcutInName
SetVisualFXPerformance # SetVisualFXAppearance
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock
# SetSoundSchemeNone # SetSoundSchemeDefault
# DisableStartupSound # EnableStartupSound
# DisableChangingSoundScheme # EnableChangingSoundScheme
### 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
ShowKnownExtensions # HideKnownExtensions
ShowHiddenFiles # HideHiddenFiles
EnableNavPaneExpand # DisableNavPaneExpand
# 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
# 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
DisableAdobeFlash # EnableAdobeFlash
DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
# 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

View File

@@ -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.
&nbsp;
@@ -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.
@@ -81,6 +81,7 @@ 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 |
&nbsp;
@@ -208,7 +209,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 +227,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:")) {

View File

@@ -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: v3.2, 2018-10-08
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########
@@ -30,7 +30,7 @@ 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 "" }
$tweaks += Get-Content $preset -ErrorAction Stop | ForEach-Object { $_.Split("#")[0].Trim() } | Where-Object { $_ -ne "" }
} Else {
$PSCommandArgs += $args[$i]
# Load tweak names from command line
@@ -40,4 +40,4 @@ While ($i -lt $args.Length) {
}
# Call the desired tweak functions
$tweaks | ForEach { Invoke-Expression $_ }
$tweaks | ForEach-Object { Invoke-Expression $_ }

File diff suppressed because it is too large Load Diff