Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Update default preset and version up
Browse files Browse the repository at this point in the history
  • Loading branch information
warexify committed Jan 9, 2021
1 parent 076bfbd commit af62d7a
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 83 deletions.
154 changes: 77 additions & 77 deletions Default.preset
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
RequireAdmin

### Privacy Tweaks ###
DisableTelemetry # EnableTelemetry
# DisableTelemetry # EnableTelemetry
DisableCortana # EnableCortana
DisableWiFiSense # EnableWiFiSense
# DisableSmartScreen # EnableSmartScreen
# DisableWebSearch # EnableWebSearch
DisableSmartScreen # EnableSmartScreen
DisableWebSearch # EnableWebSearch
DisableAppSuggestions # EnableAppSuggestions
DisableActivityHistory # EnableActivityHistory
# DisableSensors # EnableSensors
Expand All @@ -28,8 +28,8 @@ DisableWebLangList # EnableWebLangList
# DisableMicrophone # EnableMicrophone
DisableErrorReporting # EnableErrorReporting
# SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
DisableDiagTrack # EnableDiagTrack
DisableWAPPush # EnableWAPPush
# DisableDiagTrack # EnableDiagTrack
# DisableWAPPush # EnableWAPPush
# EnableClearRecentFiles # DisableClearRecentFiles
# DisableRecentFiles # EnableRecentFiles

Expand All @@ -54,27 +54,27 @@ DisableUWPBackgroundApps # EnableUWPBackgroundApps
### Security Tweaks ###
# SetUACLow # SetUACHigh
# EnableSharingMappedDrives # DisableSharingMappedDrives
DisableAdminShares # EnableAdminShares
# DisableFirewall # EnableFirewall
# HideDefenderTrayIcon # ShowDefenderTrayIcon
# DisableDefender # EnableDefender
# DisableDefenderCloud # EnableDefenderCloud
# EnableCtrldFolderAccess # DisableCtrldFolderAccess
# EnableCIMemoryIntegrity # DisableCIMemoryIntegrity
# EnableDefenderAppGuard # DisableDefenderAppGuard
# DisableAdminShares # EnableAdminShares
DisableFirewall # EnableFirewall
HideDefenderTrayIcon # ShowDefenderTrayIcon
DisableDefender # EnableDefender
DisableDefenderCloud # EnableDefenderCloud
DisableCtrldFolderAccess # EnableCtrldFolderAccess
DisableCIMemoryIntegrity # EnableCIMemoryIntegrity
DisableDefenderAppGuard # EnableDefenderAppGuard
HideAccountProtectionWarn # ShowAccountProtectionWarn
# DisableDownloadBlocking # EnableDownloadBlocking
DisableScriptHost # EnableScriptHost
DisableDownloadBlocking # EnableDownloadBlocking
# DisableScriptHost # EnableScriptHost
EnableDotNetStrongCrypto # DisableDotNetStrongCrypto
# EnableMeltdownCompatFlag # DisableMeltdownCompatFlag
EnableF8BootMenu # DisableF8BootMenu
# EnableF8BootMenu # DisableF8BootMenu
# DisableBootRecovery # EnableBootRecovery
# DisableRecoveryAndReset # EnableRecoveryAndReset
SetDEPOptOut # SetDEPOptIn

### Network Tweaks ###
SetCurrentNetworkPrivate # SetCurrentNetworkPublic
# SetUnknownNetworksPrivate # SetUnknownNetworksPublic
SetUnknownNetworksPrivate # SetUnknownNetworksPublic
# DisableNetDevicesAutoInst # EnableNetDevicesAutoInst
# DisableHomeGroups # EnableHomeGroups
# DisableSMB1 # EnableSMB1
Expand All @@ -90,114 +90,114 @@ SetCurrentNetworkPrivate # SetCurrentNetworkPublic
# DisableNCSIProbe # EnableNCSIProbe
# DisableConnectionSharing # EnableConnectionSharing
DisableRemoteAssistance # EnableRemoteAssistance
# EnableRemoteDesktop # DisableRemoteDesktop
EnableRemoteDesktop # DisableRemoteDesktop

### Service Tweaks ###
# DisableUpdateMSRT # EnableUpdateMSRT
# DisableUpdateDriver # EnableUpdateDriver
DisableUpdateMSRT # EnableUpdateMSRT
EnableUpdateDriver # DisableUpdateDriver
EnableUpdateMSProducts # DisableUpdateMSProducts
# DisableUpdateAutoDownload # EnableUpdateAutoDownload
DisableUpdateRestart # EnableUpdateRestart
DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
# DisableUpdateRestart # EnableUpdateRestart
# DisableMaintenanceWakeUp # EnableMaintenanceWakeUp
# DisableAutoRestartSignOn # EnableAutoRestartSignOn
DisableSharedExperiences # EnableSharedExperiences
# DisableSharedExperiences # EnableSharedExperiences
# EnableClipboardHistory # DisableClipboardHistory
DisableAutoplay # EnableAutoplay
DisableAutorun # EnableAutorun
# DisableRestorePoints # EnableRestorePoints
# EnableStorageSense # DisableStorageSense
EnableStorageSense # DisableStorageSense
# DisableDefragmentation # EnableDefragmentation
# DisableSuperfetch # EnableSuperfetch
# DisableIndexing # EnableIndexing
# DisableRecycleBin # EnableRecycleBin
DisableRecycleBin # EnableRecycleBin
EnableNTFSLongPaths # DisableNTFSLongPaths
# DisableNTFSLastAccess # EnableNTFSLastAccess
# SetBIOSTimeUTC # SetBIOSTimeLocal
# EnableHibernation # DisableHibernation
SetBIOSTimeUTC # SetBIOSTimeLocal
DisableHibernation # EnableHibernation
# DisableSleepButton # EnableSleepButton
# DisableSleepTimeout # EnableSleepTimeout
# DisableFastStartup # EnableFastStartup
# DisableAutoRebootOnCrash # EnableAutoRebootOnCrash

### UI Tweaks ###
DisableActionCenter # EnableActionCenter
DisableLockScreen # EnableLockScreen
# DisableActionCenter # EnableActionCenter
# DisableLockScreen # EnableLockScreen
# DisableLockScreenRS1 # EnableLockScreenRS1
HideNetworkFromLockScreen # ShowNetworkOnLockScreen
HideShutdownFromLockScreen # ShowShutdownOnLockScreen
DisableLockScreenBlur # EnableLockScreenBlur
# HideNetworkFromLockScreen # ShowNetworkOnLockScreen
# HideShutdownFromLockScreen # ShowShutdownOnLockScreen
# DisableLockScreenBlur # EnableLockScreenBlur
# DisableAeroShake # EnableAeroShake
DisableAccessibilityKeys # EnableAccessibilityKeys
# DisableAccessibilityKeys # EnableAccessibilityKeys
ShowTaskManagerDetails # HideTaskManagerDetails
ShowFileOperationsDetails # HideFileOperationsDetails
# EnableFileDeleteConfirm # DisableFileDeleteConfirm
DisableFileDeleteConfirm # EnableFileDeleteConfirm
HideTaskbarSearch # ShowTaskbarSearchIcon # ShowTaskbarSearchBox
HideTaskView # ShowTaskView
ShowSmallTaskbarIcons # ShowLargeTaskbarIcons
SetTaskbarCombineWhenFull # SetTaskbarCombineNever # SetTaskbarCombineAlways
ShowLargeTaskbarIcons # ShowSmallTaskbarIcons
SetTaskbarCombineAlways # SetTaskbarCombineWhenFull # SetTaskbarCombineNever
HideTaskbarPeopleIcon # ShowTaskbarPeopleIcon
ShowTrayIcons # HideTrayIcons
# ShowSecondsInTaskbar # HideSecondsFromTaskbar
DisableSearchAppInStore # EnableSearchAppInStore
# DisableSearchAppInStore # EnableSearchAppInStore
DisableNewAppPrompt # EnableNewAppPrompt
# HideRecentlyAddedApps # ShowRecentlyAddedApps
# HideMostUsedApps # ShowMostUsedApps
# SetWinXMenuPowerShell # SetWinXMenuCmd
SetWinXMenuCmd # SetWinXMenuPowerShell
# SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
DisableShortcutInName # EnableShortcutInName
# HideShortcutArrow # ShowShortcutArrow
SetVisualFXPerformance # SetVisualFXAppearance
# EnableTitleBarColor # DisableTitleBarColor
# SetAppsDarkMode # SetAppsLightMode
# SetSystemLightMode # SetSystemDarkMode
SetVisualFXAppearance # SetVisualFXPerformance
EnableTitleBarColor # DisableTitleBarColor
SetAppsDarkMode # SetAppsLightMode
SetSystemDarkMode # SetSystemLightMode
# AddENKeyboard # RemoveENKeyboard
# EnableNumlock # DisableNumlock
EnableNumlock # DisableNumlock
# DisableEnhPointerPrecision # EnableEnhPointerPrecision
# SetSoundSchemeNone # SetSoundSchemeDefault
# DisableStartupSound # EnableStartupSound
DisableStartupSound # EnableStartupSound
# DisableChangingSoundScheme # EnableChangingSoundScheme
# EnableVerboseStatus # DisableVerboseStatus
DisableF1HelpKey # EnableF1HelpKey

### Explorer UI Tweaks ###
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath
ShowExplorerTitleFullPath # HideExplorerTitleFullPath
ShowKnownExtensions # HideKnownExtensions
ShowHiddenFiles # HideHiddenFiles
# ShowSuperHiddenFiles # HideSuperHiddenFiles
# ShowEmptyDrives # HideEmptyDrives
# ShowFolderMergeConflicts # HideFolderMergeConflicts
EnableNavPaneExpand # DisableNavPaneExpand
# ShowNavPaneAllFolders # HideNavPaneAllFolders
# ShowNavPaneLibraries # HideNavPaneLibraries
# EnableNavPaneExpand # DisableNavPaneExpand
ShowNavPaneAllFolders # HideNavPaneAllFolders
ShowNavPaneLibraries # HideNavPaneLibraries
# EnableFldrSeparateProcess # DisableFldrSeparateProcess
# EnableRestoreFldrWindows # DisableRestoreFldrWindows
EnableRestoreFldrWindows # DisableRestoreFldrWindows
# ShowEncCompFilesColor # HideEncCompFilesColor
# DisableSharingWizard # EnableSharingWizard
# HideSelectCheckboxes # ShowSelectCheckboxes
HideSyncNotifications # ShowSyncNotifications
HideRecentShortcuts # ShowRecentShortcuts
ShowSyncNotifications # HideSyncNotifications
# HideRecentShortcuts # ShowRecentShortcuts
SetExplorerThisPC # SetExplorerQuickAccess
HideQuickAccess # ShowQuickAccess
# HideRecycleBinFromDesktop # ShowRecycleBinOnDesktop
# HideQuickAccess # ShowQuickAccess
HideRecycleBinFromDesktop # ShowRecycleBinOnDesktop
ShowThisPCOnDesktop # HideThisPCFromDesktop
# ShowUserFolderOnDesktop # HideUserFolderFromDesktop
# ShowControlPanelOnDesktop # HideControlPanelFromDesktop
# ShowNetworkOnDesktop # HideNetworkFromDesktop
ShowUserFolderOnDesktop # HideUserFolderFromDesktop
ShowControlPanelOnDesktop # HideControlPanelFromDesktop
ShowNetworkOnDesktop # HideNetworkFromDesktop
# HideDesktopIcons # ShowDesktopIcons
# ShowBuildNumberOnDesktop # HideBuildNumberFromDesktop
HideDesktopFromThisPC # ShowDesktopInThisPC
# HideDesktopFromThisPC # ShowDesktopInThisPC
# HideDesktopFromExplorer # ShowDesktopInExplorer
HideDocumentsFromThisPC # ShowDocumentsInThisPC
# HideDocumentsFromThisPC # ShowDocumentsInThisPC
# HideDocumentsFromExplorer # ShowDocumentsInExplorer
HideDownloadsFromThisPC # ShowDownloadsInThisPC
# HideDownloadsFromThisPC # ShowDownloadsInThisPC
# HideDownloadsFromExplorer # ShowDownloadsInExplorer
HideMusicFromThisPC # ShowMusicInThisPC
# HideMusicFromThisPC # ShowMusicInThisPC
# HideMusicFromExplorer # ShowMusicInExplorer
HidePicturesFromThisPC # ShowPicturesInThisPC
# HidePicturesFromThisPC # ShowPicturesInThisPC
# HidePicturesFromExplorer # ShowPicturesInExplorer
HideVideosFromThisPC # ShowVideosInThisPC
# HideVideosFromThisPC # ShowVideosInThisPC
# HideVideosFromExplorer # ShowVideosInExplorer
Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
# Hide3DObjectsFromThisPC # Show3DObjectsInThisPC
# Hide3DObjectsFromExplorer # Show3DObjectsInExplorer
# HideNetworkFromExplorer # ShowNetworkInExplorer
# HideIncludeInLibraryMenu # ShowIncludeInLibraryMenu
Expand All @@ -208,34 +208,34 @@ DisableThumbnailCache # EnableThumbnailCache
DisableThumbsDBOnNetwork # EnableThumbsDBOnNetwork

### Application Tweaks ###
DisableOneDrive # EnableOneDrive
UninstallOneDrive # InstallOneDrive
UninstallMsftBloat # InstallMsftBloat
# DisableOneDrive # EnableOneDrive
# UninstallOneDrive # InstallOneDrive
# UninstallMsftBloat # InstallMsftBloat
UninstallThirdPartyBloat # InstallThirdPartyBloat
# UninstallWindowsStore # InstallWindowsStore
DisableXboxFeatures # EnableXboxFeatures
# DisableFullscreenOptims # EnableFullscreenOptims
DisableAdobeFlash # EnableAdobeFlash
DisableFullscreenOptims # EnableFullscreenOptims
# DisableAdobeFlash # EnableAdobeFlash
DisableEdgePreload # EnableEdgePreload
DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
DisableIEFirstRun # EnableIEFirstRun
DisableFirstLogonAnimation # EnableFirstLogonAnimation
DisableMediaSharing # EnableMediaSharing
# DisableMediaSharing # EnableMediaSharing
# DisableMediaOnlineAccess # EnableMediaOnlineAccess
# EnableDeveloperMode # DisableDeveloperMode
EnableDeveloperMode # DisableDeveloperMode
# UninstallMediaPlayer # InstallMediaPlayer
# UninstallInternetExplorer # InstallInternetExplorer
# UninstallWorkFolders # InstallWorkFolders
# UninstallHelloFace # InstallHelloFace
# UninstallMathRecognizer # InstallMathRecognizer
# UninstallPowerShellV2 # InstallPowerShellV2
# UninstallPowerShellISE # InstallPowerShellISE
# InstallLinuxSubsystem # UninstallLinuxSubsystem
# InstallHyperV # UninstallHyperV
InstallLinuxSubsystem # UninstallLinuxSubsystem
InstallHyperV # UninstallHyperV
# UninstallSSHClient # InstallSSHClient
# InstallSSHServer # UninstallSSHServer
# InstallTelnetClient # UninstallTelnetClient
# InstallNET23 # UninstallNET23
InstallSSHServer # UninstallSSHServer
InstallTelnetClient # UninstallTelnetClient
InstallNET23 # UninstallNET23
SetPhotoViewerAssociation # UnsetPhotoViewerAssociation
AddPhotoViewerOpenWith # RemovePhotoViewerOpenWith
# UninstallPDFPrinter # InstallPDFPrinter
Expand All @@ -256,5 +256,5 @@ RemoveFaxPrinter # AddFaxPrinter
# UnpinTaskbarIcons

### Auxiliary Functions ###
WaitForKey
Restart
# WaitForKey
# Restart
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The script supports command line options and parameters which can help you custo

## Advanced usage

powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 [-include filename] [-preset filename] [-log logname] [[!]tweakname]
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -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
Expand All @@ -106,7 +106,7 @@ The tweak names can be prefixed with exclamation mark (`!`) which will instead c

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
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -File Win10.ps1 -include Win10.psm1 EnableFirewall EnableDefender

Or you can create a file where you write the function names (one function name per line, no commas or quotes, whitespaces allowed, comments starting with `#`) and then pass the filename using `-preset` parameter.
Example of a preset file `mypreset.txt`:
Expand All @@ -121,7 +121,7 @@ Example of a preset file `mypreset.txt`:

Command using the preset file above:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include Win10.psm1 -preset mypreset.txt
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -File Win10.ps1 -include Win10.psm1 -preset mypreset.txt

### Includes

Expand All @@ -142,7 +142,7 @@ Function MyTweak2 {

Command using the script above:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include mytweaks.psm1 MyTweak1 MyTweak2
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -File Win10.ps1 -include mytweaks.psm1 MyTweak1 MyTweak2

### Combination

Expand All @@ -156,15 +156,15 @@ Example of a preset file `otherpreset.txt`:

Command using all three examples combined:

powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include Win10.psm1 -include mytweaks.psm1 -preset mypreset.txt -preset otherpreset.txt Restart
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -File Win10.ps1 -include Win10.psm1 -include mytweaks.psm1 -preset mypreset.txt -preset otherpreset.txt Restart

 

### 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
powershell.exe -NoProfile -ExecutionPolicy Unrestricted -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.

Expand Down

0 comments on commit af62d7a

Please sign in to comment.