From af62d7a84083115af0aa07dc068ccdfe5753356c Mon Sep 17 00:00:00 2001 From: Evgeny Istratov Date: Sat, 9 Jan 2021 12:03:02 +0700 Subject: [PATCH] Update default preset and version up --- Default.preset | 154 ++++++++++++++++++++++++------------------------- README.md | 12 ++-- 2 files changed, 83 insertions(+), 83 deletions(-) diff --git a/Default.preset b/Default.preset index d73b0db2..ea7c9a35 100644 --- a/Default.preset +++ b/Default.preset @@ -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 @@ -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 @@ -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 @@ -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 @@ -208,21 +208,21 @@ 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 @@ -230,12 +230,12 @@ DisableMediaSharing # EnableMediaSharing # 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 @@ -256,5 +256,5 @@ RemoveFaxPrinter # AddFaxPrinter # UnpinTaskbarIcons ### Auxiliary Functions ### -WaitForKey -Restart +# WaitForKey +# Restart diff --git a/README.md b/README.md index 5bd1babe..90de7f95 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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`: @@ -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 @@ -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 @@ -156,7 +156,7 @@ 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   @@ -164,7 +164,7 @@ Command using all three examples combined: 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.