diff --git a/NormalizeTextByLength.ps1 b/NormalizeTextByLength.ps1 index f51e6c31..681d38fc 100644 --- a/NormalizeTextByLength.ps1 +++ b/NormalizeTextByLength.ps1 @@ -8,10 +8,7 @@ for ($i = 0; $i -lt $sourceText.Count; $i++) { } -$text = "Turn on Storage Sense to automatically free up space","Run Storage Sense every month","Delete temporary files that apps aren't using","Delete files in recycle bin if they have been there for over 30 days","Never delete files in ""Downloads"" folder","Turn off app suggestions on Start menu","Turn off hibernate","Turn off location for this device","Change environment variable for '$env:TEMP' to '$env:SystemDrive\Temp'","Turn on Win32 long paths","Group svchost.exe processes","Turn on Retpoline patch against Spectre v2","Turn on the display of stop error information on the BSoD","Do not preserve zone information","Turn off Admin Approval Mode for administrators","Turn on access to mapped -drives from app running with elevated permissions with Admin Approval Mode enabled","Set download mode for delivery optization on ""HTTP only""","Always wait for the network at computer startup and logon","Turn off Cortana","Do not allow Windows 10 to manage default printer","Turn off Windows features","Remove Windows capabilities","Uninstall Onedrive","Turn on updates for other Microsoft products","Enable System Restore","Turn off Windows Script Host","Turn off default background apps except","Set power management scheme for desktop and laptop","Turn on .NET 4 runtime for all apps","Turn -on firewall & network protection","Do not allow the computer to turn off the device to save power for desktop","Set the default input method to the English language","Remove printers","Turn on Windows Sandbox","Open shortcut to the Command Prompt from Start menu as Administrator","Use the PrtScn -button to open screen snipping","Create old style shortcut for ""Devices and Printers"" in '$env:APPDATA\Microsoft\Windows\Start Menu\Programs\System Tools'","Set location of the ""Desktop"", ""Documents"" ""Downloads"" ""Music"", ""Pictures"" and ""Videos""","Turn on automatic recommended troubleshooting","Set ""High performance"" in graphics performance preference for apps","Automatically adjust active hours for me based on daily usage","Launch folder in a separate process","Turn on automatic backup the system registry to the '$env:SystemRoot\System32\config\RegBack' folder","Turn off ""The Windows Filtering Platform has blocked a connection"" message","Turn off SmartScreen for apps and files","Turn off F1 Help key","Turn on Num Lock at startup","Turn off sticky Shift key after pressing 5 times" +$text = "Add ""Extract"" to MSI file type context menu","Add ""Run as different user"" from context menu for .exe file type","Add ""Install"" to CAB file type context menu","Remove ""Cast to Device"" from context menu","Remove ""Share"" from context menu","Remove ""Previous Versions"" from file context menu","Remove ""Edit with Paint 3D"" from context menu","Remove ""Include in Library"" from context menu","Remove ""Turn on BitLocker"" from context menu","Remove ""Edit with Photos"" from context menu","Remove ""Create a new video"" from Context Menu","Remove ""Edit"" from Context Menu","Remove ""Print"" from batch and cmd files context menu","Remove ""Compressed (zipped) Folder"" from context menu","Remove ""Rich Text Document"" from context menu","Remove ""Bitmap image"" from context menu","Remove ""Send to"" from folder context menu","Make the ""Open"", ""Print"", ""Edit"" context menu items available, when more than 15 selected","Turn off ""Look for an app in the Microsoft Store"" in ""Open with"" dialog" #region Normalize Text by Length $textLength = New-Object System.Collections.ArrayList($null) diff --git a/ToggleButtonsGenerator.ps1 b/ToggleButtonsGenerator.ps1 index 31acdc55..95884816 100644 --- a/ToggleButtonsGenerator.ps1 +++ b/ToggleButtonsGenerator.ps1 @@ -1,5 +1,5 @@ #region Privacy & Telemetry Normalized Text -$text = "Change Windows Feedback frequency to "Never"", +$textPrivacy = "Change Windows Feedback frequency to "Never"", "Turn off automatic installing suggested apps", "Turn off "Connected User Experiences and Telemetry" service", "Turn off the SQMLogger session at the next computer restart", @@ -62,7 +62,7 @@ $textUi = "Set the Control Panel view by large icons", "Set File Explorer to open to This PC by default" #endregion UI & Personalization Normalized Text -#region System +#region System Normalized Text $textSystem = "Group svchost.exe processes", "Remove Windows capabilities", "Turn on Num Lock at startup", @@ -77,13 +77,13 @@ $textSystem = "Group svchost.exe processes", "Turn on .NET 4 runtime for all apps", "Launch folder in a separate process", "Turn off hibernate", -"Uninstall Onedrive", +"Uninstall OneDrive", "Delete temporary files that apps aren't using", "Turn on automatic recommended troubleshooting", "Delete files in recycle bin if they have been there for over 30 days", "Open shortcut to the Command Prompt from Start menu as Administrator", "Turn off app suggestions on Start menu", -"Turn on firewall & network protection", +"Turn on firewall & network protection", "Remove printers", "Turn on Windows Sandbox", "Turn off sticky Shift key after pressing 5 times", @@ -111,30 +111,94 @@ $textSystem = "Group svchost.exe processes", "Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled", "Set download mode for delivery optization on "HTTP only"", "Turn off Cortana" -#endregion System +#endregion System Normalized Text + +#region Edge Normalized Text +$textEdge = "Do not allow Microsoft Edge to pre-launch at Windows startup, when the system is idle, and each time Microsoft Edge is closed", +"Do not allow Microsoft Edge to start and load the Start and New Tab page at Windows startup and each time Microsoft Edge is closed", +"Turn off Windows Defender SmartScreen for Microsoft Edge" +#endregion Edge Normalized Text + +#region UWP Normalized Text +$textUwp = "Uninstall all UWP apps from all accounts" +#endregion UWP Normalized Text + +#region Windows Game Recording Normalized Text +$text = "Turn off Game Bar", "Turn off Game Mode", "Turn off Game Bar tips", "Turn off Windows Game Recording and Broadcasting" +#endregion Windows Game Recording Normalized Text + +#region Scheduled Tasks Normalized Text +$textTask = "Create scheduled task with the "%TEMP%" folder cleanup in Task Scheduler. The task runs every 62 days", +"Create task to clean out the "%SystemRoot%\SoftwareDistribution\Download" folder in Task Scheduler. The task runs on Thursdays every 4 weeks", +"Create scheduled task with the disk cleanup tool in Task Scheduler. The task runs every 90 days" +#endregion Scheduled Tasks Normalized Text + +#region Microsoft Defender Normalized Text +$textDefender = "Add folder to exclude from Windows Defender Antivirus scan", +"Turn on Controlled folder access and add protected folders", +"Hide notification about disabled Smartscreen for Microsoft Edge", +"Turn on Windows Defender Sandbox", +"Hide notification about sign in with Microsoft in the Windows Security", +"Turn on Windows Defender Exploit Guard Network Protection", +"Turn on Windows Defender PUA Protection" +#endregion Microsoft Defender Normalized Text + +#region Context Menu Normalized Text +$text = "Remove "Edit with Paint 3D" from context menu", +"Remove "Include in Library" from context menu", +"Remove "Create a new video" from Context Menu", +"Remove "Rich Text Document" from context menu", +"Add "Extract" to MSI file type context menu", +"Add "Install" to CAB file type context menu", +"Remove "Edit with Photos" from context menu", +"Remove "Cast to Device" from context menu", +"Remove "Send to" from folder context menu", +"Remove "Print" from batch and cmd files context menu", +"Remove "Compressed (zipped) Folder" from context menu", +"Turn off "Look for an app in the Microsoft Store" in "Open with" dialog", +"Make the "Open", "Print", "Edit" context menu items available, when more than 15 selected", +"Remove "Bitmap image" from context menu", +"Remove "Share" from context menu", +"Add "Run as different user" from context menu for .exe file type", +"Remove "Previous Versions" from file context menu", +"Remove "Edit" from Context Menu", +"Remove "Turn on BitLocker" from context menu" +#endregion Context Menu Normalized Text #region Toggle Buttons Generator if (Test-Path -Path "C:\Tmp\toggleButtons.txt") { Remove-Item -Path "C:\Tmp\toggleButtons.txt" -Force -Confirm:$false } -$toggleSwitchName = "ToggleSwitchPrivacy" +$toggleSwitchName = "ToggleSwitchMenu" #"ToggleSwitchPrivacy" # For Privacy & Telemetry Settings #"ToggleSwitchUi" # For UI & Personalization Settings #"ToggleSwitchSystem" # For System Settings +#"ToggleSwitchEdge" # For Edge Settings +#"ToggleSwitchUwp" # For Uwp Settings +#"ToggleSwitchGame" # For Windows Game Settings +#"ToggleSwitchTasks" # For Scheduled Tasks Settings +#"ToggleSwitchDefender" # For Microsoft Defender Settings +#"ToggleSwitchMenu" # For Context Menu Settings -$textBlockName = "TexBlockPrivacy" +$textBlockName = "TexBlockMenu" #"TexBlockPrivacy" # For Privacy & Telemetry Settings #"TexBlockUi" # For UI & Personalization Settings #"TexBlockSystem" # For System Settings +#"TexBlockEdge" # For Edge Settings +#"TexBlockUwp" # For Uwp Settings +#"TexBlockGame" # For Windows Game Settings +#"TexBlockTasks" # For Scheduled Tasks Settings +#"TexBlockDefender" # For Microsoft Defender Settings +#"TexBlockMenu" # For Context Menu Settings for ($i = 0; $i -lt $text.Length; $i++) { $content = $text[$i].Replace("""", """) @" - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/Win-10-Setup-Script-GUI.ps1 b/Win-10-Setup-Script-GUI.ps1 index fbe32e1c..fc4a1374 100644 --- a/Win-10-Setup-Script-GUI.ps1 +++ b/Win-10-Setup-Script-GUI.ps1 @@ -3,8 +3,7 @@ [xml]$xamlMarkup = @' + BorderBrush="{TemplateBinding BorderBrush}" Background="Transparent"/> + BorderBrush="{StaticResource RadioButton.MouseOver.Border}" Background="Transparent"/> - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -