mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-01-12 07:28:29 -05:00
Compare commits
58 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc0a121435 | ||
|
|
1ab60c363e | ||
|
|
575b7ef26a | ||
|
|
7be6666d1d | ||
|
|
4df2b8cc44 | ||
|
|
9dcbd908f4 | ||
|
|
cf870330c8 | ||
|
|
3bdb745e0f | ||
|
|
5fe7d91b79 | ||
|
|
615ff8cacc | ||
|
|
42fde5e945 | ||
|
|
e3570d5f28 | ||
|
|
7de3e81c79 | ||
|
|
a41c0eea7b | ||
|
|
ccc65c4ad3 | ||
|
|
17a5c51e66 | ||
|
|
1eaa9d58bd | ||
|
|
e24132e074 | ||
|
|
04b85dac57 | ||
|
|
18e75afef6 | ||
|
|
46f3881d2b | ||
|
|
b67276058b | ||
|
|
8d468e7df1 | ||
|
|
ebaa3d0ba7 | ||
|
|
e9b915a2da | ||
|
|
3e1c7feeb6 | ||
|
|
491be4acc2 | ||
|
|
538a1fdd39 | ||
|
|
50362f37e1 | ||
|
|
871cad8660 | ||
|
|
5eb8a84dce | ||
|
|
d93d5ac4df | ||
|
|
b6840e2ba2 | ||
|
|
6830298064 | ||
|
|
39a1d9022d | ||
|
|
3f9e7e84a1 | ||
|
|
59b2000f6c | ||
|
|
b1447c0fc9 | ||
|
|
c79ed38b66 | ||
|
|
c935abafa3 | ||
|
|
14bf1e8477 | ||
|
|
2f8e43cc03 | ||
|
|
e0c9dd1df7 | ||
|
|
157bf356dc | ||
|
|
d1089630c5 | ||
|
|
936e0da7ec | ||
|
|
71b8166b9e | ||
|
|
23f19fd851 | ||
|
|
9c957d217c | ||
|
|
90deb26b55 | ||
|
|
dac835801a | ||
|
|
ad09c6ec67 | ||
|
|
11dd5c64e5 | ||
|
|
1f67aedeab | ||
|
|
94216899a5 | ||
|
|
d427ae7354 | ||
|
|
8b88e2deeb | ||
|
|
3fa306ac8f |
10
README.md
10
README.md
@@ -38,7 +38,7 @@ Command using the preset file above:
|
||||
**A:** Yes! In fact the script has been written to support exactly this as it's not uncommon that big Windows Updates reset some of the settings.
|
||||
|
||||
**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, the script can be successfully applied only for 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. To circumvent this, add the standard user to the *Administrators* group, run the script, and then remove the user from *Administrators* group again. There are a few ways how the same functionality can be achieved programmatically, but I'm not planning to include any of them as it would negatively impact code complexity and readability.
|
||||
**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, the script can be successfully applied only for 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. To circumvent this, add the standard user to the *Administrators* group, run the script, and then remove the user from *Administrators* group again. There are a few ways how the same functionality can be achieved programmatically, but I'm not planning to include any of them 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.
|
||||
|
||||
**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.
|
||||
@@ -50,7 +50,7 @@ Command using the preset file above:
|
||||
**A:** Yes. I'm testing new additions on up-to-date Home and Enterprise editions in VMs. I'm also regularly using it for all my home installations after all bigger updates.
|
||||
|
||||
**Q**: I've run the script and it did xxx, how can I undo it?
|
||||
**A:** For every tweak, there is also a corresponding function which restores the default settings. Use them to create and run new preset. Alternatively, since most functions are just automation for actions which can be done using GUI, find appropriate control and modify it manually.
|
||||
**A:** For every tweak, there is also a corresponding function which restores the default settings. The default is considered freshly installed Windows 10 or Windows Server 2016 with no adjustments made during or after the installation. Use the tweaks to create and run new preset. Alternatively, since most functions are just automation for actions which can be done using GUI, find appropriate control and modify it manually.
|
||||
|
||||
**Q:** I've run the script and it broke my computer / killed neighbor's dog / caused world war 3.
|
||||
**A:** I don't care. Also, that's not a question.
|
||||
@@ -86,8 +86,8 @@ Check if there isn't already a function with similar purpose as the one you are
|
||||
### Function grouping
|
||||
Try to group functions thematically. There are already five major groups (privacy, services, user interface, applications and server-specific), but even within these, some tweaks may be related to each other. In such case, add a new tweak below the existing one and not to the end of the whole group.
|
||||
|
||||
### Default settings
|
||||
Always add a reference to the tweak and its revert function in the `$tweaks` array containing the default settings. Add references to both functions on the same line (mind the quotes and commas) and always comment out the revert function. Whether to comment out also the tweak in the default preset is a matter of personal preference. The rule of thumb is that if the tweak makes the system faster, smoother, more secure and less obtrusive, it should be enabled by default. Usability has preference over performance (that's why e.g. indexing is kept enabled). Also don't forget to add the function references to all test files.
|
||||
### Default preset
|
||||
Always add a reference to the tweak and its revert function in the `$tweaks` array containing the default set of tweaks. Add references to both functions on the same line (mind the quotes and commas) and always comment out the revert function. Whether to comment out also the tweak in the default preset is a matter of personal preference. The rule of thumb is that if the tweak makes the system faster, smoother, more secure and less obtrusive, it should be enabled by default. Usability has preference over performance (that's why e.g. indexing is kept enabled). Also don't forget to add the function references to all test files.
|
||||
|
||||
### Repeatability
|
||||
Unless applied on unsupported system, all functions have to be applicable repeatedly without any errors. When you're creating a registry key, always check first if the key doesn't happen to already exist. When you're deleting registry value, always append `-ErrorAction SilentlyContinue` to prevent errors while deleting already deleted values.
|
||||
@@ -96,7 +96,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 parameters to suppress the prompt and programmatically provide values for the command to run (eg. using `-Confirm:$false`). The only acceptable output is from the `Write-Host` 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 th 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. 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:")) {
|
||||
|
||||
3
test/Default.bat
Normal file
3
test/Default.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "..\Win10.ps1" -preset "Default.preset"
|
||||
134
test/Default.preset
Normal file
134
test/Default.preset
Normal file
@@ -0,0 +1,134 @@
|
||||
# Default preset
|
||||
|
||||
RequireAdmin
|
||||
|
||||
DisableTelemetry
|
||||
DisableWiFiSense
|
||||
# DisableSmartScreen
|
||||
DisableWebSearch
|
||||
DisableAppSuggestions
|
||||
DisableBackgroundApps
|
||||
DisableLockScreenSpotlight
|
||||
DisableLocationTracking
|
||||
DisableMapUpdates
|
||||
DisableFeedback
|
||||
DisableAdvertisingID
|
||||
DisableCortana
|
||||
DisableErrorReporting
|
||||
SetP2PUpdateLocal
|
||||
DisableAutoLogger
|
||||
DisableDiagTrack
|
||||
DisableWAPPush
|
||||
|
||||
# SetUACLow
|
||||
# EnableSharingMappedDrives
|
||||
DisableAdminShares
|
||||
# DisableSMB1
|
||||
SetCurrentNetworkPrivate
|
||||
# SetUnknownNetworksPrivate
|
||||
# DisableNetDevicesAutoInst
|
||||
# EnableCtrldFolderAccess
|
||||
# DisableFirewall
|
||||
# DisableDefender
|
||||
# DisableDefenderCloud
|
||||
EnableF8BootMenu
|
||||
SetDEPOptOut
|
||||
DisableScriptHost
|
||||
EnableDotNetStrongCrypto
|
||||
# EnableMeltdownCompatFlag
|
||||
|
||||
# DisableUpdateMSRT
|
||||
# DisableUpdateDriver
|
||||
DisableUpdateRestart
|
||||
DisableHomeGroups
|
||||
DisableSharedExperiences
|
||||
DisableRemoteAssistance
|
||||
EnableRemoteDesktop
|
||||
DisableAutoplay
|
||||
DisableAutorun
|
||||
# EnableStorageSense
|
||||
# DisableDefragmentation
|
||||
# DisableSuperfetch
|
||||
# DisableIndexing
|
||||
# SetBIOSTimeUTC
|
||||
# EnableHibernation
|
||||
# DisableSleepButton
|
||||
# DisableSleepTimeout
|
||||
# DisableFastStartup
|
||||
|
||||
DisableActionCenter
|
||||
DisableLockScreen
|
||||
# DisableLockScreenRS1
|
||||
HideNetworkFromLockScreen
|
||||
HideShutdownFromLockScreen
|
||||
DisableStickyKeys
|
||||
ShowTaskManagerDetails"
|
||||
ShowFileOperationsDetails
|
||||
# EnableFileDeleteConfirm
|
||||
HideTaskbarSearchBox
|
||||
HideTaskView
|
||||
ShowSmallTaskbarIcons
|
||||
ShowTaskbarTitles
|
||||
HideTaskbarPeopleIcon
|
||||
ShowTrayIcons
|
||||
DisableSearchAppInStore
|
||||
DisableNewAppPrompt
|
||||
# SetControlPanelViewIcons
|
||||
SetVisualFXPerformance
|
||||
# AddENKeyboard
|
||||
# EnableNumlock
|
||||
|
||||
ShowKnownExtensions
|
||||
ShowHiddenFiles
|
||||
HideSyncNotifications
|
||||
HideRecentShortcuts
|
||||
SetExplorerThisPC
|
||||
ShowThisPCOnDesktop
|
||||
# ShowUserFolderOnDesktop
|
||||
HideDesktopFromThisPC
|
||||
# HideDesktopFromExplorer
|
||||
HideDocumentsFromThisPC
|
||||
# HideDocumentsFromExplorer
|
||||
HideDownloadsFromThisPC
|
||||
# HideDownloadsFromExplorer
|
||||
HideMusicFromThisPC
|
||||
# HideMusicFromExplorer
|
||||
HidePicturesFromThisPC
|
||||
# HidePicturesFromExplorer
|
||||
HideVideosFromThisPC
|
||||
# HideVideosFromExplorer
|
||||
Hide3DObjectsFromThisPC
|
||||
# Hide3DObjectsFromExplorer
|
||||
# DisableThumbnails
|
||||
DisableThumbsDB
|
||||
|
||||
DisableOneDrive
|
||||
UninstallOneDrive
|
||||
UninstallMsftBloat
|
||||
UninstallThirdPartyBloat
|
||||
# UninstallWindowsStore
|
||||
DisableXboxFeatures
|
||||
DisableAdobeFlash
|
||||
# UninstallMediaPlayer
|
||||
# UninstallInternetExplorer
|
||||
# UninstallWorkFolders
|
||||
# InstallLinuxSubsystem
|
||||
# InstallHyperV
|
||||
SetPhotoViewerAssociation
|
||||
AddPhotoViewerOpenWith
|
||||
# UninstallPDFPrinter
|
||||
UninstallXPSPrinter
|
||||
RemoveFaxPrinter
|
||||
|
||||
# HideServerManagerOnLogin
|
||||
# DisableShutdownTracker
|
||||
# DisablePasswordPolicy
|
||||
# DisableCtrlAltDelLogin
|
||||
# DisableIEEnhancedSecurity
|
||||
# EnableAudio
|
||||
|
||||
# UnpinStartMenuTiles
|
||||
# UnpinTaskbarIcons
|
||||
|
||||
WaitForKey
|
||||
Restart
|
||||
@@ -1,3 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\Win10.ps1" -preset "%~dp0Win10-ApplyAll.preset"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "..\Win10.ps1" -preset "Win10-ApplyAll.preset"
|
||||
|
||||
@@ -6,7 +6,9 @@ DisableTelemetry
|
||||
DisableWiFiSense
|
||||
DisableSmartScreen
|
||||
DisableWebSearch
|
||||
DisableStartSuggestions
|
||||
DisableAppSuggestions
|
||||
DisableBackgroundApps
|
||||
DisableLockScreenSpotlight
|
||||
DisableLocationTracking
|
||||
DisableMapUpdates
|
||||
DisableFeedback
|
||||
@@ -21,24 +23,37 @@ DisableWAPPush
|
||||
SetUACLow
|
||||
EnableSharingMappedDrives
|
||||
DisableAdminShares
|
||||
DisableSMB1
|
||||
# DisableSMB1
|
||||
SetCurrentNetworkPrivate
|
||||
SetUnknownNetworksPrivate
|
||||
DisableNetDevicesAutoInst
|
||||
EnableCtrldFolderAccess
|
||||
DisableFirewall
|
||||
DisableDefender
|
||||
DisableDefenderCloud
|
||||
EnableF8BootMenu
|
||||
SetDEPOptOut
|
||||
DisableScriptHost
|
||||
EnableDotNetStrongCrypto
|
||||
EnableMeltdownCompatFlag
|
||||
|
||||
DisableUpdateMSRT
|
||||
DisableUpdateDriver
|
||||
DisableUpdateRestart
|
||||
DisableHomeGroups
|
||||
DisableSharedExperiences
|
||||
DisableRemoteAssistance
|
||||
EnableRemoteDesktop
|
||||
DisableAutoplay
|
||||
DisableAutorun
|
||||
EnableStorageSense
|
||||
DisableDefragmentation
|
||||
DisableSuperfetch
|
||||
DisableIndexing
|
||||
SetBIOSTimeUTC
|
||||
EnableHibernation
|
||||
DisableSleepButton
|
||||
DisableSleepTimeout
|
||||
DisableFastStartup
|
||||
|
||||
DisableActionCenter
|
||||
@@ -56,47 +71,64 @@ ShowSmallTaskbarIcons
|
||||
ShowTaskbarTitles
|
||||
HideTaskbarPeopleIcon
|
||||
ShowTrayIcons
|
||||
DisableSearchAppInStore
|
||||
DisableNewAppPrompt
|
||||
SetControlPanelViewIcons
|
||||
SetVisualFXPerformance
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
ShowKnownExtensions
|
||||
ShowHiddenFiles
|
||||
HideSyncNotifications
|
||||
HideRecentShortcuts
|
||||
SetExplorerThisPC
|
||||
ShowThisPCOnDesktop
|
||||
ShowUserFolderOnDesktop
|
||||
HideDesktopFromThisPC
|
||||
HideDesktopFromExplorer
|
||||
HideDocumentsFromThisPC
|
||||
HideDocumentsFromExplorer
|
||||
HideDownloadsFromThisPC
|
||||
HideDownloadsFromExplorer
|
||||
HideMusicFromThisPC
|
||||
HideMusicFromExplorer
|
||||
HidePicturesFromThisPC
|
||||
HidePicturesFromExplorer
|
||||
HideVideosFromThisPC
|
||||
SetVisualFXPerformance
|
||||
HideVideosFromExplorer
|
||||
Hide3DObjectsFromThisPC
|
||||
Hide3DObjectsFromExplorer
|
||||
DisableThumbnails
|
||||
DisableThumbsDB
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
DisableOneDrive
|
||||
UninstallOneDrive
|
||||
UninstallMsftBloat
|
||||
UninstallThirdPartyBloat
|
||||
UninstallWindowsStore
|
||||
DisableConsumerApps
|
||||
DisableXboxFeatures
|
||||
DisableAdobeFlash
|
||||
UninstallMediaPlayer
|
||||
UninstallInternetExplorer
|
||||
UninstallWorkFolders
|
||||
InstallLinuxSubsystem
|
||||
InstallHyperV
|
||||
SetPhotoViewerAssociation
|
||||
AddPhotoViewerOpenWith
|
||||
DisableSearchAppInStore
|
||||
DisableNewAppPrompt
|
||||
EnableF8BootMenu
|
||||
SetDEPOptOut
|
||||
UninstallPDFPrinter
|
||||
UninstallXPSPrinter
|
||||
RemoveFaxPrinter
|
||||
|
||||
# HideServerManagerOnLogin
|
||||
# DisableShutdownTracker
|
||||
# DisablePasswordPolicy
|
||||
# DisableCtrlAltDelLogin
|
||||
# DisableIEEnhancedSecurity
|
||||
# EnableAudio
|
||||
|
||||
UnpinStartMenuTiles
|
||||
UnpinTaskbarIcons
|
||||
|
||||
WaitForKey
|
||||
Restart
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\Win10.ps1" -preset "%~dp0Win10-RestoreAll.preset"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "..\Win10.ps1" -preset "Win10-RestoreAll.preset"
|
||||
|
||||
@@ -6,7 +6,9 @@ EnableTelemetry
|
||||
EnableWiFiSense
|
||||
EnableSmartScreen
|
||||
EnableWebSearch
|
||||
EnableStartSuggestions
|
||||
EnableAppSuggestions
|
||||
EnableBackgroundApps
|
||||
EnableLockScreenSpotlight
|
||||
EnableLocationTracking
|
||||
EnableMapUpdates
|
||||
EnableFeedback
|
||||
@@ -21,24 +23,37 @@ EnableWAPPush
|
||||
SetUACHigh
|
||||
DisableSharingMappedDrives
|
||||
EnableAdminShares
|
||||
EnableSMB1
|
||||
# EnableSMB1
|
||||
SetCurrentNetworkPublic
|
||||
SetUnknownNetworksPublic
|
||||
EnableNetDevicesAutoInst
|
||||
DisableCtrldFolderAccess
|
||||
EnableFirewall
|
||||
EnableDefender
|
||||
EnableDefenderCloud
|
||||
DisableF8BootMenu
|
||||
SetDEPOptIn
|
||||
EnableScriptHost
|
||||
DisableDotNetStrongCrypto
|
||||
DisableMeltdownCompatFlag
|
||||
|
||||
EnableUpdateMSRT
|
||||
EnableUpdateDriver
|
||||
EnableUpdateRestart
|
||||
EnableHomeGroups
|
||||
EnableSharedExperiences
|
||||
EnableRemoteAssistance
|
||||
DisableRemoteDesktop
|
||||
EnableAutoplay
|
||||
EnableAutorun
|
||||
DisableStorageSense
|
||||
EnableDefragmentation
|
||||
EnableSuperfetch
|
||||
EnableIndexing
|
||||
SetBIOSTimeLocal
|
||||
DisableHibernation
|
||||
EnableSleepButton
|
||||
EnableSleepTimeout
|
||||
EnableFastStartup
|
||||
|
||||
EnableActionCenter
|
||||
@@ -56,47 +71,61 @@ ShowLargeTaskbarIcons
|
||||
HideTaskbarTitles
|
||||
ShowTaskbarPeopleIcon
|
||||
HideTrayIcons
|
||||
EnableSearchAppInStore
|
||||
EnableNewAppPrompt
|
||||
SetControlPanelViewCategories
|
||||
SetVisualFXAppearance
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
HideKnownExtensions
|
||||
HideHiddenFiles
|
||||
ShowSyncNotifications
|
||||
ShowRecentShortcuts
|
||||
SetExplorerQuickAccess
|
||||
HideThisPCFromDesktop
|
||||
HideUserFolderFromDesktop
|
||||
ShowDesktopInThisPC
|
||||
ShowDesktopInExplorer
|
||||
ShowDocumentsInThisPC
|
||||
ShowDocumentsInExplorer
|
||||
ShowDownloadsInThisPC
|
||||
ShowDownloadsInExplorer
|
||||
ShowMusicInThisPC
|
||||
ShowMusicInExplorer
|
||||
ShowPicturesInThisPC
|
||||
ShowPicturesInExplorer
|
||||
ShowVideosInThisPC
|
||||
SetVisualFXAppearance
|
||||
ShowVideosInExplorer
|
||||
Show3DObjectsInThisPC
|
||||
Show3DObjectsInExplorer
|
||||
EnableThumbnails
|
||||
EnableThumbsDB
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
EnableOneDrive
|
||||
InstallOneDrive
|
||||
InstallMsftBloat
|
||||
InstallThirdPartyBloat
|
||||
InstallWindowsStore
|
||||
EnableConsumerApps
|
||||
EnableXboxFeatures
|
||||
EnableAdobeFlash
|
||||
InstallMediaPlayer
|
||||
InstallInternetExplorer
|
||||
InstallWorkFolders
|
||||
UninstallLinuxSubsystem
|
||||
UninstallHyperV
|
||||
UnsetPhotoViewerAssociation
|
||||
RemovePhotoViewerOpenWith
|
||||
EnableSearchAppInStore
|
||||
EnableNewAppPrompt
|
||||
DisableF8BootMenu
|
||||
SetDEPOptIn
|
||||
InstallPDFPrinter
|
||||
InstallXPSPrinter
|
||||
AddFaxPrinter
|
||||
|
||||
# ShowServerManagerOnLogin
|
||||
# EnableShutdownTracker
|
||||
# EnablePasswordPolicy
|
||||
# EnableCtrlAltDelLogin
|
||||
# EnableIEEnhancedSecurity
|
||||
# DisableAudio
|
||||
|
||||
WaitForKey
|
||||
Restart
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\Win10.ps1" -preset "%~dp0WinServer2016-ApplyAll.preset"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "..\Win10.ps1" -preset "WinServer2016-ApplyAll.preset"
|
||||
|
||||
@@ -6,7 +6,9 @@ DisableTelemetry
|
||||
DisableWiFiSense
|
||||
DisableSmartScreen
|
||||
DisableWebSearch
|
||||
DisableStartSuggestions
|
||||
DisableAppSuggestions
|
||||
DisableBackgroundApps
|
||||
DisableLockScreenSpotlight
|
||||
DisableLocationTracking
|
||||
DisableMapUpdates
|
||||
DisableFeedback
|
||||
@@ -18,27 +20,40 @@ DisableAutoLogger
|
||||
DisableDiagTrack
|
||||
DisableWAPPush
|
||||
|
||||
SetUACHigh
|
||||
SetUACLow
|
||||
EnableSharingMappedDrives
|
||||
DisableAdminShares
|
||||
DisableSMB1
|
||||
SetCurrentNetworkPrivate
|
||||
SetUnknownNetworksPrivate
|
||||
DisableNetDevicesAutoInst
|
||||
# EnableCtrldFolderAccess
|
||||
DisableFirewall
|
||||
DisableDefender
|
||||
DisableDefenderCloud
|
||||
EnableF8BootMenu
|
||||
SetDEPOptOut
|
||||
DisableScriptHost
|
||||
EnableDotNetStrongCrypto
|
||||
EnableMeltdownCompatFlag
|
||||
|
||||
DisableUpdateMSRT
|
||||
DisableUpdateDriver
|
||||
DisableUpdateRestart
|
||||
# DisableHomeGroups
|
||||
# DisableSharedExperiences
|
||||
# DisableRemoteAssistance
|
||||
EnableRemoteDesktop
|
||||
DisableAutoplay
|
||||
DisableAutorun
|
||||
# EnableStorageSense
|
||||
DisableDefragmentation
|
||||
# DisableSuperfetch
|
||||
DisableIndexing
|
||||
SetBIOSTimeUTC
|
||||
EnableHibernation
|
||||
DisableSleepButton
|
||||
DisableSleepTimeout
|
||||
DisableFastStartup
|
||||
|
||||
DisableActionCenter
|
||||
@@ -56,47 +71,64 @@ ShowSmallTaskbarIcons
|
||||
ShowTaskbarTitles
|
||||
HideTaskbarPeopleIcon
|
||||
ShowTrayIcons
|
||||
DisableSearchAppInStore
|
||||
DisableNewAppPrompt
|
||||
SetControlPanelViewIcons
|
||||
SetVisualFXPerformance
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
ShowKnownExtensions
|
||||
ShowHiddenFiles
|
||||
HideSyncNotifications
|
||||
HideRecentShortcuts
|
||||
SetExplorerThisPC
|
||||
ShowThisPCOnDesktop
|
||||
ShowUserFolderOnDesktop
|
||||
HideDesktopFromThisPC
|
||||
HideDesktopFromExplorer
|
||||
HideDocumentsFromThisPC
|
||||
HideDocumentsFromExplorer
|
||||
HideDownloadsFromThisPC
|
||||
HideDownloadsFromExplorer
|
||||
HideMusicFromThisPC
|
||||
HideMusicFromExplorer
|
||||
HidePicturesFromThisPC
|
||||
HidePicturesFromExplorer
|
||||
HideVideosFromThisPC
|
||||
SetVisualFXPerformance
|
||||
HideVideosFromExplorer
|
||||
Hide3DObjectsFromThisPC
|
||||
Hide3DObjectsFromExplorer
|
||||
DisableThumbnails
|
||||
DisableThumbsDB
|
||||
AddENKeyboard
|
||||
EnableNumlock
|
||||
|
||||
DisableOneDrive
|
||||
# UninstallOneDrive
|
||||
UninstallMsftBloat
|
||||
UninstallThirdPartyBloat
|
||||
UninstallWindowsStore
|
||||
DisableConsumerApps
|
||||
DisableXboxFeatures
|
||||
DisableAdobeFlash
|
||||
UninstallMediaPlayer
|
||||
UninstallInternetExplorer
|
||||
# UninstallWorkFolders
|
||||
# InstallLinuxSubsystem
|
||||
InstallHyperV
|
||||
SetPhotoViewerAssociation
|
||||
AddPhotoViewerOpenWith
|
||||
DisableSearchAppInStore
|
||||
DisableNewAppPrompt
|
||||
EnableF8BootMenu
|
||||
SetDEPOptOut
|
||||
UninstallPDFPrinter
|
||||
UninstallXPSPrinter
|
||||
RemoveFaxPrinter
|
||||
|
||||
HideServerManagerOnLogin
|
||||
DisableShutdownTracker
|
||||
DisablePasswordPolicy
|
||||
DisableCtrlAltDelLogin
|
||||
DisableIEEnhancedSecurity
|
||||
EnableAudio
|
||||
|
||||
# UnpinStartMenuTiles
|
||||
UnpinTaskbarIcons
|
||||
|
||||
WaitForKey
|
||||
Restart
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
@ECHO OFF
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0..\Win10.ps1" -preset "%~dp0WinServer2016-RestoreAll.preset"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "..\Win10.ps1" -preset "WinServer2016-RestoreAll.preset"
|
||||
|
||||
@@ -6,7 +6,9 @@ EnableTelemetry
|
||||
EnableWiFiSense
|
||||
EnableSmartScreen
|
||||
EnableWebSearch
|
||||
EnableStartSuggestions
|
||||
EnableAppSuggestions
|
||||
EnableBackgroundApps
|
||||
EnableLockScreenSpotlight
|
||||
EnableLocationTracking
|
||||
EnableMapUpdates
|
||||
EnableFeedback
|
||||
@@ -24,21 +26,34 @@ EnableAdminShares
|
||||
EnableSMB1
|
||||
SetCurrentNetworkPublic
|
||||
SetUnknownNetworksPublic
|
||||
EnableNetDevicesAutoInst
|
||||
# DisableCtrldFolderAccess
|
||||
EnableFirewall
|
||||
EnableDefender
|
||||
EnableDefenderCloud
|
||||
DisableF8BootMenu
|
||||
SetDEPOptIn
|
||||
EnableScriptHost
|
||||
DisableDotNetStrongCrypto
|
||||
DisableMeltdownCompatFlag
|
||||
|
||||
EnableUpdateMSRT
|
||||
EnableUpdateDriver
|
||||
EnableUpdateRestart
|
||||
# EnableHomeGroups
|
||||
# EnableSharedExperiences
|
||||
# EnableRemoteAssistance
|
||||
DisableRemoteDesktop
|
||||
EnableAutoplay
|
||||
EnableAutorun
|
||||
# DisableStorageSense
|
||||
EnableDefragmentation
|
||||
# EnableSuperfetch
|
||||
EnableIndexing
|
||||
SetBIOSTimeLocal
|
||||
DisableHibernation
|
||||
EnableSleepButton
|
||||
EnableSleepTimeout
|
||||
EnableFastStartup
|
||||
|
||||
EnableActionCenter
|
||||
@@ -56,47 +71,61 @@ ShowLargeTaskbarIcons
|
||||
HideTaskbarTitles
|
||||
ShowTaskbarPeopleIcon
|
||||
HideTrayIcons
|
||||
EnableSearchAppInStore
|
||||
EnableNewAppPrompt
|
||||
SetControlPanelViewCategories
|
||||
SetVisualFXAppearance
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
HideKnownExtensions
|
||||
HideHiddenFiles
|
||||
ShowSyncNotifications
|
||||
ShowRecentShortcuts
|
||||
SetExplorerQuickAccess
|
||||
HideThisPCFromDesktop
|
||||
HideUserFolderFromDesktop
|
||||
ShowDesktopInThisPC
|
||||
ShowDesktopInExplorer
|
||||
ShowDocumentsInThisPC
|
||||
ShowDocumentsInExplorer
|
||||
ShowDownloadsInThisPC
|
||||
ShowDownloadsInExplorer
|
||||
ShowMusicInThisPC
|
||||
ShowMusicInExplorer
|
||||
ShowPicturesInThisPC
|
||||
ShowPicturesInExplorer
|
||||
ShowVideosInThisPC
|
||||
SetVisualFXAppearance
|
||||
ShowVideosInExplorer
|
||||
Show3DObjectsInThisPC
|
||||
Show3DObjectsInExplorer
|
||||
EnableThumbnails
|
||||
EnableThumbsDB
|
||||
RemoveENKeyboard
|
||||
DisableNumlock
|
||||
|
||||
EnableOneDrive
|
||||
# InstallOneDrive
|
||||
InstallMsftBloat
|
||||
InstallThirdPartyBloat
|
||||
InstallWindowsStore
|
||||
EnableConsumerApps
|
||||
EnableXboxFeatures
|
||||
EnableAdobeFlash
|
||||
InstallMediaPlayer
|
||||
InstallInternetExplorer
|
||||
# InstallWorkFolders
|
||||
# UninstallLinuxSubsystem
|
||||
UninstallHyperV
|
||||
UnsetPhotoViewerAssociation
|
||||
RemovePhotoViewerOpenWith
|
||||
EnableSearchAppInStore
|
||||
EnableNewAppPrompt
|
||||
DisableF8BootMenu
|
||||
SetDEPOptIn
|
||||
InstallPDFPrinter
|
||||
InstallXPSPrinter
|
||||
AddFaxPrinter
|
||||
|
||||
ShowServerManagerOnLogin
|
||||
EnableShutdownTracker
|
||||
EnablePasswordPolicy
|
||||
EnableCtrlAltDelLogin
|
||||
EnableIEEnhancedSecurity
|
||||
DisableAudio
|
||||
|
||||
WaitForKey
|
||||
Restart
|
||||
|
||||
Reference in New Issue
Block a user