[
  {
    "path": ".gitattributes",
    "content": "/Testing export-ignore\n/Version export-ignore\n.gitattributes export-ignore\ntodo.md export-ignore\n/.github/ export-ignore\nUpdate.bat export-ignore\n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "content": "---\nname: Bug report\nabout: Create a report to help us improve\n\n---\n\n**Describe the bug**   \nA clear and concise description of what the bug is.   \n\n**To Reproduce**   \nSteps to reproduce the behavior:   \n1. Go to '...'   \n2. Click on '....'   \n3. Scroll down to '....'   \n4. See error   \n\n**Expected behavior**   \nA clear and concise description of what you expected to happen.   \n\n**Screenshots**   \nIf applicable, add screenshots to help explain your problem.   \n\n**Desktop (please complete the following information):**   \n - OS Version: [e.g. Creator's Update]   \n - OS Build: [e.g. Home]   \n - Modded OS: [e.g. No] -If you are using an OS that has removed items using a program like Nlite   \n\n**Additional context**\n - Script Version: [e.g. 3.0.1]   \n - Release Type: [e.g. Stable or Testing]   \n"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "content": "---\nname: Feature request\nabout: Suggest an idea for this project\n\n---\n\n**Is your feature request related to a problem? Please describe.**   \nA clear and concise description of what the problem is.   \n\n**Describe the solution you'd like**   \nA clear and concise description of what you want to happen.   \n\n**Describe alternatives you've considered**   \nA clear and concise description of any alternative solutions or features you've considered.   \n\n**Additional context**   \nAdd any other context or screenshots about the feature request here.   \n"
  },
  {
    "path": "Changelog.txt",
    "content": "-----------------------------------------------------------------------------------\n3.7.2 (07-31-2021)\n\nOption Added Enable/Disable ScreenSaver\nOption Added Enable/Disable LockScreen Password\nOption Added ScreenSaver Wait Time (Configured in script/config file ONLY)\nSome Internal Script Changes (XML part)\n\nSome Internal Script Changes\nFixed Disable/Enable entry mixup for Temeletry (thanks to St1ckys)\nMore items Disable/Enable Feedback does\n\nChanged Box Art when script Runs\nSome Script Improvements\nAdded More things Telemetry Enable/Disable Does in script\nAdded an item for Cortana Enable/Disable in script\nOption Added Enable/Disable F1 Help Key\nOption Added Enable/Disable Accessibility Keys\nOption Added Enable/Disable Update for other Microsoft Products\nHow the GUI's looks has been updated\nLook of the tabs has been updated\nTabs are now on left side instead of top\nChanged Name of 'Metro Apps' to 'Windows Apps'\nFixed bug were Apps were not being Hidden/Unhidden\n\n\n-----------------------------------------------------------------------------------\n3.6.9 (02-25-2019)\n\nAdded ability to see Copyright/License Information from ToS, by inputting L\nAdded Switch:\n  -copy            Shows Copyright/License Information, then exits script\n\nInternal Script Improvements\n'Update.bat' file is no longer used\n\nInternal Script Changes\nUpdate for 'Windows Update P2P' Setting'\nUpdate for 'Disabling App Auto Download'\nUpdate/Fix for 'Start Menu Suggestions'\nChanged how 'Unpinning Startmenu Items' does it's job\nChange for 'Showing Task Manager Details'.. if it takes too long it will skip\n\nFixed a messup that caused script to not run at all\n\nMinor Script Improvement/Changes\n\nFixed an Issue with 'This PC' Folders not showing (when selecting 'Show/Add') the folders in some cases -Solves issue #6\n\nLicense/Copyright Date Update for my script\nAdded ability to Enable/Disable App Hibernation File (Swapfile.sys)\nMinor Script Improvement/Changes\n\nFixed Issue with Metro Apps not displaying 'No Apps being *' messages\n\nCortana Enable/Disable does more changes now\n\n-----------------------------------------------------------------------------------\n3.6.0 (08-21-2018)\n\nFixed an issue with 'Share/Share with' that causes the script to stall (thanks to Cpt0r for letting me know)\n\nReworked some internal script stuff (text display is easyer to read in script)\nFixed bug with app Unhide/Hide/Uninstall were the wrong item \n\n-----------------------------------------------------------------------------------\n3.5.0 (08-07-2018)\n\nShare with Renamed to Share with/Share (it removes the share context too)\n\nInternal Script Changes\nAdded Enable/Disable Long File Path\n\nMore Interal Script Changes (decreased size of script a little)\n\nMore Internal Script Improvements (decreased size of script a little, slight speed improvement)\nFixed Issue with Symbols/Special Characters in filename and/or path\n\nReverted some changes due to some changes being slower rather than faster\nFixed Windows Update P2P type for 1803\n\n-----------------------------------------------------------------------------------\n3.4.0 (06-16-2018)\n\nFixed an issue with enable windows defender on newer than Annivery update didnt work\nFixed an issue that caused an entry for disableingn app auto download to not set\nFixed an issue that caused an entry for Removing AutoLogger file to not set\n\nFixed bug with enable/disable start suggestions\n\nFixed some typos\nChanged how \"Update Available Popup\" sets ownership\nAdded Enable/Disable \"Various Scheduled Tasks\" -Option Not in GUI\n^^But can be done by editing script or setting file.. Since it may cause problems\n\nAdded 2 apps to list 'Microsoft.GetHelp' and 'Microsoft.Wallet'\nAdded Option to Enable/Disable \"Re-Opening of apps on boot\" (Windows Enabled by default)\nAdded Account Protection Warning (Warns if not on a Microsoft account)\nChanged Look of Gui a little (added Help button)\nAdded a wait for each app section to finish before continuing\n\nBug fix for remove 'This PC' items not showing that you are removing them\nChanged Unpin start menu items.. from unpinning Some to All items\nMetro App Unhide/Hide/Uninstall now are the first items to be set instead of last\nInternal Script changes\n\nBug fix for Hiding/Removing '3d Objects' in 'This PC' for April 2018 Update\nBug fix for Showing 'This PC', now should Re-Add removed items\n\nRenamed 'Application' to 'Application/Feature'\nAdded 'Fax And Scan' to Uninstall/Install to 'Application/Feature' list\nFixed a problem with Onedrive uninstall\nAdded 'Window's Timeline' to Enable/Disable to 'Explorer' List\n\nScript will now Wait for Appx Tasks to finish before script closes/restarts computer\n^to make sure appx task isnt inturrupted while doing it's job\n\n-----------------------------------------------------------------------------------\n3.3.0 (12-29-2017)\n\nEnabled Window Resize\n(best to resize so the yellow on bottom and right size are not visable)\n^ Yellow block shows \"Dont Resize past this area\"\n\nBug fix with Enabling \"Previous Versions Context\"\nBug fix with Showing/Hding Tray Icons\n\nBug fix with Checkboxes on Script Option not working properly\n^Create Restore Point, Skip Items, Restart when Done, Update Check, Update Bat, Internet Check\n\nBug fix with Enabling Aero Snap\n\nAdded Remove option for 'This PC' items\nImproved Advertising ID (Enable/Disable)\nImproved Windows Defender (Enable/Disable)\nImproved Start Suggestions (Enable/Disable)\n\nAdded Multi Xbox Apps (No seperate option for each apps)\n\nFixed issue with \"Task Manager Details\" (thanks to dhoffman98)\n\nImproved how resize works/shows (size of gui items wont change still)\nRemoved the yellow \"Dont Resize past this area\" boxes\n\nAdded switch \"-h\" to show a list of switches\n\nChanged some internal script stuff\nAdded option to disable the \"Update is Available popup\" under Application/Windows Update tab\n\nAdded More stuff for disableing Wifi sense\n\n-----------------------------------------------------------------------------------\n3.2.0 (11-02-2017)\n\nAdded Missing Items (MSRT Update, Driver Update, Restarte on Update)\n\nFixed a typo that caused switch/arguments to not work and loading of settings\n\nChanged indent from spaces to tabs to decrease file size about 9 KB\n\nAdded Registry entry for Auto Logger File\nFixed a Typo\nMinor changes in script\n\nAdded Color to Donate, Website and Copyright button\n\nAdded Items for Fall Creator's Update\n\n-----------------------------------------------------------------------------------\n3.1.0 (08-26-2017)\n\nAdded List for what is Unpined for the Unpined Item\n\nRenamed the Install in Metro to Unhide (you cant install metro apps w/o the appx file)\nFixed a typo\nAdded check for windows 10\n\nFixed Bug with script downloading Newer version of script\nScript has option updates bat file with new script name if update is downloaded using script\n\nUpdates will use Update.bat if avaiable (will overwrite script file instead of creating new file)\n\n-----------------------------------------------------------------------------------\n3.0.0-GUI (08-16-2017)\n\nChanged Text Menu to Gui Menu\nAdded Minor Version\nVarious Improvements\n\n-----------------------------------------------------------------------------------\n2.2-Menu (05-28-2017)\n\nOLD SETTING FILES WILL NOT WORK\n\nChanged/added different arguments/switches\n   -run                       Runs script with setting in script\n   -run Settingfile           Runs script with Settingfile\n   -run WinDefault            Runs script with Win Default\n   -load Settingfile          Loads Settingfile (Does not run)\n   -load WinDefault           Loads Win Default (Does not run)\n   -sic                       Skip Internet Check\n   -usc                       Check for update\n   -atos                      Accepts ToS\n   -auto                      Closes on Errors, End of Script (Implies -atos)\n   -crp                       Creates a Restore Point\n   -dnr                       Do not restart when done\n\nNote: Settingfile = name of your setting file\nNote: Old arguments/switches will not work\n\nChange Window content while dragging items from enable/disable to show/hide\nFixed a bug with windows update not setting if path was not there\nFixed problem with remove cast to device context item\nChanged how script does detection for metro apps\nFixed bug with unpin not being corrently set to unpin\n\nChanged format for setting save/load (smaller files and more readable)\nAbility to add custom apps to hide/uninstall in setting file\n\n-----------------------------------------------------------------------------------\n2.1-Menu (05-13-2017)\n\nAdded check for (Bellow) before script attempts to Install/Uninstall\nWindows Media Player\nWork Folders Client\nLinux Subsystem\nOnedrive (checks for OneDriveSetup.exe)\n\nMinor changes in script\nFixed bug with enabling Windows Defender\nFixed bug with smart screen and Wap push not disableing\nFixed bug with metro apps\nChanged how Firewall is Enabled/Disabled\nAdded Ability to Show/Hide Task Manager details\nFixed Load setting bug (Thanks to Scott C)\n\n-----------------------------------------------------------------------------------\n2.0-Menu (04-22-2017)\n\nInternal Script Changes\nFixed \"Users File Icon on Desktop\" showing as \"Recycle Bin Icon on Desktop\"\nFixed \"Removeing Recent Files in Quick Access\" set incorrectly\nFixed \"Disabling Cast to Device Context\" set incorrectly\nChange Powershell to Command Prompt (in Win+X)\nChanged the Internet check to ping github instead of google.com & yahoo.com\n\n-----------------------------------------------------------------------------------\n1.9-Menu (04-08-2017)\n\nAdded some updates to settings for creator's update\nChanged TOS Display look\nAdded Internet Check if script checks for update\nVarious display changes\nAbility to name restore point (in script file only ATM)\n\nAdded Ability to add/remove following apps\n3D Viewer\n\nRemoved Ability to add/remove following apps\nAsphalt 8\nBing Finance\nBing News\nBing Sports\nBing Translator\nCandy Cursh\nFacebook\nFarm Ville\nFresh Paint\nHouzza\nMicrosoft Jackpot\nMicrosoft Jigsaw\nMicrosoft Mahjong\nMicrosoft Sudoku\nMinecraft\nStudios Wordament\nTaptiles\nTwitter\n\n-----------------------------------------------------------------------------------\n1.8-Menu (03-19-2017)\n\nAdded Script update check option\n\nDecided to remove Black Viper Service configuration from this script..\nPlease use the script for just the Black Viper Service configuration @\nhttps://github.com/madbomb122/BlackViperScript\n\n-----------------------------------------------------------------------------------\n1.7-Menu (03-17-2017)\n\nFixed bug with using the bat file to run with setting file\nFixed bug with add/remove pin to \"quick access\"\nRemoved Custom App Import in setting file (was causeing the apps to not Install/Hide/Uninstall)\n\n-----------------------------------------------------------------------------------\n1.6-Menu (03-14-2017)\n\nDisabled Black Viper Service configuration\n\n-----------------------------------------------------------------------------------\n1.5-Menu (03-12-2017)\n\nAdded option to show/hide when an item is skipped\nAdded a check if running in Powershell or Powershell ISE (ISE is not supported)\nRenamed 'Pin To' to 'Pin To Start'\nAdded Ability to Add/Remove 'Pin To Quick Access'\nFixed some Items not displaying\n\nAdded Ability to Show/Hide following icons to desktop:\nNetwork\nRecycle Bin\nUser's Files \nControl Panel\n\n-----------------------------------------------------------------------------------\n1.4-Menu (03-04-2017)\n\nAdded Black Viper's service settings (Win 10 Home/Pro ONLY)\nRemoved Lock Screen alt (script check run the correct lockscreen work around)\nAdded a display of skipped items\n\n-----------------------------------------------------------------------------------\n1.3-Menu (02-27-2017)\n\nLoad/save setting fix\n\n-----------------------------------------------------------------------------------\n1.2-Menu (02-20-2017)\n\nMetro Apps setting changeable in the menu\n\n-----------------------------------------------------------------------------------\n1.1-Menu (02-19-2017)\n\nFixed 2 Bugs:\nIf tos was set to accept in script it did not skip the tos\nfixed a messup with the add/remove/uninstall apps if you set it in script or file\n\nWorking on making apps setting changeable in the menu\n\n-----------------------------------------------------------------------------------\n1.0-Menu (02-17-2017) -START VERSION OF NEW SCRIPT\nDone With adding a Menu\n\nCant Change the Apps to Install/Hide/Uninstall from within script menu..\n  But you can from in the script file (or a loaded file).\n\nNote1: Settings file for Older script (3.5-mod and bellow) will NOT work\nNote2: 3.5-mod is the LAST of the old script\n\n-----------------------------------------------------------------------------------\n3.5-Mod (02-09-2017) -LAST VERSION OF OLD SCRIPT\n\nRe-ordered some items\nAdded Write output when at Each different category\nAdded Color for Some outputs\nAbility to Disable Output\nAbility to Disable Color of output\n\nrenamed 4 items\nAPP_SolitaireCollection to APP_SolitaireCollect\nAPP_WindowsFeedback     to APP_WindowsFeedbak\nAPP_WindowsFeedbackHub  to APP_WindowsFeedbakHub\nAPP_MicrosoftOfficeHub  to APP_MicrosoftOffHub\n\n-----------------------------------------------------------------------------------\n3.4-Mod (02-03-2017)\n\nAdded 1 New Setting Items:\n  Windows Update Check Type\n\nAlso a few minor bug fixes\n\n-----------------------------------------------------------------------------------\n3.3-Mod (02-02-2017)\n\nAdded Description to some items\nAbility to Create Restore Point Before running Script\n\nAdded 12 New Setting Items:\n  Recent Files in Quick Access\n  Frequent Folders in Quick Access\n  Most Used App in Start Menu\n  Power Menu on Lock Screen\n  Hibernate Power Option\n  Sleep Power Option\n  Window Content While Dragging\n  Check For Windows Update\n  Taskbar On Multi Display\n  Taskbar Buttons On Multi Display\n  Remote UAC Local Account Token Filter\n\n-----------------------------------------------------------------------------------\n3.2-Mod (02-01-2017)\n\nAdded Description to some items\nAbility to run Pre-defined setting (currently only -Set Set1)\n\nAdded 4 New Setting Items:\n  Cortana Search (Can still search with cortana disabled)\n  Classic Clock UI (for the taskbar flyout)\n  Classic Battery UI (for the taskbar flyout)\n  Recent Items and Frequent Places (in start menu)\n\nAdded More Colors for Tiles (But disabled till i figure problem out)\n\nRenamed 2 Items:\nAeroResize to AeroSnap (Proper name of function)\nCameraOnLoc to CameraOnLockScreen (Gives better description of item)\n\n-----------------------------------------------------------------------------------\n3.1-Mod (1-29-2017)\n\nAbility to add Apps to Install, Hide or Uninstall, that the script doesnt list\n   ^This can ONLY be done in the script itself ATM\n\n-----------------------------------------------------------------------------------\n3.0-Mod (01-28-2017)\n\nGreatly Improved the ability to import app list from setting file\nAlso changed it so you can Install, Hide or Uninstall for each app (instead of the whole thing)\nChanged the Initial Text that show when you start script\nRemoved 3 Apps (since they cant be hidden or removed)\nFixed a few errors for Photo Viewer Settings\n\n-----------------------------------------------------------------------------------\n2.3-Mod (01-27-2017)\n\nFixed a bug with imported settings from a file\nAdded ability to import app list from setting file\nAdded Facebook to applist\n\n-----------------------------------------------------------------------------------\n2.2-Mod (01-26-2017)\n\nAdded ability to run imported settings from a file\nAdded ability to run windows default settings w/o editing file\nAdded a note when you run script and a way to skip it\n\n-----------------------------------------------------------------------------------\n2.1-Mod (01-25-2017)\n\nChange script so it does nothing by default\nAdded item to have it run the windows default items\n\nAdded 1 New Setting Items:\n  seconds for the clock on the taskbar\n\n-----------------------------------------------------------------------------------\n2.0-Mod (01-25-2017) -- (Started doing my changes)\n\nMade Script easier to pick what you want to run\nScript by default returned items to the default of windows (that the script is set to change)\n\nAdded 6 New Setting for Context Menu: (add/remove)\n  Cast To Device\n  Previous Versions\n  Include in Library\n  Pin To\n  Share With\n  Send To\n\nAdded 5 New Settings:\n  Volume Control Bar to classic/new\n  Pid In Title Bar\n  Aero Resize\n  Aero Shake\n  App Auto Download\n\nAdded options for a few of the items that had more than once choice\nAdded ability to Remove the bloatware instead of just hiding it\n\n-----------------------------------------------------------------------------------\n2.0 (01-08-2017)\n\nv2.0 Script by Disassembler0\nhttps://github.com/Disassembler0/Win10-Initial-Setup-Script/\n"
  },
  {
    "path": "LICENSE",
    "content": "The MIT License (MIT)\n\nCopyright (c) 2017 Disassembler <disassembler@dasm.cz> -Original Win10 Initial Setup Script\nCopyright (c) 2017-2021 Madbomb122 -Modded Win10 Initial Setup Script\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "To Download go to -> [Win 10 Script -Release](https://github.com/madbomb122/Win10Script/releases)\n\n**Current Version**\n**Script:** `3.7.2` (July 31, 2021)\n\n\n## Contents\n - [Description](#description)\n - [Requirements](#requirements)\n - [How to Use](#how-to-use)\n - [Usage](#usage)\n - [Advanced Usage](#advanced-usage)\n - [FAQ](#faq)\n\n\n## Description\nThis is a PowerShell script for automation of routine tasks/setting on Windows 10. \nThis is by no means a complete set of settings. (There is ALOT that can be changed/done)\n\nThe original basic script created by https://github.com/Disassembler0/Win10-Initial-Setup-Script/  \n^ We have some of the same setting and a few different stuff too\n\nThis script is a Highly Modded version of the 2.0 script by Disaseembler0.\nThe script has added items with an easy way to change settings and options using a GUI.\n\nPS. Don't forget to check out my other Repo https://github.com/madbomb122/BlackViperScript \n\n\n## Requirements\n**OS:** `Windows 10`  \n**Needed Files:** `Win10-Menu.ps1` (Script File)  \n**Recommended Files:** `_Win10-Script-Run.bat` \n\n\n## How to Use\nDownload/Save the following files  \nScript File: [Win10-Menu.ps1](https://github.com/madbomb122/Win10Script/raw/master/Win10-Menu.ps1) (Script) -Size about `204.0 KB` -Need  \nBat File: [_Win10-Script-Run.bat](https://github.com/madbomb122/Win10Script/raw/master/_Win10-Script-Run.bat) -Size about `2.29 KB` -Recommended  \n  **Note 1: DO NOT RENAME THE FILES**  \n  **Note 2: HAVE THE FILES IN THE SAME DIRECTORY**  \nNext follow the **Basic Usage** or **Advanced Usage**  \n\n**You can do a `save as` on the filenames above to save them to you computer, you cannot do a `save as` on github's file list**  \n\n\n## Usage\nRun the Script by bat file `_Win10-Script-Run.bat` (Recommended)  \nor  \n`powershell.exe -NoProfile -ExecutionPolicy Bypass -File c:/Win10-Menu.ps1`   \n*For the above, Please note you need change the c:/ to the fullpath of your file*  \nUse the Menu  \nSet what you want  \nSelect option to run script  \n\n\n### Advanced usage\nUse one of the following Methods you can \n1. Run script with one (or more) of the switches below\n2. Edit the script (bottom of file) to change the values\n3. Edit the bat file (top of file) to change the values to add the switch\n\n|   Switch  | Description                                                         | Notes                            |\n| :-------- | :-------------------------------------------------------------------| :------------------------------- |\n| -atos     | Accepts the ToS                                                     |                                  |\n| -auto     | Runs the script to be Automated.. Closes on Errors, End of Script)  | Implies `-atos`                  |\n| -run      | Runs script with setting in script                                  |                                  |\n| -run Settingfile    | Runs script with Settingfile                              | May Imply `-atos` (If file was saved from script) |\n| -run WinDefault     | Runs script with Win Default                              |                                  |\n| -load Settingfile   | Loads Settingfile (Does not run)                          |                                  |\n| -load WinDefault    | Loads Win Default (Does not run)                          |                                  |\n| -sic      | Skips Internet Check (If checking for update)                       | Tests by pinging github.com      |\n| -usc      | Checks for Update to Script file before running                     | Auto downloads and runs if found |\n| -crp      | Creates a Restore Point                                             |                                  |\n| -dnr      | Do not restart when done                                            |                                  |\n| -help     | Lists of all the switches                                           | Alt `-h`                         |\n\nExamples:  \n`powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10-Menu.ps1 -auto -run mine.csv`  \n`powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10-Menu.ps1 -atos -load WinDefault`\n\n******\n## FAQ\n**Q:** The script file looks all messy in notepad, How do i view it?  \n**A:** Try using wordpad or what I recommend, Notepad++ [https://notepad-plus-plus.org/](https://notepad-plus-plus.org/) \n\n**Q:** Do you accept any donations?  \n**A:** If you would like to donate to me Please pick an item/giftcard from my amazon wishlist or Contact me about donating, Thanks. BTW The giftcard amount can be changed to a min of $1.  \n**Wishlist:** [https://www.amazon.com/gp/registry/wishlist/YBAYWBJES5DE/](https://www.amazon.com/gp/registry/wishlist/YBAYWBJES5DE/)\n\n**Q:** How can I contact you?  \n**A:** You can also PM me on reddit or email me  \n         1. reddit /u/madbomb122 [https://www.reddit.com/user/madbomb122](https://www.reddit.com/user/madbomb122)  \n         2. You can email me @ madbomb122@gmail.com.  \n**Note** Before contacting me, please make sure you have ALL the needed files and the size is right (Look above under requirements). \n\n**Q:** Can you add *BLAH* to the apps list?  \n**A:** Mabye, post [here](https://github.com/madbomb122/Win10Script/issues/8) and follow the instructions, and I may add it. \n\n\n**Q:** The script window closes or gives an error saying script is blocked, what do I do?  \n**A:** By default windows blocks ps1 scripts, you can use one of the following  \n         1. Use the bat file to run the script (recommended)  \n         2. On an admin powershell console `Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted`\n\n**Q:** Can I run the script safely?  \n**A:** Yes and No, it depends on what you do, some items may cause problems and some items will not cause any issues.\n\n**Q:** Can I run the script repeatedly?  \n**A:** Yes, with same or different settings.\n\n**Q:** Did you test the script?  \n**A:** Yes, but doesnt mean there isnt any bugs/errors.\n\n**Q:** I've run the script and it did *BLAH*, can I undo it?  \n**A:** There are 2 possible ways...  \n         1. Yes, Most things can easily be undone by going in the script and run it again with the deisred change.  \n         2. System Restore can undo some of the changes, if you created a restore point (can be done from script)\n\n**Q:** The script messed up my computer.  \n**A:** The script is 'as is', any problems you have/had is not my problem.\n\n**Q:** Can I use the script or modify it for my/my company's needs?  \n**A:** Sure. Just don't forget to include copyright notice as per the license requirements, and leave any Copyright in script too.\n\n**Q:** Can I add an App to Install/Hide/Uninstall, if so how?  \n**A:** Yes you can. You can add it in the script file under APPS_AppsInstall, APPS_AppsHide, APPS_AppsUninstall.\n---------Please note you have to have the proper format and packagename for it to work.\n\n**Q:** Can you add *BLAH* to the script?  \n**A:** Mabye, Depends on what it is and how hard it would be to add. \n\n**Q:** How do I request adding *BLAH* to the script?  \n**A:** Just post it as an Issue.\n\n**Q:** Are you planning to add *BLAH* to the script?  \n**A:** Check the todo list, anything i am planning to do or thinking of doing will be there.\n\n**Q:** How long are you going to maintain the script?  \n**A:** No Clue.\n"
  },
  {
    "path": "Testing/Changelog.txt",
    "content": "-----------------------------------------------------------------------------------\n3.7.2 (07-31-2021)\n\nOption Added Enable/Disable ScreenSaver\nOption Added Enable/Disable LockScreen Password\nOption Added ScreenSaver Wait Time (Configured in script/config file ONLY)\nSome Internal Script Changes (XML part)\n\nSome Internal Script Changes\nFixed Disable/Enable entry mixup for Temeletry (thanks to St1ckys)\nMore items Disable/Enable Feedback does\n\nChanged Box Art when script Runs\nSome Script Improvements\nAdded More things Telemetry Enable/Disable Does in script\nAdded an item for Cortana Enable/Disable in script\nOption Added Enable/Disable F1 Help Key\nOption Added Enable/Disable Accessibility Keys\nOption Added Enable/Disable Update for other Microsoft Products\nHow the GUI's looks has been updated\nLook of the tabs has been updated\nTabs are now on left side instead of top\nChanged Name of 'Metro Apps' to 'Windows Apps'\nFixed bug were Apps were not being Hidden/Unhidden\n\n\n-----------------------------------------------------------------------------------\n3.6.9 (02-25-2019)\n\nAdded ability to see Copyright/License Information from ToS, by inputting L\nAdded Switch:\n  -copy            Shows Copyright/License Information, then exits script\n\nInternal Script Improvements\n'Update.bat' file is no longer used\n\nInternal Script Changes\nUpdate for 'Windows Update P2P' Setting'\nUpdate for 'Disabling App Auto Download'\nUpdate/Fix for 'Start Menu Suggestions'\nChanged how 'Unpinning Startmenu Items' does it's job\nChange for 'Showing Task Manager Details'.. if it takes too long it will skip\n\nFixed a messup that caused script to not run at all\n\nMinor Script Improvement/Changes\n\nFixed an Issue with 'This PC' Folders not showing (when selecting 'Show/Add') the folders in some cases -Solves issue #6\n\nLicense/Copyright Date Update for my script\nAdded ability to Enable/Disable App Hibernation File (Swapfile.sys)\nMinor Script Improvement/Changes\n\nFixed Issue with Metro Apps not displaying 'No Apps being *' messages\n\nCortana Enable/Disable does more changes now\n\n-----------------------------------------------------------------------------------\n3.6.0 (08-21-2018)\n\nFixed an issue with 'Share/Share with' that causes the script to stall (thanks to Cpt0r for letting me know)\n\nReworked some internal script stuff (text display is easyer to read in script)\nFixed bug with app Unhide/Hide/Uninstall were the wrong item \n\n-----------------------------------------------------------------------------------\n3.5.0 (08-07-2018)\n\nShare with Renamed to Share with/Share (it removes the share context too)\n\nInternal Script Changes\nAdded Enable/Disable Long File Path\n\nMore Interal Script Changes (decreased size of script a little)\n\nMore Internal Script Improvements (decreased size of script a little, slight speed improvement)\nFixed Issue with Symbols/Special Characters in filename and/or path\n\nReverted some changes due to some changes being slower rather than faster\nFixed Windows Update P2P type for 1803\n\n-----------------------------------------------------------------------------------\n3.4.0 (06-16-2018)\n\nFixed an issue with enable windows defender on newer than Annivery update didnt work\nFixed an issue that caused an entry for disableingn app auto download to not set\nFixed an issue that caused an entry for Removing AutoLogger file to not set\n\nFixed bug with enable/disable start suggestions\n\nFixed some typos\nChanged how \"Update Available Popup\" sets ownership\nAdded Enable/Disable \"Various Scheduled Tasks\" -Option Not in GUI\n^^But can be done by editing script or setting file.. Since it may cause problems\n\nAdded 2 apps to list 'Microsoft.GetHelp' and 'Microsoft.Wallet'\nAdded Option to Enable/Disable \"Re-Opening of apps on boot\" (Windows Enabled by default)\nAdded Account Protection Warning (Warns if not on a Microsoft account)\nChanged Look of Gui a little (added Help button)\nAdded a wait for each app section to finish before continuing\n\nBug fix for remove 'This PC' items not showing that you are removing them\nChanged Unpin start menu items.. from unpinning Some to All items\nMetro App Unhide/Hide/Uninstall now are the first items to be set instead of last\nInternal Script changes\n\nBug fix for Hiding/Removing '3d Objects' in 'This PC' for April 2018 Update\nBug fix for Showing 'This PC', now should Re-Add removed items\n\nRenamed 'Application' to 'Application/Feature'\nAdded 'Fax And Scan' to Uninstall/Install to 'Application/Feature' list\nFixed a problem with Onedrive uninstall\nAdded 'Window's Timeline' to Enable/Disable to 'Explorer' List\n\nScript will now Wait for Appx Tasks to finish before script closes/restarts computer\n^to make sure appx task isnt inturrupted while doing it's job\n\n-----------------------------------------------------------------------------------\n3.3.0 (12-29-2017)\n\nEnabled Window Resize\n(best to resize so the yellow on bottom and right size are not visable)\n^ Yellow block shows \"Dont Resize past this area\"\n\nBug fix with Enabling \"Previous Versions Context\"\nBug fix with Showing/Hding Tray Icons\n\nBug fix with Checkboxes on Script Option not working properly\n^Create Restore Point, Skip Items, Restart when Done, Update Check, Update Bat, Internet Check\n\nBug fix with Enabling Aero Snap\n\nAdded Remove option for 'This PC' items\nImproved Advertising ID (Enable/Disable)\nImproved Windows Defender (Enable/Disable)\nImproved Start Suggestions (Enable/Disable)\n\nAdded Multi Xbox Apps (No seperate option for each apps)\n\nFixed issue with \"Task Manager Details\" (thanks to dhoffman98)\n\nImproved how resize works/shows (size of gui items wont change still)\nRemoved the yellow \"Dont Resize past this area\" boxes\n\nAdded switch \"-h\" to show a list of switches\n\nChanged some internal script stuff\nAdded option to disable the \"Update is Available popup\" under Application/Windows Update tab\n\nAdded More stuff for disableing Wifi sense\n\n-----------------------------------------------------------------------------------\n3.2.0 (11-02-2017)\n\nAdded Missing Items (MSRT Update, Driver Update, Restarte on Update)\n\nFixed a typo that caused switch/arguments to not work and loading of settings\n\nChanged indent from spaces to tabs to decrease file size about 9 KB\n\nAdded Registry entry for Auto Logger File\nFixed a Typo\nMinor changes in script\n\nAdded Color to Donate, Website and Copyright button\n\nAdded Items for Fall Creator's Update\n\n-----------------------------------------------------------------------------------\n3.1.0 (08-26-2017)\n\nAdded List for what is Unpined for the Unpined Item\n\nRenamed the Install in Metro to Unhide (you cant install metro apps w/o the appx file)\nFixed a typo\nAdded check for windows 10\n\nFixed Bug with script downloading Newer version of script\nScript has option updates bat file with new script name if update is downloaded using script\n\nUpdates will use Update.bat if avaiable (will overwrite script file instead of creating new file)\n\n-----------------------------------------------------------------------------------\n3.0.0-GUI (08-16-2017)\n\nChanged Text Menu to Gui Menu\nAdded Minor Version\nVarious Improvements\n\n-----------------------------------------------------------------------------------\n2.2-Menu (05-28-2017)\n\nOLD SETTING FILES WILL NOT WORK\n\nChanged/added different arguments/switches\n   -run                       Runs script with setting in script\n   -run Settingfile           Runs script with Settingfile\n   -run WinDefault            Runs script with Win Default\n   -load Settingfile          Loads Settingfile (Does not run)\n   -load WinDefault           Loads Win Default (Does not run)\n   -sic                       Skip Internet Check\n   -usc                       Check for update\n   -atos                      Accepts ToS\n   -auto                      Closes on Errors, End of Script (Implies -atos)\n   -crp                       Creates a Restore Point\n   -dnr                       Do not restart when done\n\nNote: Settingfile = name of your setting file\nNote: Old arguments/switches will not work\n\nChange Window content while dragging items from enable/disable to show/hide\nFixed a bug with windows update not setting if path was not there\nFixed problem with remove cast to device context item\nChanged how script does detection for metro apps\nFixed bug with unpin not being corrently set to unpin\n\nChanged format for setting save/load (smaller files and more readable)\nAbility to add custom apps to hide/uninstall in setting file\n\n-----------------------------------------------------------------------------------\n2.1-Menu (05-13-2017)\n\nAdded check for (Bellow) before script attempts to Install/Uninstall\nWindows Media Player\nWork Folders Client\nLinux Subsystem\nOnedrive (checks for OneDriveSetup.exe)\n\nMinor changes in script\nFixed bug with enabling Windows Defender\nFixed bug with smart screen and Wap push not disableing\nFixed bug with metro apps\nChanged how Firewall is Enabled/Disabled\nAdded Ability to Show/Hide Task Manager details\nFixed Load setting bug (Thanks to Scott C)\n\n-----------------------------------------------------------------------------------\n2.0-Menu (04-22-2017)\n\nInternal Script Changes\nFixed \"Users File Icon on Desktop\" showing as \"Recycle Bin Icon on Desktop\"\nFixed \"Removeing Recent Files in Quick Access\" set incorrectly\nFixed \"Disabling Cast to Device Context\" set incorrectly\nChange Powershell to Command Prompt (in Win+X)\nChanged the Internet check to ping github instead of google.com & yahoo.com\n\n-----------------------------------------------------------------------------------\n1.9-Menu (04-08-2017)\n\nAdded some updates to settings for creator's update\nChanged TOS Display look\nAdded Internet Check if script checks for update\nVarious display changes\nAbility to name restore point (in script file only ATM)\n\nAdded Ability to add/remove following apps\n3D Viewer\n\nRemoved Ability to add/remove following apps\nAsphalt 8\nBing Finance\nBing News\nBing Sports\nBing Translator\nCandy Cursh\nFacebook\nFarm Ville\nFresh Paint\nHouzza\nMicrosoft Jackpot\nMicrosoft Jigsaw\nMicrosoft Mahjong\nMicrosoft Sudoku\nMinecraft\nStudios Wordament\nTaptiles\nTwitter\n\n-----------------------------------------------------------------------------------\n1.8-Menu (03-19-2017)\n\nAdded Script update check option\n\nDecided to remove Black Viper Service configuration from this script..\nPlease use the script for just the Black Viper Service configuration @\nhttps://github.com/madbomb122/BlackViperScript\n\n-----------------------------------------------------------------------------------\n1.7-Menu (03-17-2017)\n\nFixed bug with using the bat file to run with setting file\nFixed bug with add/remove pin to \"quick access\"\nRemoved Custom App Import in setting file (was causeing the apps to not Install/Hide/Uninstall)\n\n-----------------------------------------------------------------------------------\n1.6-Menu (03-14-2017)\n\nDisabled Black Viper Service configuration\n\n-----------------------------------------------------------------------------------\n1.5-Menu (03-12-2017)\n\nAdded option to show/hide when an item is skipped\nAdded a check if running in Powershell or Powershell ISE (ISE is not supported)\nRenamed 'Pin To' to 'Pin To Start'\nAdded Ability to Add/Remove 'Pin To Quick Access'\nFixed some Items not displaying\n\nAdded Ability to Show/Hide following icons to desktop:\nNetwork\nRecycle Bin\nUser's Files \nControl Panel\n\n-----------------------------------------------------------------------------------\n1.4-Menu (03-04-2017)\n\nAdded Black Viper's service settings (Win 10 Home/Pro ONLY)\nRemoved Lock Screen alt (script check run the correct lockscreen work around)\nAdded a display of skipped items\n\n-----------------------------------------------------------------------------------\n1.3-Menu (02-27-2017)\n\nLoad/save setting fix\n\n-----------------------------------------------------------------------------------\n1.2-Menu (02-20-2017)\n\nMetro Apps setting changeable in the menu\n\n-----------------------------------------------------------------------------------\n1.1-Menu (02-19-2017)\n\nFixed 2 Bugs:\nIf tos was set to accept in script it did not skip the tos\nfixed a messup with the add/remove/uninstall apps if you set it in script or file\n\nWorking on making apps setting changeable in the menu\n\n-----------------------------------------------------------------------------------\n1.0-Menu (02-17-2017) -START VERSION OF NEW SCRIPT\nDone With adding a Menu\n\nCant Change the Apps to Install/Hide/Uninstall from within script menu..\n  But you can from in the script file (or a loaded file).\n\nNote1: Settings file for Older script (3.5-mod and bellow) will NOT work\nNote2: 3.5-mod is the LAST of the old script\n\n-----------------------------------------------------------------------------------\n3.5-Mod (02-09-2017) -LAST VERSION OF OLD SCRIPT\n\nRe-ordered some items\nAdded Write output when at Each different category\nAdded Color for Some outputs\nAbility to Disable Output\nAbility to Disable Color of output\n\nrenamed 4 items\nAPP_SolitaireCollection to APP_SolitaireCollect\nAPP_WindowsFeedback     to APP_WindowsFeedbak\nAPP_WindowsFeedbackHub  to APP_WindowsFeedbakHub\nAPP_MicrosoftOfficeHub  to APP_MicrosoftOffHub\n\n-----------------------------------------------------------------------------------\n3.4-Mod (02-03-2017)\n\nAdded 1 New Setting Items:\n  Windows Update Check Type\n\nAlso a few minor bug fixes\n\n-----------------------------------------------------------------------------------\n3.3-Mod (02-02-2017)\n\nAdded Description to some items\nAbility to Create Restore Point Before running Script\n\nAdded 12 New Setting Items:\n  Recent Files in Quick Access\n  Frequent Folders in Quick Access\n  Most Used App in Start Menu\n  Power Menu on Lock Screen\n  Hibernate Power Option\n  Sleep Power Option\n  Window Content While Dragging\n  Check For Windows Update\n  Taskbar On Multi Display\n  Taskbar Buttons On Multi Display\n  Remote UAC Local Account Token Filter\n\n-----------------------------------------------------------------------------------\n3.2-Mod (02-01-2017)\n\nAdded Description to some items\nAbility to run Pre-defined setting (currently only -Set Set1)\n\nAdded 4 New Setting Items:\n  Cortana Search (Can still search with cortana disabled)\n  Classic Clock UI (for the taskbar flyout)\n  Classic Battery UI (for the taskbar flyout)\n  Recent Items and Frequent Places (in start menu)\n\nAdded More Colors for Tiles (But disabled till i figure problem out)\n\nRenamed 2 Items:\nAeroResize to AeroSnap (Proper name of function)\nCameraOnLoc to CameraOnLockScreen (Gives better description of item)\n\n-----------------------------------------------------------------------------------\n3.1-Mod (1-29-2017)\n\nAbility to add Apps to Install, Hide or Uninstall, that the script doesnt list\n   ^This can ONLY be done in the script itself ATM\n\n-----------------------------------------------------------------------------------\n3.0-Mod (01-28-2017)\n\nGreatly Improved the ability to import app list from setting file\nAlso changed it so you can Install, Hide or Uninstall for each app (instead of the whole thing)\nChanged the Initial Text that show when you start script\nRemoved 3 Apps (since they cant be hidden or removed)\nFixed a few errors for Photo Viewer Settings\n\n-----------------------------------------------------------------------------------\n2.3-Mod (01-27-2017)\n\nFixed a bug with imported settings from a file\nAdded ability to import app list from setting file\nAdded Facebook to applist\n\n-----------------------------------------------------------------------------------\n2.2-Mod (01-26-2017)\n\nAdded ability to run imported settings from a file\nAdded ability to run windows default settings w/o editing file\nAdded a note when you run script and a way to skip it\n\n-----------------------------------------------------------------------------------\n2.1-Mod (01-25-2017)\n\nChange script so it does nothing by default\nAdded item to have it run the windows default items\n\nAdded 1 New Setting Items:\n  seconds for the clock on the taskbar\n\n-----------------------------------------------------------------------------------\n2.0-Mod (01-25-2017) -- (Started doing my changes)\n\nMade Script easier to pick what you want to run\nScript by default returned items to the default of windows (that the script is set to change)\n\nAdded 6 New Setting for Context Menu: (add/remove)\n  Cast To Device\n  Previous Versions\n  Include in Library\n  Pin To\n  Share With\n  Send To\n\nAdded 5 New Settings:\n  Volume Control Bar to classic/new\n  Pid In Title Bar\n  Aero Resize\n  Aero Shake\n  App Auto Download\n\nAdded options for a few of the items that had more than once choice\nAdded ability to Remove the bloatware instead of just hiding it\n\n-----------------------------------------------------------------------------------\n2.0 (01-08-2017)\n\nv2.0 Script by Disassembler0\nhttps://github.com/Disassembler0/Win10-Initial-Setup-Script/\n"
  },
  {
    "path": "Testing/Win10-Menu.ps1",
    "content": "##########\n# Win 10 Setup Script/Tweaks with Menu(GUI)\n#\n# Modded Script + Menu(GUI) By\n#  Author: Madbomb122\n# Website: https://GitHub.com/Madbomb122/Win10Script/\n#\n# Original Basic Script By\n#  Author: Disassembler0\n# Website: https://GitHub.com/Disassembler0/Win10-Initial-Setup-Script/\n# Version: 2.0, 2017-01-08 (Version Copied)\n#\n$Script_Version = '3.7.2'\n$Script_Date = 'Jul-31-2021'\n#$Release_Type = 'Stable'\n##########\n\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!             SAFE TO EDIT ITEM              !!\n## !!            AT BOTTOM OF SCRIPT             !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!                  CAUTION                   !!\n## !!        DO NOT EDIT PAST THIS POINT         !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n<#------------------------------------------------------------------------------#>\n\n$Copyright =' The MIT License (MIT)                                                  \n                                                                        \n Copyright (c) 2017 Disassembler                                        \n        -Original Basic Version of Script                               \n                                                                        \n Copyright (c) 2017-2021 Madbomb122                                     \n        -Modded + Menu Version of Script                                \n                                                                        \n Permission is hereby granted, free of charge, to any person obtaining  \n a copy of this software and associated documentation files (the        \n \"Software\"), to deal in the Software without restriction, including    \n without limitation the rights to use, copy, modify, merge, publish,    \n distribute, sublicense, and/or sell copies of the Software, and to     \n permit persons to whom the Software is furnished to do so, subject to  \n the following conditions:                                              \n                                                                        \n The above copyright notice(s), this permission notice shall be         \n included in all copies or substantial portions of the Software.        \n                                                                        \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY  \n KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE \n WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR    \n PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS \n OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR   \n OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR \n OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE  \n SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.     \n                                                            '\n\n<#--------------------------------------------------------------------------------\n\n.Prerequisite to run script\n  System: Windows 10\n  Files: This script\n\n.DESCRIPTION\n  Makes it easier to setup an existing or new install with moded setting\n\n.BASIC USAGE\n  Use the Menu and set what you want then Click Run the Script\n\n.ADVANCED USAGE\n One of the following Methods...\n  1. Edit values at bottom of the script\n  2. Edit bat file and run\n  3. Run the script with one of these switches (space between multiple)\n\n  Switch          Description of Switch\n-- Basic Switches --\n  -atos           Accepts ToS\n  -auto           Implies -Atos...Closes on - User Errors, or End of Script\n  -crp            Creates Restore Point\n  -dnr            Do Not Restart when done\n\n-- Run Script Switches --\n  -run            Runs script with settings in script\n  -run FILENME    Runs script with settings in the file FILENME\n  -run wd         Runs script with win default settings\n\n-- Load Script Switches --\n  -load FILENME   Loads script with settings in the file FILENME\n  -load wd        Loads script with win default settings\n\n--Update Switches--\n  -usc            Checks for Update to Script file before running\n  -sic            Skips Internet Check\n\n------------------------------------------------------------------------------#>\n##########\n# Pre-Script -Start\n##########\n\nIf([Environment]::OSVersion.Version.Major -ne 10) {\n\tWrite-Host 'Sorry, this Script supports Windows 10 ONLY.' -ForegroundColor 'cyan' -BackgroundColor 'black'\n\tIf($Automated -ne 1){ Read-Host -Prompt \"`nPress Any key to Close...\" } ;Exit\n}\nIf($Release_Type -eq 'Stable'){ $ErrorActionPreference = 'SilentlyContinue' } Else{ $Release_Type = 'Testing' }\n\n$Script:PassedArg = $args\n\nIf(!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]\"Administrator\")) {\n\tStart-Process powershell.exe \"-NoProfile -ExecutionPolicy Bypass -File `\"$PSCommandPath`\" $PassedArg\" -Verb RunAs ;Exit\n}\n\n$MySite = 'https://GitHub.com/madbomb122/Win10Script'\n$URL_Base = $MySite.Replace('GitHub','raw.GitHub')+'/master/'\n$Version_Url = $URL_Base + 'Version/Version.csv'\n$Donate_Url = 'https://www.amazon.com/gp/registry/wishlist/YBAYWBJES5DE/'\n$FileBase = $(If($psISE -ne $Null){ Split-Path $psISE.CurrentFile.FullPath -Parent } Else{ $PSScriptRoot }) + '\\'\n\n$Script:Win10Ver = (Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name ReleaseID).ReleaseId\n$Script:OSBit = If([System.Environment]::Is64BitProcess){ 64 } Else{ 32 }\n\n##########\n# Pre-Script -End\n##########\n# Needed Variable -Start\n##########\n\n$TasksList = @(\n'Application Experience',\n'Consolidator',\n'Customer Experience Improvement Program',\n'DmClient',\n'KernelCeipTask',\n'Microsoft Compatibility Appraiser',\n'ProgramDataUpdater',\n'Proxy',\n'QueueReporting',\n'SmartScreenSpecific',\n'UsbCeip')\n<#\n'AgentFallBack2016',\n'AitAgent',\n'CreateObjectTask',\n#'Diagnostics',\n'DmClientOnScenarioDownload',\n'FamilySafetyMonitor',\n'FamilySafetyRefresh',\n'FamilySafetyRefreshTask',\n'FamilySafetyUpload',\n#'File History (maintenance mode)',\n'GatherNetworkInfo',\n'MapsUpdateTask',\n#'Microsoft-Windows-DiskDiagnosticDataCollector',\n'MNO Metadata Parser',\n'OfficeTelemetryAgentFallBack',\n'OfficeTelemetryAgentLogOn',\n'OfficeTelemetryAgentLogOn2016',\n'Sqm-Tasks',\n#'StartupAppTask',\n'Uploader',\n'XblGameSaveTask',\n'XblGameSaveTaskLogon')\n#>\n\n$Xbox_Apps = @(Get-AppxPackage *xbox*).Name\n$musnotification_files = @(\"$Env:windir\\System32\\musnotification.exe\",\"$Env:windir\\System32\\musnotificationux.exe\")\n\n$AppxOptions=@('Skip','Unhide','Hide','Uninstall')\n\n$colors = @(\n'black',      #0\n'blue',       #1\n'cyan',       #2\n'darkblue',   #3\n'darkcyan',   #4\n'darkgray',   #5\n'darkgreen',  #6\n'darkmagenta',#7\n'darkred',    #8\n'darkyellow', #9\n'gray',       #10\n'green',      #11\n'magenta',    #12\n'red',        #13\n'white',      #14\n'yellow')     #15\n\n#Unicode Box Codes\n$Tlc = [char]0x2554 # ╔\n$Blc = [char]0x255A # ╚\n$Trc = [char]0x2557 # ╗\n$Brc = [char]0x255D # ╝\n$Sid = [char]0x2551 # ║\n$ToB = [char]0x2550 # ═\n\nFunction BoxItem([String]$TxtToDisplay) {\n\t$TLen = $TxtToDisplay.Length\n\t$LLen = $TLen+9\n\t$Ttop = \"`n$Tlc\".PadRight($LLen-1,$ToB) + $Trc\n\t$TBot = \"$Blc\".PadRight($LLen-2,$ToB) + $Brc\n\tDisplayOut $Ttop -C 14\n\tDisplayOut $Sid,\"   $TxtToDisplay   \",$Sid -C 14,13,14\n\tDisplayOut $TBot -C 14\n}\n\nFunction AnyKeyClose{ Read-Host -Prompt \"`nPress Any key to Close...\" }\n\n##########\n# Needed Variable -End\n##########\n# Update Functions -Start\n##########\n\nFunction UpdateCheck {\n\tIf(InternetCheck) {\n\t\t$CSV_Ver = Invoke-WebRequest $Version_Url | ConvertFrom-Csv\n\t\t$CSVLine,$RT = If($Release_Type -eq 'Stable'){ 0,'' } Else{ 1,'Testing/' }\n\t\t$WebScriptVer = $CSV_Ver[$CSVLine].Version + \".\" + $CSV_Ver[$CSVLine].MinorVersion\n\t\tIf($WebScriptVer -gt $Script_Version){ ScriptUpdateFun $RT }\n\t} Else {\n\t\tClear-Host\n\t\tDisplayMisc -Line\n\t\tDisplayOutLML (''.PadRight(22)+'Error') -C 13\n\t\tDisplayMisc -Line\n\t\tDisplayMisc\n\t\tDisplayOutLML 'No Internet connection detected or GitHub.com' -C 2\n\t\tDisplayOutLML 'is currently down.' -C 2\n\t\tDisplayOutLML 'Tested by pinging GitHub.com' -C 2\n\t\tDisplayMisc\n\t\tDisplayOutLML 'To skip use one of the following methods' -C 2\n\t\tDisplayOut '|',' 1. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14\n\t\tDisplayOut '|',' 2. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14\n\t\tDisplayOut '|',' 3. Run Script or Bat file with ','-sic',' switch         ','|' -C 14,2,15,2,14\n\t\tDisplayMisc\n\t\tDisplayMisc -Line\n\t\tAnyKeyClose\n\t}\n}\n\nFunction ScriptUpdateFun([String]$RT) {\n\t$Script_Url = $URL_Base + $RT + 'Win10-Menu.ps1'\n\t$ScrpFilePath = $FileBase + 'Win10-Menu.ps1'\n\t$FullVer = \"$WebScriptVer.$WebScriptMinorVer\"\n\t$UpArg = ''\n\n\tIf($Accept_ToS -ne 1){ $UpArg += '-atos ' }\n\tIf($InternetCheck -eq 1){ $UpArg += '-sic ' }\n\tIf($CreateRestorePoint -eq 1){ $UpArg += '-crp ' }\n\tIf($Restart -eq 0){ $UpArg += '-dnr' }\n\t$UpArg += If($RunScr){ \"-run $TempSetting \" } Else{ \"-load $TempSetting \" }\n\n\tClear-Host\n\tDisplayMisc -Line\n\tDisplayMisc\n\tDisplayOutLML (''.PadRight(18)+'Update Found!') -C 13 -L\n\tDisplayMisc\n\tDisplayOut '|',' Updating from version ',\"$Script_Version\".PadRight(30),'|' -C 14,15,11,14 -L\n\tDisplayMisc\n\tDisplayOut '|',' Downloading version ',\"$FullVer\".PadRight(31),'|' -C 14,15,11,14 -L\n\tDisplayOutLML 'Will run after download is complete.' -C 15 -L\n\tDisplayMisc\n\tDisplayMisc -Line\n\n\t(New-Object System.Net.WebClient).DownloadFile($Script_Url, $ScrpFilePath)\n\tStart-Process powershell.exe \"-NoProfile -ExecutionPolicy Bypass -File `\"$ScrpFilePath`\" $UpArg\" -Verb RunAs\n\tExit\n}\n\nFunction InternetCheck{ If($InternetCheck -eq 1 -or (Test-Connection www.GitHub.com -Count 1 -Quiet)){ Return $True } Return $False }\n\n##########\n# Update Functions -End\n##########\n# Multi Use Functions -Start\n##########\n\nFunction ThanksDonate {\n\tDisplayOut \"`nThanks for using my script.\" -C 11\n\tDisplayOut 'If you like this script please consider giving me a donation.' -C 11\n\tDisplayOut \"`nLink to donation:\" -C 15\n\tDisplayOut $Donate_Url -C 2\n}\n\nFunction cmpv{ Compare-Object (Get-Variable -Scope Script) $AutomaticVariables -Property Name -PassThru | Where-Object -Property Name -ne 'AutomaticVariables' | Where-Object { $_ -NotIn $WPFList } }\nFunction Openwebsite([String]$Url){ Start-Process $Url }\nFunction ShowInvalid([Int]$InvalidA){ If($InvalidA -eq 1){ Write-Host \"`nInvalid Input\" -ForegroundColor Red -BackgroundColor Black -NoNewline } Return 0 }\nFunction CheckSetPath([String]$RPath){ While(!(Test-Path $RPath)){ New-Item -Path $RPath -Force | Out-Null } Return $RPath }\nFunction RemoveSetPath([String]$RPath){ If(Test-Path $RPath){ Remove-Item -Path $RPath -Recurse } }\nFunction StartOrGui{ SetAppxVar ;If($RunScr -eq $True){ RunScript } ElseIf($AcceptToS -ne 1){ GuiStart } }\n\nFunction DisplayOut {\n\tParam (\t[Alias (\"T\")] [String[]]$Text, [Alias (\"C\")] [Int[]]$Color )\n\tFor($i=0 ;$i -lt $Text.Length ;$i++){ Write-Host $Text[$i] -ForegroundColor $colors[$Color[$i]] -BackgroundColor 'Black' -NoNewLine } ;Write-Host\n}\n\nFunction DisplayOutLML {\n\tParam (\t[Alias('T')] [String]$Text, [Alias('C')] [Int[]]$Color )\n\tDisplayOut '| ',\"$Text\".PadRight(50),' |' -C 14,$Color,14\n}\n\nFunction DisplayMisc {\n\tParam (\t[Switch]$Line, [Int]$Misc = 14 )\n\t$txt = If($Line){ '|'.PadRight(53,'-') + '|' } Else{ '|'.PadRight(53) + '|' } #Line or Blank Spaces\n\t$Splat = @{ Text = $txt ;Color = $Misc }\n\tDisplayOut @Splat\n}\n\nFunction ScriptPreStart {\n\tSetDefault\n\tIf($PassedArg.Length -gt 0){ ArgCheck }\n\tIf($AcceptToS -eq 1){ TOS } Else{ StartOrGui }\n}\n\nFunction SetAppxVar {\n\t$Script:DataGridApps = [PSCustomObject] @{ AppxName = 'Microsoft.3DBuilder'; CName = '3DBuilder'; VarName = 'APP_3DBuilder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DBuilder]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Microsoft3DViewer'; CName = '3DViewer'; VarName = 'APP_3DViewer'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DViewer]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.BingWeather'; CName = 'Bing Weather'; VarName = 'APP_BingWeather'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_BingWeather]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.CommsPhone'; CName = 'Phone'; VarName = 'APP_CommsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_CommsPhone]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.windowscommunicationsapps'; CName = 'Calendar & Mail'; VarName = 'APP_Communications'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Communications]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.GetHelp'; CName = \"Microsoft's Self-Help\"; VarName = 'APP_GetHelp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_GetHelp]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Getstarted'; CName = 'Get Started Link'; VarName = 'APP_Getstarted'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Getstarted]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Messaging'; CName = 'Messaging'; VarName = 'APP_Messaging'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Messaging]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftOfficeHub'; CName = 'Get Office Link'; VarName = 'APP_MicrosoftOffHub'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MicrosoftOffHub]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MovieMoments'; CName = 'Movie Moments'; VarName = 'APP_MovieMoments'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MovieMoments]},\n\t[PSCustomObject] @{ AppxName = '4DF9E0F8.Netflix'; CName = 'Netflix'; VarName = 'APP_Netflix'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Netflix]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Office.OneNote'; CName = 'Office OneNote'; VarName = 'APP_OfficeOneNote'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeOneNote]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Office.Sway'; CName = 'Office Sway'; VarName = 'APP_OfficeSway'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeSway]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.OneConnect'; CName = 'One Connect'; VarName = 'APP_OneConnect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OneConnect]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.People'; CName = 'People'; VarName = 'APP_People'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_People]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Windows.Photos'; CName = 'Photos'; VarName = 'APP_Photos'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Photos]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.SkypeApp'; CName = 'Skype'; VarName = 'APP_SkypeApp1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SkypeApp1]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftSolitaireCollection'; CName = 'Microsoft Solitaire'; VarName = 'APP_SolitaireCollect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SolitaireCollect]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftStickyNotes'; CName = 'Sticky Notes'; VarName = 'APP_StickyNotes'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_StickyNotes]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsSoundRecorder'; CName = 'Voice Recorder'; VarName = 'APP_VoiceRecorder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_VoiceRecorder]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsAlarms'; CName = 'Alarms and Clock'; VarName = 'APP_WindowsAlarms'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsAlarms]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCalculator'; CName = 'Calculator'; VarName = 'APP_WindowsCalculator'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCalculator]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCamera'; CName = 'Camera'; VarName = 'APP_WindowsCamera'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCamera]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedback'; CName = 'Windows Feedback'; VarName = 'APP_WindowsFeedbak1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak1]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedbackHub'; CName = 'Windows Feedback Hub'; VarName = 'APP_WindowsFeedbak2'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak2]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsMaps'; CName = 'Maps'; VarName = 'APP_WindowsMaps'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsMaps]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsPhone'; CName = 'Phone Companion'; VarName = 'APP_WindowsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsPhone]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsStore'; CName = 'Microsoft Store'; VarName = 'APP_WindowsStore'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsStore]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Wallet'; CName = 'Stores Credit and Debit Card Information'; VarName = 'APP_WindowsWallet'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsWallet]},\n\t[PSCustomObject] @{ AppxName = $Xbox_Apps; CName = 'Xbox Apps (All)'; VarName = 'APP_XboxApp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_XboxApp]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.ZuneMusic'; CName = 'Groove Music'; VarName = 'APP_ZuneMusic'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneMusic]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.ZuneVideo'; CName = 'Groove Video'; VarName = 'APP_ZuneVideo'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneVideo]}\n\tIf($WPF_dataGrid){ $WPF_dataGrid.ItemsSource = $DataGridApps }\n}\n\nFunction PassVal([String]$Pass){ Return $PassedArg[$PassedArg.IndexOf($Pass)+1] }\nFunction ArgCheck {\n\tIf($PassedArg -In '-help','-h'){ ShowHelp }\n\tIf($PassedArg -Contains '-copy'){ ShowCopyright ;Exit }\n\tIf($PassedArg -Contains '-run') {\n\t\t$tmp = PassVal '-run'\n\t\tIf(Test-Path -LiteralPath $tmp -PathType Leaf) {\n\t\t\tLoadSettingFile $tmp ;$Script:RunScr = $True\n\t\t} ElseIf($tmp -In 'wd','windefault') {\n\t\t\tLoadWinDefault ;$Script:RunScr = $True\n\t\t} ElseIf($tmp.StartsWith('-') -or $PassedArg.IndexOf('-run') -eq  $PassedArg.Length) {\n\t\t\t$Script:RunScr = $True\n\t\t}\n\t}\n\tIf($PassedArg -Contains '-load') {\n\t\t$tmp = PassVal '-load'\n\t\tIf(Test-Path -LiteralPath $tmp -PathType Leaf){ LoadSettingFile $tmp } ElseIf($tmp -In 'wd','windefault'){ LoadWinDefault }\n\t}\n\tIf($PassedArg -Contains '-sic'){ $Script:InternetCheck = 1 }\n\tIf($PassedArg -Contains '-usc'){ $Script:VersionCheck  = 1 }\n\tIf($PassedArg -Contains '-atos'){ $Script:AcceptToS = 'Accepted' }\n\tIf($PassedArg -Contains '-dnr'){ $Script:Restart = 0 }\n\tIf($PassedArg -Contains '-auto'){ $Script:Automated = 1 ;$Script:AcceptToS = 'Accepted' }\n\tIf($PassedArg -Contains '-crp') {\n\t\t$Script:CreateRestorePoint = 1\n\t\t$tmp = PassVal '-crp'\n\t\tIf(!$tmp.StartsWith('-')){ $Script:RestorePointName = $tmp }\n\t}\n}\n\nFunction ShowHelp {\n\tClear-Host\n\tDisplayOut '             List of Switches' -C 13\n\tDisplayOut ''.PadRight(53,'-') -C 14\n\tDisplayOut ' Switch ',\"Description of Switch`n\".PadLeft(31) -C 14,15\n\tDisplayOut '-- Basic Switches --' -C 2\n\tDisplayOut '  -atos ','           Accepts ToS' -C 14,15\n\tDisplayOut '  -auto ','           Implies ','-atos','...Runs the script to be Automated.. Closes on - User Input, Errors, or End of Script' -C 14,15,14,15\n\tDisplayOut '  -crp  ','           Creates Restore Point' -C 14,15\n\tDisplayOut '  -dnr  ','           Do Not Restart when done' -C 14,15\n\tDisplayOut \"`n-- Run Script Switches --\" -C 2\n\tDisplayOut '  -run  ','           Runs script with settings in script' -C 14,15\n\tDisplayOut '  -run  ','FILENAME ','   Runs script with settings in the file',' FILENAME' -C 14,11,15,11\n\tDisplayOut '  -run wd ','         Runs script with win default settings' -C 14,15\n\tDisplayOut \"`n-- Load Script Switches --\" -C 2\n\tDisplayOut '  -run  ','FILENAME ','  Loads script with settings in the file',' FILENAME' -C 14,11,15,11\n\tDisplayOut '  -load wd ','        Loads script with win default settings' -C 14,15\n\tDisplayOut \"`n--Update Switches--\" -C 2\n\tDisplayOut '  -usc ','            Checks for Update to Script file before running' -C 14,15\n\tDisplayOut '  -sic ',\"            Skips Internet Check, if you can't ping GitHub.com for some reason\" -C 14,15\n\tDisplayOut \"`n--Help--\" -C 2\n\tDisplayOut '  -help ','           Shows list of switches, then exits script.. alt ','-h' -C 14,15,14\n\tDisplayOut '  -copy ','           Shows Copyright/License Information, then exits script' -C 14,15\n\tAnyKeyClose\n\tExit\n}\n\nFunction ShowCopyright { Clear-Host ;DisplayOut $Copyright -C 14 }\n\nFunction TOSDisplay([Switch]$C) {\n\tIf(!$C){ Clear-Host }\n\t$BC = 14\n\tIf($Release_Type -ne 'Stable') {\n\t\t$BC = 15\n\t\tDisplayMisc -Line -Misc 15\n\t\tDisplayOut '|'.PadRight(22),'Caution!!!'.PadRight(31),'|' -C 15,13,15\n\t\tDisplayMisc -Misc 15\n\t\tDisplayOut '|','         This script is still being tested.         ','|' -C 15,14,15\n\t\tDisplayOut '|'.PadRight(17),'USE AT YOUR OWN RISK.'.PadRight(36),'|' -C 15,14,15\n\t\tDisplayMisc -Misc 15\n\t}\n\tDisplayMisc -Line -Misc $BC\n\tDisplayOut '|'.PadRight(21),'Terms of Use'.PadRight(32),'|' -C $BC,11,$BC\n\tDisplayMisc -Line -Misc $BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' This program comes with ABSOLUTELY NO WARRANTY.    ','|' -C $BC,2,$BC\n\tDisplayOut '|',' This is free software, and you are welcome to      ','|' -C $BC,2,$BC\n\tDisplayOut '|',' redistribute it under certain conditions.'.PadRight(52),'|' -C $BC,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' Read License file for full Terms.'.PadRight(52),'|' -C $BC,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' Use the switch ','-copy',' to see License Information or ','|' -C $BC,2,14,2,$BC\n\tDisplayOut '|',' enter ','L',' bellow.'.PadRight(44),'|' -C $BC,2,14,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayMisc -Line -Misc $BC\n}\n\nFunction TOS {\n\t$CopyR = $False\n\tWhile($TOS -ne 'Out') {\n\t\tTOSDisplay -c:$CopyR\n\t\t$CopyR = $False\n\t\t$Invalid = ShowInvalid $Invalid\n\t\t$TOS = Read-Host \"`nDo you Accept? (Y)es/(N)o\"\n\t\tIf($TOS -In 'n','no'){\n\t\t\tExit\n\t\t} ElseIf($TOS -In 'y','yes') {\n\t\t\t$Script:AcceptToS = 'Accepted-Script' ;$TOS = 'Out' ;StartOrGui\n\t\t} ElseIf($TOS -eq 'l') {\n\t\t\t$CopyR = $True ;ShowCopyright\n\t\t} Else {\n\t\t\t$Invalid = 1\n\t\t}\n\t} Return\n}\n\nFunction LoadSettingFile([String]$Filename) {\n\tIf($Filename) {\n\t\t(Import-Csv -LiteralPath $Filename -Delimiter ';').ForEach{ Set-Variable $_.Name $_.Value -Scope Script }\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsUnhide = $AppsUnhide.Split(',')\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsHide = $AppsHide.Split(',')\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsUninstall = $AppsUninstall.Split(',')\n\t\tSetAppxVar\n\t}\n}\n\nFunction SaveSettingFiles([String]$Filename) {\n\tIf($Filename) {\n\t\t#ForEach($temp In $APPS_AppsUnhide){$Script:AppsUnhide += $temp + ','}\n\t\t#ForEach($temp In $APPS_AppsHide){$Script:AppsHide += $temp + ','}\n\t\t#ForEach($temp In $APPS_Uninstall){$Script:AppsUninstall += $temp + ','}\n\t\tIf(Test-Path -LiteralPath $Filename -PathType Leaf) {\n\t\t\tIf($ShowConf -eq 1){ $Conf = ConfirmMenu 2 } Else{ $Conf = $True }\n\t\t\tIf($Conf){ cmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';' }\n\t\t} Else {\n\t\t\tcmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';'\n\t\t}\n\t}\n}\n\n##########\n# Multi Use Functions -End\n##########\n# GUI -Start\n##########\n\nFunction SetCombo([String]$Name,[String]$Item) {\n\t$Items = $Item.Split(',')\n\t$combo =  $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)\n\t[Void] $combo.Items.Add('Skip')\n\tForEach($CmbItm In $Items){ [void] $combo.Items.Add($CmbItm) }\n\tSelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly)\n}\n\nFunction SetComboM([String]$Name,[String]$Item) {\n\t$Items = $Item.Split(',')\n\t$combo =  $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)\n\t[Void] $combo.Items.Add('Skip')\n\tForEach($CmbItm In $Items){ [Void] $combo.Items.Add($CmbItm) }\n\tIf($Var -NotLike 'APP_*'){ SelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly) }\n}\n\nFunction SelectComboBox([Array]$List) {\n\tForEach($Var In $List) {\n\t\tIf($Var -NotLike 'APP_*'){ SelectComboBoxGen $Var $(Get-Variable -Name $Var -ValueOnly) }\n\t}\n}\nFunction SelectComboBoxGen([String]$Name,[Int]$Numb){ $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly).SelectedIndex = $Numb }\n\nFunction RestorePointCBCheck {\n\t$WPF_CreateRestorePoint_CB.IsChecked,$WPF_RestorePointName_Txt = If($CreateRestorePoint -eq 1){ $True,$True } Else{ $False,$False }\n}\n\nFunction ConfigGUIitms {\n\t$WPF_CreateRestorePoint_CB.IsChecked = If($CreateRestorePoint -eq 1){ $True } Else{ $False }\n\t$WPF_VersionCheck_CB.IsChecked = If($VersionCheck -eq 1){ $True } Else{ $False }\n\t$WPF_InternetCheck_CB.IsChecked = If($InternetCheck -eq 1){ $True } Else{ $False }\n\t$WPF_ShowSkipped_CB.IsChecked = If($ShowSkipped -eq 1){$True } Else{ $False }\n\t$WPF_Restart_CB.IsChecked = If($Restart -eq 1){ $True } Else{ $False }\n\t$WPF_RestorePointName_Txt.Text = $RestorePointName\n\tRestorePointCBCheck\n}\n\nFunction OpenSaveDiaglog([Int]$SorO) {\n\t$SOFileDialog = If($SorO -eq 0){ New-Object System.Windows.Forms.OpenFileDialog } Else{ New-Object System.Windows.Forms.SaveFileDialog }\n\t$SOFileDialog.InitialDirectory = $FileBase\n\t$SOFileDialog.Filter = \"CSV (*.csv)| *.csv\"\n\t$SOFileDialog.ShowDialog() | Out-Null\n\tIf($SorO -eq 0) {\n\t\tLoadSettingFile $SOFileDialog.Filename\n\t\tConfigGUIitms\n\t\tSelectComboBox $VarList\n\t\tSetAppxVar\n\t} Else {\n\t\tGuiItmToVariable\n\t\tSaveSettingFiles $SOFileDialog.Filename\n\t}\n}\n\nFunction GuiStart {\n\tClear-Host\n\tDisplayOut 'Preparing GUI, Please wait...' -C 15\n\n[xml]$XAML = @\"\n<Window xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" x:Name=\"Win10_Script\"\nTitle=\"Windows 10 Settings/Tweaks Script By: Madbomb122 (v.$Script_Version -$Script_Date\" Height=\"420\" Width=\"660\" BorderBrush=\"Black\" Background=\"White\">\n\t<Window.Resources>\n\t\t<Style x:Key=\"SeparatorStyle1\" TargetType=\"{x:Type Separator}\">\n\t\t\t<Setter Property=\"SnapsToDevicePixels\" Value=\"True\"/>\n\t\t\t<Setter Property=\"Margin\" Value=\"0,0,0,0\"/>\n\t\t\t<Setter Property=\"Template\">\n\t\t\t\t<Setter.Value>\n\t\t\t\t\t<ControlTemplate TargetType=\"{x:Type Separator}\">\n\t\t\t\t\t\t<Border Height=\"24\" SnapsToDevicePixels=\"True\" Background=\"#FF4D4D4D\" BorderBrush=\"#FF4D4D4D\" BorderThickness=\"0,0,0,1\"/>\n\t\t\t\t\t</ControlTemplate>\n\t\t\t\t</Setter.Value>\n\t\t\t</Setter>\n\t\t</Style>\n\t\t<Style TargetType=\"{x:Type ToolTip}\"><Setter Property=\"Background\" Value=\"#FFFFFFBF\"/></Style>\n\t</Window.Resources>\n\t<Window.Effect><DropShadowEffect/></Window.Effect>\n\t<Grid>\n\t\t<Grid.RowDefinitions>\n\t\t\t<RowDefinition Height=\"20\"/>\n\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t<RowDefinition Height=\"24\"/>\n\t\t</Grid.RowDefinitions>\n\t\t<Menu Grid.Row=\"0\" VerticalAlignment=\"Top\">\n\t\t\t<MenuItem Header=\"Help\">\n\t\t\t\t<MenuItem Name=\"FeedbackButton\" Header=\"Feedback/Bug Report\"/>\n\t\t\t\t<MenuItem Name=\"FAQButton\" Header=\"FAQ\"/>\n\t\t\t\t<MenuItem Name=\"AboutButton\" Header=\"About\"/>\n\t\t\t\t<MenuItem Name=\"CopyrightButton\" Header=\"Copyright\"/>\n\t\t\t\t<MenuItem Name=\"ContactButton\" Header=\"Contact Me\"/>\n\t\t\t</MenuItem>\n\t\t\t<MenuItem Name=\"DonateButton\" Background=\"#FFFFAD2F\" FontWeight=\"Bold\" Header=\"Donate to Me\"/>\n\t\t\t<MenuItem Name=\"Madbomb122WSButton\" Background=\"#FFFFDF4F\" FontWeight=\"Bold\" Header=\"Madbomb122's GitHub\"/>\n\t\t</Menu>\n\t\t<TabControl Name=\"TabControl\" Grid.Row=\"1\" BorderBrush=\"Gainsboro\" TabStripPlacement=\"Left\">\n\t\t\t<TabControl.Resources>\n\t\t\t\t<Style TargetType=\"TabItem\">\n\t\t\t\t\t<Setter Property=\"Template\">\n\t\t\t\t\t\t<Setter.Value>\n\t\t\t\t\t\t\t<ControlTemplate TargetType=\"TabItem\">\n\t\t\t\t\t\t\t\t<Border Name=\"Border\" Margin=\"2,2\" BorderBrush=\"Gainsboro\" BorderThickness=\"1,1,1,0\" CornerRadius=\"4,4,0,0\">\n\t\t\t\t\t\t\t\t\t<ContentPresenter x:Name=\"ContentSite\" HorizontalAlignment=\"Center\" Margin=\"5,2\" VerticalAlignment=\"Center\" ContentSource=\"Header\"/>\n\t\t\t\t\t\t\t\t</Border>\n\t\t\t\t\t\t\t\t<ControlTemplate.Triggers>\n\t\t\t\t\t\t\t\t\t<Trigger Property=\"IsSelected\" Value=\"True\"><Setter TargetName=\"Border\" Property=\"Background\" Value=\"LightSkyBlue\" /></Trigger>\n\t\t\t\t\t\t\t\t\t<Trigger Property=\"IsSelected\" Value=\"False\"><Setter TargetName=\"Border\" Property=\"Background\" Value=\"GhostWhite\" /></Trigger>\n\t\t\t\t\t\t\t\t</ControlTemplate.Triggers>\n\t\t\t\t\t\t\t</ControlTemplate>\n\t\t\t\t\t\t</Setter.Value>\n\t\t\t\t\t</Setter>\n\t\t\t\t</Style>\n\t\t\t</TabControl.Resources>\n\t\t\t<TabItem Name=\"Options_Tab\" Header=\"Script Options\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t<RowDefinition Height=\"6*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"2*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"1.5*\"/>\n\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Options\" Grid.Row=\"0\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2.1*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<CheckBox Name=\"CreateRestorePoint_CB\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Create Restore Point:\"/>\n\t\t\t\t\t\t\t<TextBox Name=\"RestorePointName_Txt\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Text=\"Win10 Initial Setup Script\" TextWrapping=\"Wrap\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"ShowSkipped_CB\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Show Skipped Items\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"Restart_CB\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Restart When Done (Restart is Recommended)\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"VersionCheck_CB\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Check for Update (If found, will run with current settings)\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"InternetCheck_CB\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Skip Internet Check\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Backup / Restore / Reset\" Grid.Row=\"1\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Button Name=\"Save_Setting_Button\" Content=\"Save Settings\" Grid.Column=\"0\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"Load_Setting_Button\" Content=\"Load Settings\" Grid.Column=\"1\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"WinDefault_Button\" Content=\"Windows Default*\" Grid.Column=\"2\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"ResetDefault_Button\" Content=\"Reset All Items\" Grid.Column=\"3\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<TextBlock Text=\"Windows Default * / Does not modify Windows Apps or OneDrive Installation\" Grid.Column=\"0\" Grid.ColumnSpan=\"4\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" FontStyle=\"Italic\" TextWrapping=\"Wrap\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Version\" Grid.Row=\"2\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<TextBlock Name=\"Script_Ver_Txt\" Text=\"v.$Script_Version ($Script_Date) -$Release_Type\" TextWrapping=\"Wrap\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Privacy_tab\" Header=\"Privacy\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"18*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"20*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Telemetry:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Telemetry_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Wi-Fi Sense:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WiFiSense_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"SmartScreen Filter:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SmartScreen_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Location Tracking:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"LocationTracking_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Feedback:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Feedback_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Advertising ID:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AdvertisingID_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"21*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"20*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Cortana:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Cortana_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Cortana Search:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"CortanaSearch_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Error Reporting:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ErrorReporting_Combo\" Grid.Column=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"AutoLogger:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AutoLoggerFile_Combo\" Grid.Column=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Diagnostics Tracking:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"DiagTrack_Combo\" Grid.Column=\"2\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"WAP Push:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WAPPush_Combo\" Grid.Column=\"2\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"App Auto Download:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AppAutoDownload_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"SrvTweak_Tab\" Header=\"Service Tweaks\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"7*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"UAC Level:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"UAC_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Sharing mapped drives:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SharingMappedDrives_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Administrative Shares:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AdminShares_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Firewall:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Firewall_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"7*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Windows Defender:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinDefender_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"HomeGroups:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"HomeGroups_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Remote Assistance:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RemoteAssistance_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Remote Desktop w/o Network Authentication:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RemoteDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Context_Tab\" Header=\"Context Menu, &#xD;&#xA;Start Menu\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Context Menu\" Grid.Column=\"0\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Cast to Device:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"CastToDevice_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Previous Versions:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PreviousVersions_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Include in Library:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"IncludeinLibrary_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pin To Start:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PinToStart_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pin To Quick Access:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PinToQuickAccess_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Share With/Share:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ShareWith_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Send To:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"SendTo_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Start Menu\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Bing Search:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StartMenuWebSearch_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Start Suggestions:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StartSuggestions_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Most Used Apps:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MostUsedAppStartMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Recent Items/Frequent Places:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RecentItemsFrequent_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Unpin All Items:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UnpinItems_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"TaskBar_Tab\" Header=\"Task Bar\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t<Label Content=\"Battery UI Bar:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"BatteryUIBar_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Clock UI Bar:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"ClockUIBar_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Volume Control Bar:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"VolumeControlBar_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Search box:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarSearchBox_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Task View button:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskViewButton_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Icon Size:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarIconSize_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Item Grouping:\" Grid.Column=\"2\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarGrouping_Combo\" Grid.Column=\"3\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Tray Icons:\" Grid.Column=\"2\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TrayIcons_Combo\" Grid.Column=\"3\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Seconds In Clock:\" Grid.Column=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"SecondsInClock_Combo\" Grid.Column=\"3\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Last Active Click:\" Grid.Column=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"LastActiveClick_Combo\" Grid.Column=\"3\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar on Multi Display:\" Grid.Column=\"2\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskBarOnMultiDisplay_Combo\" Grid.Column=\"3\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Button on Multi Display:\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarButtOnDisplay_Combo\" Grid.Column=\"2\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Explorer_Tab\" Header=\"Explorer\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"4*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Name=\"Timeline_Row\" Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Recent Files in Quick Access:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RecentFileQikAcc_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Frequent folders in Quick_access:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"FrequentFoldersQikAcc_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Window Content while Dragging:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinContentWhileDrag_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Search Store for Unkn. Extensions:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"StoreOpenWith_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Long File Path:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"LongFilePath_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Default Explorer View:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ExplorerOpenLoc_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Powershell to Cmd:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinXPowerShell_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"App Hibernation File (Swapfile.sys):\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AppHibernationFile_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Process ID on Title Bar:\" Grid.Column=\"0\" Grid.Row=\"8\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"PidInTitleBar_Combo\" Grid.Column=\"1\" Grid.Row=\"8\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Accessability Key Prompt:\" Grid.Column=\"0\" Grid.Row=\"9\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AccessKeyPrmpt_Combo\" Grid.Column=\"1\" Grid.Row=\"9\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Window Timeline:\" Grid.Column=\"0\" Grid.Row=\"10\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Timeline_Combo\" Grid.Column=\"1\" Grid.Row=\"10\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Name=\"ReopenAppsOnBoot_Row\" Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Aero Snap:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AeroSnap_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Aero Shake:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AeroShake_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Known Extensions:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"KnownExtensions_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Hidden Files:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"HiddenFiles_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"System Files:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SystemFiles_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Autoplay:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Autoplay_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Autorun:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Autorun_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Task Manager Details:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"TaskManagerDetails_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"F1 Help Key:\" Grid.Column=\"0\" Grid.Row=\"8\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"F1HelpKey_Combo\" Grid.Column=\"1\" Grid.Row=\"8\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Reopen Apps On Boot:\" Grid.Column=\"0\" Grid.Row=\"9\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ReopenAppsOnBoot_Combo\" Grid.Column=\"1\" Grid.Row=\"9\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Desktop_Tab\" Header=\"Desktop, This PC\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Desktop\" Grid.Column=\"0\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"This PC Icon:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ThisPCOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Network Icon:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"NetworkOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Recycle Bin Icon:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RecycleBinOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Users File Icon:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UsersFileOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Control Panel Icon:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ControlPanelOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"This PC\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Name=\"ThreeDobjectsIconInThisPC_Row\" Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Desktop Folder:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DesktopIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Documents Folder:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DocumentsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Downloads Folder:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DownloadsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Music Folder:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MusicIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pictures Folder:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PicturesIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Videos Folder:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"VideosIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"3D Objects Folder:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ThreeDobjectsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"**Remove may cause problems\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"7\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Misc_Tab\" Header=\"Photo Viewer, &#xD;&#xA;LockScreen, Misc\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2.5*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid>\n\t\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"2*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"4*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<GroupBox Header=\"Photo Viewer\" Grid.Row=\"0\" Margin=\"10\">\n\t\t\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t<Label Content=\"File Association:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PVFileAssociation_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Add Open with...:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PVOpenWithMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t\t</GroupBox>\n\t\t\t\t\t\t\t<GroupBox Header=\"Lockscreen\" Grid.Row=\"1\" Margin=\"5\">\n\t\t\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Lockscreen:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"Lockscreen_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Lockscreen Prompt Password:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"LockscreenPassword_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Power Menu:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PowerMenuLockScreen_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Camera:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"CameraOnLockscreen_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Account Protection Warning:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"AccountProtectionWarn_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t\t</GroupBox>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<GroupBox Header=\"Misc\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"1.5*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"ScreenSaver:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ScreenSaver_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Action Center:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ActionCenter_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Sticky Key Prompt:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StickyKeyPrompt_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Num Lock on Startup:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"NumblockOnStart_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"F8 Boot Menu:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"F8BootMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Remote UAC Local &#xD;&#xA;Account Token Filter\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RemoteUACAcctToken_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Hibernate Option:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"HibernatePower_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Sleep Option:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"SleepPower_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"WinApp_Tab\" Header=\"Window App\">\n\t\t\t\t<DataGrid Name=\"dataGrid\" AlternationCount=\"2\" AutoGenerateColumns=\"False\" CanUserAddRows=\"False\" HeadersVisibility=\"Column\" IsTabStop=\"True\" SelectionMode=\"Extended\">\n\t\t\t\t\t<DataGrid.RowStyle>\n\t\t\t\t\t\t<Style TargetType=\"{ x:Type DataGridRow }\">\n\t\t\t\t\t\t\t<Style.Triggers>\n\t\t\t\t\t\t\t\t<Trigger Property=\"AlternationIndex\" Value=\"0\"><Setter Property=\"Background\" Value=\"White\"/></Trigger>\n\t\t\t\t\t\t\t\t<Trigger Property=\"AlternationIndex\" Value=\"1\"><Setter Property=\"Background\" Value=\"#FFD8D8D8\"/></Trigger>\n\t\t\t\t\t\t\t</Style.Triggers>\n\t\t\t\t\t\t</Style>\n\t\t\t\t\t</DataGrid.RowStyle>\n\t\t\t\t\t<DataGrid.Columns>\n\t\t\t\t\t\t<DataGridTextColumn Header=\"Display Name\" Width=\"150\" Binding=\"{Binding CName}\" CanUserSort=\"True\" IsReadOnly=\"True\"/>\n\t\t\t\t\t\t<DataGridTemplateColumn Width=\"80\" CanUserSort=\"True\" Header=\"Option\" SortMemberPath=\"AppSelected\">\n\t\t\t\t\t\t\t<DataGridTemplateColumn.CellTemplate>\n\t\t\t\t\t\t\t\t<DataTemplate>\n\t\t\t\t\t\t\t\t\t<ComboBox ItemsSource=\"{Binding AppOptions}\" Text=\"{Binding Path=AppSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}\"/>\n\t\t\t\t\t\t\t\t</DataTemplate>\n\t\t\t\t\t\t\t</DataGridTemplateColumn.CellTemplate>\n\t\t\t\t\t\t</DataGridTemplateColumn>\n\t\t\t\t\t\t<DataGridTextColumn Header=\"Appx Name\" Width=\"180\" Binding=\"{Binding AppxName}\" IsReadOnly=\"True\"/>\n\t\t\t\t\t</DataGrid.Columns>\n\t\t\t\t</DataGrid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Application_Tab\" Header=\"Application, &#xD;&#xA;Windows Update\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Grid.Column=\"0\" Margin=\"5\" Header=\"Application/Feature\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Name=\"LinuxSubsystem_Row\" Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"OneDrive:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"OneDrive_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"OneDrive Install:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"OneDriveInstall_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Xbox DVR:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"XboxDVR_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"MediaPlayer:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MediaPlayer_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Work Folders:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WorkFolders_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Fax And Scan:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"FaxAndScan_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Linux Subsystem:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"LinuxSubsystem_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Windows Update\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"9*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Check for Update:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"CheckForWinUpdate_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Check Type:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WinUpdateType_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update P2P:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WinUpdateDownload_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update MSRT:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateMSRT_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Driver:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateDriver_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Restart on Update:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RestartOnUpdate_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Available Popup:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateAvailablePopup_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update MS Products:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateMSProducts_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t</TabControl>\n\t\t<Button Name=\"RunScriptButton\" Content=\"Run Script\" Height=\"20\" Grid.Row=\"2\" VerticalAlignment=\"Bottom\" FontWeight=\"Bold\"/>\n\t</Grid>\n</Window>\n\"@\n\t[Void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')\n\t$Form = [Windows.Markup.XamlReader]::Load( (New-Object System.Xml.XmlNodeReader $xaml) )\n\t$xaml.SelectNodes('//*[@Name]').ForEach{Set-Variable -Name \"WPF_$($_.Name)\" -Value $Form.FindName($_.Name) -Scope Script}\n\t$Runspace = [RunSpaceFactory]::CreateRunspace()\n\t$PowerShell = [PowerShell]::Create()\n\t$PowerShell.RunSpace = $Runspace\n\t$Runspace.Open()\n\t[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null\n\n\t$Script:WPFList = Get-Variable -Name 'WPF_*'\n\t[System.Collections.ArrayList]$VarList = ForEach($Var In (Get-Variable -Name 'WPF_*_Combo')){ $Var.Name.Split('_')[1] }\n\n\t$WPF_Madbomb122WSButton.Add_Click{ OpenWebsite 'https://GitHub.com/madbomb122/' }\n\t$WPF_FeedbackButton.Add_Click{ OpenWebsite \"$MySite/issues\" }\n\t$WPF_FAQButton.Add_Click{ OpenWebsite \"$MySite/blob/master/README.md\" }\n\t$WPF_DonateButton.Add_Click{ OpenWebsite $Donate_Url }\n\t$WPF_CreateRestorePoint_CB.Add_Click{ $WPF_RestorePointName_Txt.IsEnabled = $WPF_CreateRestorePoint_CB.IsChecked }\n\t$WPF_RunScriptButton.Add_Click{ GuiDone }\n\t$WPF_WinDefault_Button.Add_Click{ LoadWinDefault ;SelectComboBox $VarList }\n\t$WPF_ResetDefault_Button.Add_Click{ SetDefault ;SelectComboBox $VarList ;SetAppxVar }\n\t$WPF_Load_Setting_Button.Add_Click{ OpenSaveDiaglog 0 }\n\t$WPF_Save_Setting_Button.Add_Click{ OpenSaveDiaglog 1 }\n\t$WPF_AboutButton.Add_Click{ [Windows.Forms.Messagebox]::Show('This script lets you do Various Settings and Tweaks for Windows 10. For manual or Automated use.','About', 'OK') | Out-Null }\n\t$WPF_CopyrightButton.Add_Click{ [Windows.Forms.Messagebox]::Show($Copyright,'Copyright', 'OK') | Out-Null }\n\n$Skip_EnableD_Disable = @(\n'F1HelpKey',\n'AccessKeyPrmpt',\n'Telemetry',\n'WiFiSense',\n'SmartScreen',\n'LocationTracking',\n'Feedback',\n'AdvertisingID',\n'Cortana',\n'CortanaSearch',\n'ErrorReporting',\n'AutoLoggerFile',\n'DiagTrack',\n'WAPPush',\n'CheckForWinUpdate',\n'UpdateMSRT',\n'UpdateDriver',\n'RestartOnUpdate',\n'AppAutoDownload',\n'AdminShares',\n'Firewall',\n'WinDefender',\n'HomeGroups',\n'RemoteAssistance',\n'CastToDevice',\n'PreviousVersions',\n'IncludeinLibrary',\n'PinToStart',\n'PinToQuickAccess',\n'ShareWith',\n'SendTo',\n'OneDrive',\n'XboxDVR',\n'TaskBarOnMultiDisplay',\n'StartMenuWebSearch',\n'StartSuggestions',\n'RecentItemsFrequent',\n'Autoplay',\n'Autorun',\n'AeroSnap',\n'AeroShake',\n'StoreOpenWith',\n'LockScreen',\n'LockScreenPassword',\n'ScreenSaver',\n'CameraOnLockScreen',\n'ActionCenter',\n'AccountProtectionWarn',\n'StickyKeyPrompt',\n'SleepPower',\n'ReopenAppsOnBoot',\n'Timeline',\n'UpdateAvailablePopup',\n'AppHibernationFile')\n\n$Skip_Enable_DisableD = @(\n'UpdateMSProducts',\n'SharingMappedDrives',\n'RemoteDesktop',\n'LastActiveClick',\n'NumblockOnStart',\n'F8BootMenu',\n'RemoteUACAcctToken',\n'PVFileAssociation',\n'PVOpenWithMenu',\n'LongFilePath')\n\n$Skip_ShowD_Hide = @(\n'TaskbarSearchBox',\n'TaskViewButton',\n'MostUsedAppStartMenu',\n'FrequentFoldersQikAcc',\n'WinContentWhileDrag',\n'RecycleBinOnDesktop',\n'PowerMenuLockScreen')\n\n$Skip_ShowD_Hide_Remove = @(\n'DesktopIconInThisPC',\n'DocumentsIconInThisPC',\n'DownloadsIconInThisPC',\n'ThreeDobjectsIconInThisPC',\n'MusicIconInThisPC',\n'PicturesIconInThisPC',\n'VideosIconInThisPC')\n\n\n$Skip_Show_HideD = @(\n'SecondsInClock',\n'PidInTitleBar',\n'KnownExtensions',\n'HiddenFiles',\n'SystemFiles',\n'TaskManagerDetails',\n'ThisPCOnDesktop',\n'NetworkOnDesktop',\n'UsersFileOnDesktop',\n'ControlPanelOnDesktop')\n\n$Skip_InstalledD_Uninstall = @('OneDriveInstall','MediaPlayer','WorkFolders','FaxAndScan')\n\n\tIf($Release_Type -eq 'Testing'){\n\t\t$Script:Restart = 0\n\t\t$WPF_Restart_CB.IsEnabled = $False\n\t\t$WPF_Restart_CB.Content += ' (Disabled in Testing Version)'\n\t}\n\tIf($Win10Ver -lt 1607){ $WPF_LinuxSubsystem_Row.Height = 0 }\n\tIf($Win10Ver -lt 1709){\n\t\t$WPF_ThreeDobjectsIconInThisPC_Row, $WPF_ReopenAppsOnBoot_Row | Foreach-Object{ $_.Height = 0 }\n\t}\n\tIf($Win10Ver -lt 1803){\n\t\t$WPF_AccountProtectionWarn_Row, $WPF_Timeline_Row | Foreach-Object{ $_.Height = 0 }\n\t}\n\tForEach($Var In $Skip_EnableD_Disable){ SetCombo $Var 'Enable*,Disable' }\n\tForEach($Var In $Skip_Enable_DisableD){ SetCombo $Var 'Enable,Disable*' }\n\tForEach($Var In $Skip_ShowD_Hide_Remove){ SetCombo $Var 'Show/Add*,Hide,Remove**' }\n\tForEach($Var In $Skip_ShowD_Hide){ SetCombo $Var 'Show*,Hide' }\n\tForEach($Var In $Skip_Show_HideD){ SetCombo $Var 'Show,Hide*' }\n\tForEach($Var In $Skip_InstalledD_Uninstall){ SetCombo $Var 'Installed*,Uninstall' }\n\n\tSetCombo 'LinuxSubsystem' 'Installed,Uninstall*'\n\tSetCombo 'HibernatePower' 'Enable,Disable'\n\tSetCombo 'UAC' 'Disable,Normal*,Higher'\n\tSetCombo 'BatteryUIBar' 'New*,Classic'\n\tSetCombo 'ClockUIBar' 'New*,Classic'\n\tSetCombo 'VolumeControlBar' 'New(Horizontal)*,Classic(Vertical)'\n\tSetCombo 'TaskbarIconSize' 'Normal*,Smaller'\n\tSetCombo 'TaskbarGrouping' 'Never,Always*,When Needed'\n\tSetCombo 'TrayIcons' 'Auto*,Always Show'\n\tSetCombo 'TaskBarButtOnDisplay' 'All,Where Window is Open,Main & Where Window is Open'\n\tSetCombo 'UnpinItems' 'Unpin'\n\tSetCombo 'ExplorerOpenLoc' 'Quick Access*,ThisPC'\n\tSetCombo 'RecentFileQikAcc' 'Show/Add*,Hide,Remove'\n\tSetCombo 'WinXPowerShell' 'PowerShell,Command Prompt'\n\tSetCombo 'WinUpdateType' 'Notify,Auto DL,Auto DL+Install*,Admin Config'\n\tSetCombo 'WinUpdateDownload' 'P2P*,Local Only,Disable'\n\n\t$WPF_dataGrid.ItemsSource = $DataGridApps\n\n\tConfigGUIitms\n\t$Form.Title += If($Release_Type -ne 'Stable'){ \" -$Release_Type)\" } Else{ ')' }\n\tIf($Release_Type -eq 'Stable'){ Clear-Host }\n\tDisplayOut 'Displaying GUI Now' -C 14\n\tDisplayOut \"`nTo exit you can close the GUI or PowerShell Window.\" -C 14\n\t$Form.ShowDialog() | Out-Null\n}\n\nFunction GuiDone {\n\tGuiItmToVariable\n\t$Form.Close()\n\t$Script:RunScr = $True\n\tRunScript\n}\n\nFunction GuiItmToVariable {\n\tForEach($Var In $VarList){ Set-Variable -Name $Var -Value ($(Get-Variable -Name ('WPF_'+$Var+'_Combo') -ValueOnly).SelectedIndex) -Scope Script }\n\t$Script:CreateRestorePoint = If($WPF_CreateRestorePoint_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:VersionCheck = If($WPF_VersionCheck_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:InternetCheck = If($WPF_InternetCheck_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:ShowSkipped = If($WPF_ShowSkipped_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:Restart = If($WPF_Restart_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:RestorePointName = $WPF_RestorePointName_Txt.Text\n}\n\n##########\n# GUI -End\n##########\n# Pre-Made Settings -Start\n##########\n\nFunction LoadWinDefault {\n\t#Privacy Settings\n\t$Script:Telemetry = 1\n\t$Script:WiFiSense = 1\n\t$Script:SmartScreen = 1\n\t$Script:LocationTracking = 1\n\t$Script:Feedback = 1\n\t$Script:AdvertisingID = 1\n\t$Script:Cortana = 1\n\t$Script:CortanaSearch = 1\n\t$Script:ErrorReporting = 1\n\t$Script:AutoLoggerFile = 1\n\t$Script:DiagTrack = 1\n\t$Script:WAPPush = 1\n\n\t#Windows Update\n\t$Script:UpdateMSProducts = 2\n\t$Script:CheckForWinUpdate = 1\n\t$Script:WinUpdateType = 3\n\t$Script:WinUpdateDownload = 1\n\t$Script:UpdateMSRT = 1\n\t$Script:UpdateDriver = 1\n\t$Script:RestartOnUpdate = 1\n\t$Script:AppAutoDownload = 1\n\t$Script:UpdateAvailablePopup = 1\n\n\t#Service Tweaks\n\t$Script:UAC = 2\n\t$Script:SharingMappedDrives = 2\n\t$Script:AdminShares = 1\n\t$Script:Firewall = 1\n\t$Script:WinDefender = 1\n\t$Script:HomeGroups = 1\n\t$Script:RemoteAssistance = 1\n\t$Script:RemoteDesktop = 2\n\n\t#Context Menu Items\n\t$Script:CastToDevice = 1\n\t$Script:PreviousVersions = 1\n\t$Script:IncludeinLibrary = 1\n\t$Script:PinToStart = 1\n\t$Script:PinToQuickAccess = 1\n\t$Script:ShareWith = 1\n\t$Script:SendTo = 1\n\n\t#Task Bar Items\n\t$Script:BatteryUIBar = 1\n\t$Script:ClockUIBar = 1\n\t$Script:VolumeControlBar = 1\n\t$Script:TaskbarSearchBox = 1\n\t$Script:TaskViewButton = 1\n\t$Script:TaskbarIconSize = 1\n\t$Script:TaskbarGrouping = 2\n\t$Script:TrayIcons = 1\n\t$Script:SecondsInClock = 2\n\t$Script:LastActiveClick = 2\n\t$Script:TaskBarOnMultiDisplay = 1\n\n\t#Star Menu Items\n\t$Script:StartMenuWebSearch = 1\n\t$Script:StartSuggestions = 1\n\t$Script:MostUsedAppStartMenu = 1\n\t$Script:RecentItemsFrequent = 1\n\n\t#Explorer Items\n\t$Script:AccessKeyPrmpt = 1\n\t$Script:F1HelpKey = 1\n\t$Script:Autoplay = 1\n\t$Script:Autorun = 1\n\t$Script:PidInTitleBar = 2\n\t$Script:AeroSnap = 1\n\t$Script:AeroShake = 1\n\t$Script:KnownExtensions = 2\n\t$Script:HiddenFiles = 2\n\t$Script:SystemFiles = 2\n\t$Script:ExplorerOpenLoc = 1\n\t$Script:RecentFileQikAcc = 1\n\t$Script:FrequentFoldersQikAcc = 1\n\t$Script:WinContentWhileDrag = 1\n\t$Script:StoreOpenWith = 1\n\t$Script:WinXPowerShell = If($Win10Ver -ge 1703){ 1 } Else{ 2 }\n\t$Script:TaskManagerDetails = 2\n\t$Script:ReopenAppsOnBoot = 1\n\t$Script:Timeline = 1\n\t$Script:LongFilePath = 2\n\t$Script:AppHibernationFile = 1\n\n\t#'This PC' Items\n\t$Script:DesktopIconInThisPC = 1\n\t$Script:DocumentsIconInThisPC = 1\n\t$Script:DownloadsIconInThisPC = 1\n\t$Script:MusicIconInThisPC = 1\n\t$Script:PicturesIconInThisPC = 1\n\t$Script:VideosIconInThisPC = 1\n\t$Script:ThreeDobjectsIconInThisPC = 1\n\n\t#Desktop Items\n\t$Script:ThisPCOnDesktop = 2\n\t$Script:NetworkOnDesktop = 2\n\t$Script:RecycleBinOnDesktop = 1\n\t$Script:UsersFileOnDesktop = 2\n\t$Script:ControlPanelOnDesktop = 2\n\n\t#Lock Screen\n\t$Script:LockScreen = 1\n\t$Script:ScreenSaver = 1\n\t$Script:PowerMenuLockScreen = 1\n\t$Script:CameraOnLockScreen = 1\n\n\t#Misc items\n\t$Script:LockscreenPassword = 1\n\t$Script:AccountProtectionWarn = 1\n\t$Script:ActionCenter = 1\n\t$Script:StickyKeyPrompt = 1\n\t$Script:NumblockOnStart = 2\n\t$Script:F8BootMenu = 1\n\t$Script:RemoteUACAcctToken = 2\n\t$Script:SleepPower = 1\n\n\t# Photo Viewer Settings\n\t$Script:PVFileAssociation = 2\n\t$Script:PVOpenWithMenu = 2\n\n\t# Remove unwanted applications\n\t$Script:OneDrive = 1\n\t$Script:OneDriveInstall = 1\n\t$Script:XboxDVR = 1\n\t$Script:MediaPlayer = 1\n\t$Script:WorkFolders = 1\n\t$Script:FaxAndScan = 1\n\t$Script:LinuxSubsystem = 2\n}\n\n##########\n# Pre-Made Settings -End\n##########\n# Script -Start\n##########\n\nFunction RunScript {\n\tIf($VersionCheck -eq 1){ UpdateCheck }\n\n\tBoxItem 'Pre-Script'\n\tIf($CreateRestorePoint -eq 0 -And $ShowSkipped -eq 1) {\n\t\tDisplayOut 'Skipping Creation of System Restore Point...' -C 15\n\t} ElseIf($CreateRestorePoint -eq 1) {\n\t\tDisplayOut \"Creating System Restore Point Named '$RestorePointName'\" -C 11\n\t\tDisplayOut 'Please Wait...' -C 11\n\t\tCheckpoint-Computer -Description $RestorePointName | Out-Null\n\t}\n\n\tIf(!(Test-Path 'HKCR:')){ New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null }\n\tIf(!(Test-Path 'HKU:')){ New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null }\n\t$AppxCount = 0\n\n\tBoxItem 'Windows App Items'\n\t$APPS_AppsUnhide += ($DataGridApps.Where{$_.AppSelected -eq 'Unhide'}).AppxName\n\t$APPS_AppsHide += ($DataGridApps.Where{$_.AppSelected -eq 'Hide'}).AppxName\n\t$APPS_AppsUninstall += ($DataGridApps.Where{$_.AppSelected -eq 'Uninstall'}).AppxName\n\n\t$Ah = $APPS_AppsHide.Length\n\t$Au = $APPS_AppsUninstall.Length\n\tIf($Ah -gt 0 -or $Au  -gt 0){ $AppxPackages = Get-AppxProvisionedPackage -online | select-object PackageName,Displayname }\n\n\tDisplayOut \"---List of Apps Being Unhidden---\" -C 11\n\tIf($APPS_AppsUnhide.Length -gt 0) {\n\t\tForEach($AppI In $APPS_AppsUnhide) {\n\t\t\t$AppInst = Get-AppxPackage -AllUsers $AppI\n\t\t\tIf($AppInst -ne $null) {\n\t\t\t\tDisplayOut $AppI -C 11\n\t\t\t\tForEach($App In $AppInst){\n\t\t\t\t\t$AppxCount++\n\t\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\t\tStart-Job -Name $Job -ScriptBlock {\n\t\t\t\t\t\t$AppIJob = $using:App\n\t\t\t\t\t\t$TempIJob = $($AppIJob.InstallLocation)\n\t\t\t\t\t\tAdd-AppxPackage -DisableDevelopmentMode -Register \"$TempIJob\\AppXManifest.xml\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"Unable to Unhide $AppI\" -C 11\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Unhidden' -C 11\n\t}\n\tDisplayOut \"`n---List of Apps Being Hiddden---\" -C 12\n\tIf($Ah -gt 0) {\n\t\tForEach($AppH In $APPS_AppsHide) {\n\t\t\tIf($AppxPackages.DisplayName.Contains($AppH)) {\n\t\t\t\tDisplayOut $AppH -C 12\n\t\t\t\t$AppxCount++\n\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\tStart-Job -Name $Job -ScriptBlock { Get-AppxPackage $using:AppH | Remove-AppxPackage | Out-null }\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"$AppH Isn't Installed\" -C 12\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Hidden' -C 12\n\t}\n\tDisplayOut \"`n---List of Apps Being Uninstalled---\" -C 14\n\tIf($Au -gt 0) {\n\t\tForEach($AppU In $APPS_AppsUninstall) {\n\t\t\tIf($AppxPackages.DisplayName.Contains($AppU)) {\n\t\t\t\tDisplayOut $AppU -C 14\n\t\t\t\t$PackageFullName = (Get-AppxPackage $AppU).PackageFullName\n\t\t\t\t$ProPackageFullName = ($AppxPackages.Where{$_.Displayname -eq $AppU}).PackageName\n\t\t\t\t# Alt removal: DISM /Online /Remove-ProvisionedAppxPackage /PackageName:\n\t\t\t\t$AppxCount++\n\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\tStart-Job -Name $Job -ScriptBlock {\n\t\t\t\t\tRemove-AppxPackage -Package $using:PackageFullName | Out-null\n\t\t\t\t\tRemove-AppxProvisionedPackage -Online -PackageName $using:ProPackageFullName | Out-null\n\t\t\t\t}\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"$AppU Isn't Installed\" -C 14\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Uninstalled' -C 14\n\t}\n\n\tBoxItem 'Privacy Settings'\n\t$TelemetryTask = @(\n\t'Microsoft\\Windows\\Application Experience\\Microsoft Compatibility Appraiser',\n\t'Microsoft\\Windows\\Application Experience\\ProgramDataUpdater',\n\t'Microsoft\\Windows\\Autochk\\Proxy',\n\t'Microsoft\\Windows\\Customer Experience Improvement Program\\Consolidator',\n\t'Microsoft\\Windows\\Customer Experience Improvement Program\\UsbCeip',\n\t'Microsoft\\Windows\\DiskDiagnostic\\Microsoft-Windows-DiskDiagnosticDataCollector',\n\t'Microsoft\\Office\\Office ClickToRun Service Monitor',\n\t'Microsoft\\Office\\OfficeTelemetryAgentFallBack2016',\n\t'Microsoft\\Office\\OfficeTelemetryAgentLogOn2016')\n\n\tIf($Telemetry -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Telemetry...' -C 15 }\n\t} ElseIf($Telemetry -eq 1) {\n\t\tDisplayOut 'Enabling Telemetry...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0 }\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\PreviewBuilds' -Name 'AllowBuildPreview'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Software Protection Platform' -Name 'NoGenTicket'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\SQMClient\\Windows' -Name 'CEIPEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat' -Name 'AITEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat' -Name 'DisableInventory'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\AppV\\CEIP' -Name 'CEIPEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\TabletPC' -Name 'PreventHandwritingDataSharing'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\TextInput' -Name 'AllowLinguisticDataCollection'\n\t\tForeach($task in $TelemetryTask){ Enable-ScheduledTask -TaskName $task | Out-Null }\n\t} ElseIf($Telemetry -eq 2) {\n\t\tDisplayOut 'Disabling Telemetry...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0 }\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\PreviewBuilds'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowBuildPreview' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Software Protection Platform'\n\t\tSet-ItemProperty -Path $Path -Name 'NoGenTicket' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\SQMClient\\Windows'\n\t\tSet-ItemProperty -Path $Path -Name 'CEIPEnable' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat'\n\t\tSet-ItemProperty -Path $Path -Name 'AITEnable' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'DisableInventory' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\AppV\\CEIP'\n\t\tSet-ItemProperty -Path $Path -Name 'CEIPEnable' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\TabletPC'\n\t\tSet-ItemProperty -Path $Path -Name 'PreventHandwritingDataSharing' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\TextInput'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowLinguisticDataCollection' -Type DWord -Value 0\n\t\tForeach($task in $TelemetryTask){ Disable-ScheduledTask -TaskName $task | Out-Null }\n\t}\n\n\tIf($WiFiSense -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Wi-Fi Sense...' -C 15 }\n\t} ElseIf($WiFiSense -eq 1) {\n\t\tDisplayOut 'Enabling Wi-Fi Sense...' -C 11\n\t\t$Path1 = 'HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\default\\WiFi'\n\t\t$Path = CheckSetPath \"$Path1\\AllowWiFiHotSpotReporting\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path1\\AllowAutoConnectToWiFiSenseHotspots\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config'\n\t\tSet-ItemProperty -Path $Path -Name 'AutoConnectAllowedOEM' -Type Dword -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'WiFISenseAllowed' -Type Dword -Value 0\n\t} ElseIf($WiFiSense -eq 2) {\n\t\tDisplayOut 'Disabling Wi-Fi Sense...' -C 12\n\t\t$Path1 = 'HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\default\\WiFi'\n\t\t$Path = CheckSetPath \"$Path1\\AllowWiFiHotSpotReporting\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 0\n\t\t$Path = CheckSetPath \"$Path1\\AllowAutoConnectToWiFiSenseHotspots\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 0\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config' -Name 'AutoConnectAllowedOEM'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config' -Name 'WiFISenseAllowed'\n\t}\n\n\tIf($SmartScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping SmartScreen Filter...' -C 15 }\n\t} ElseIf($SmartScreen -eq 1) {\n\t\tDisplayOut 'Enabling SmartScreen Filter...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'SmartScreenEnabled' -Type String -Value 'RequireAdmin'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppHost' -Name 'EnableWebContentEvaluation'\n\t\tIf($Win10Ver -ge 1703) {\n\t\t\t$AddPath = (Get-AppxPackage -AllUsers 'Microsoft.MicrosoftEdge').PackageFamilyName\n\t\t\t$Path = \"HKCU:\\SOFTWARE\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$AddPath\\MicrosoftEdge\\PhishingFilter\"\n\t\t\tRemove-ItemProperty -Path $Path -Name 'EnabledV9'\n\t\t\tRemove-ItemProperty -Path $Path -Name 'PreventOverride'\n\t\t}\n\t} ElseIf($SmartScreen -eq 2) {\n\t\tDisplayOut 'Disabling SmartScreen Filter...' -C 12\n\t\t$Path = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion'\n\t\tSet-ItemProperty -Path \"HKLM:\\$Path\\Explorer\" -Name 'SmartScreenEnabled' -Type String -Value 'Off'\n\t\tSet-ItemProperty -Path \"HKCU:\\$Path\\AppHost\" -Name 'EnableWebContentEvaluation' -Type DWord -Value 0\n\t\tIf($Win10Ver -ge 1703) {\n\t\t\t$AddPath = (Get-AppxPackage -AllUsers 'Microsoft.MicrosoftEdge').PackageFamilyName\n\t\t\t$Path = CheckSetPath \"HKCU:\\SOFTWARE\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$AddPath\\MicrosoftEdge\\PhishingFilter\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'EnabledV9' -Type DWord -Value 0\n\t\t\tSet-ItemProperty -Path $Path -Name 'PreventOverride' -Type DWord -Value 0\n\t\t}\n\t}\n\n\tIf($LocationTracking -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Location Tracking...' -C 15 }\n\t} ElseIf($LocationTracking -eq 1) {\n\t\tDisplayOut 'Enabling Location Tracking...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}' -Name 'SensorPermissionState' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration' -Name 'Status' -Type DWord -Value 1\n\t} ElseIf($LocationTracking -eq 2) {\n\t\tDisplayOut 'Disabling Location Tracking...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}' -Name 'SensorPermissionState' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration' -Name 'Status' -Type DWord -Value 0\n\t}\n\n\tIf($Feedback -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Feedback...' -C 15 }\n\t} ElseIf($Feedback -eq 1) {\n\t\tDisplayOut 'Enabling Feedback...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules' -Name 'NumberOfSIUFInPeriod'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'DoNotShowFeedbackNotifications'\n\t\tEnable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClient' | Out-Null\n\t\tEnable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClientOnScenarioDownload' | Out-Null\n\t} ElseIf($Feedback -eq 2) {\n\t\tDisplayOut 'Disabling Feedback...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules'\n\t\tSet-ItemProperty -Path $Path -Name 'NumberOfSIUFInPeriod' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'DoNotShowFeedbackNotifications' -Type DWord -Value 1\n\t\tDisable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClient' | Out-Null \n\t\tDisable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClientOnScenarioDownload' | Out-Null \n\t}\n\n\tIf($AdvertisingID -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Advertising ID...' -C 15 }\n\t} ElseIf($AdvertisingID -eq 1) {\n\t\tDisplayOut 'Enabling Advertising ID...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo' -Name 'Enabled'\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Privacy'\n\t\tSet-ItemProperty -Path $Path -Name 'TailoredExperiencesWithDiagnosticDataEnabled' -Type DWord -Value 2\n\t} ElseIf($AdvertisingID -eq 2) {\n\t\tDisplayOut 'Disabling Advertising ID...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo'\n\t\tSet-ItemProperty -Path $Path -Name 'Enabled' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Privacy'\n\t\tSet-ItemProperty -Path $Path -Name 'TailoredExperiencesWithDiagnosticDataEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($Cortana -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cortana...' -C 15 }\n\t} ElseIf($Cortana -eq 1) {\n\t\tDisplayOut 'Enabling Cortana...' -C 11\n\t\t$Path = 'HKCU:\\SOFTWARE\\Microsoft\\InputPersonalization'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Personalization\\Settings' -Name 'AcceptedPrivacyPolicy'\n\t\tRemove-ItemProperty -Path \"$Path\\TrainedDataStore\" -Name 'HarvestContacts'\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tRemove-ItemProperty -Path $Path -Name 'AllowCortanaAboveLock'\n\t\tRemove-ItemProperty -Path $Path -Name 'ConnectedSearchUseWeb'\n\t\tRemove-ItemProperty -Path $Path -Name 'ConnectedSearchPrivacy'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWebSearch' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Preferences\\'\n\t\tSet-ItemProperty -Path $Path -Name 'VoiceActivationEnableAboveLockscreen' -Type DWord -Value 1\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\InputPersonalization' -Name 'AllowInputPersonalization'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCortanaButton\" -Type DWord -Value 0\n\t} ElseIf($Cortana -eq 2) {\n\t\tDisplayOut 'Disabling Cortana...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Personalization\\Settings'\n\t\tSet-ItemProperty -Path $Path -Name 'AcceptedPrivacyPolicy' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\InputPersonalization'\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path\\TrainedDataStore\"\n\t\tSet-ItemProperty -Path $Path -Name 'HarvestContacts' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowCortanaAboveLock' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'ConnectedSearchUseWeb' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'ConnectedSearchPrivacy' -Type DWord -Value 3\n\t\tRemove-ItemProperty -Path $Path -Name 'DisableWebSearch'\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Preferences\\'\n\t\tSet-ItemProperty -Path $Path -Name 'VoiceActivationEnableAboveLockscreen' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\InputPersonalization'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowInputPersonalization' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCortanaButton\" -Type DWord -Value 1\n\t}\n\n\tIf($CortanaSearch -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cortana Search...' -C 15 }\n\t} ElseIf($CortanaSearch -eq 1) {\n\t\tDisplayOut 'Enabling Cortana Search...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search' -Name 'AllowCortana'\n\t} ElseIf($CortanaSearch -eq 2) {\n\t\tDisplayOut 'Disabling Cortana Search...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowCortana' -Type DWord -Value 0\n\t}\n\n\tIf($ErrorReporting -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Error Reporting...' -C 15 }\n\t} ElseIf($ErrorReporting -eq 1) {\n\t\tDisplayOut 'Enabling Error Reporting...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting' -Name 'Disabled'\n\t} ElseIf($ErrorReporting -eq 2) {\n\t\tDisplayOut 'Disabling Error Reporting...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting' -Name 'Disabled' -Type DWord -Value 1\n\t}\n\n\tIf($AutoLoggerFile -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping AutoLogger...' -C 15 }\n\t} ElseIf($AutoLoggerFile -eq 1) {\n\t\tDisplayOut 'Unrestricting AutoLogger Directory...' -C 11\n\t\t$autoLoggerDir = \"$Env:PROGRAMDATA\\Microsoft\\Diagnosis\\ETLLogs\\AutoLogger\"\n\t\ticacls $autoLoggerDir /grant:r SYSTEM:`(OI`)`(CI`)F | Out-Null\n\t\t$Path = CheckSetPath 'HKLM:\\SYSTEM\\ControlSet001\\Control\\WMI\\AutoLogger\\AutoLogger-Diagtrack-Listener'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 1\n\t\t$Path += '\\{DD17FA14-CDA6-7191-9B61-37A28F7A10DA}'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 1\n\t} ElseIf($AutoLoggerFile -eq 2) {\n\t\tDisplayOut 'Removing AutoLogger File and Restricting Directory...' -C 12\n\t\t$autoLoggerDir = \"$Env:PROGRAMDATA\\Microsoft\\Diagnosis\\ETLLogs\\AutoLogger\"\n\t\tRemoveSetPath \"$autoLoggerDir\\AutoLogger-Diagtrack-Listener.etl\"\n\t\ticacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null\n\t\t$Path = CheckSetPath 'HKLM:\\SYSTEM\\ControlSet001\\Control\\WMI\\AutoLogger\\AutoLogger-Diagtrack-Listener'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 0\n\t\t$Path = CheckSetPath \"$Path\\{DD17FA14-CDA6-7191-9B61-37A28F7A10DA}\"\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 0\n\t}\n\n\tIf($DiagTrack -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Diagnostics Tracking...' -C 15 }\n\t} ElseIf($DiagTrack -eq 1) {\n\t\tDisplayOut 'Enabling and Starting Diagnostics Tracking Service...' -C 11\n\t\tSet-Service 'DiagTrack' -StartupType Automatic\n\t\tStart-Service 'DiagTrack'\n\t} ElseIf($DiagTrack -eq 2) {\n\t\tDisplayOut 'Stopping and Disabling Diagnostics Tracking Service...' -C 12\n\t\tStop-Service 'DiagTrack'\n\t\tSet-Service 'DiagTrack' -StartupType Disabled\n\t}\n\n\tIf($WAPPush -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping WAP Push...' -C 15 }\n\t} ElseIf($WAPPush -eq 1) {\n\t\tDisplayOut 'Enabling and Starting WAP Push Service...' -C 11\n\t\tSet-Service 'dmwappushservice' -StartupType Automatic\n\t\tStart-Service 'dmwappushservice'\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\dmwappushservice' -Name 'DelayedAutoStart' -Type DWord -Value 1\n\t} ElseIf($WAPPush -eq 2) {\n\t\tDisplayOut 'Disabling WAP Push Service...' -C 12\n\t\tStop-Service 'dmwappushservice'\n\t\tSet-Service 'dmwappushservice' -StartupType Disabled\n\t}\n\n\tIf($AppAutoDownload -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping App Auto Download...' -C 15 }\n\t} ElseIf($AppAutoDownload -eq 1) {\n\t\tDisplayOut 'Enabling App Auto Download...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsStore\\WindowsUpdate' -Name 'AutoDownload' -Type DWord -Value 0\n\t\tRemove-ItemProperty  -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent' -Name 'DisableWindowsConsumerFeatures'\n\t} ElseIf($AppAutoDownload -eq 2) {\n\t\tDisplayOut 'Disabling App Auto Download...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsStore\\WindowsUpdate'\n\t\tSet-ItemProperty -Path $Path -Name 'AutoDownload' -Type DWord -Value 2\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWindowsConsumerFeatures' -Type DWord -Value 1\n\t\tIf($Win10Ver -le 1803) {\n\t\t\t$key = Get-ChildItem -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\" -Recurse | Where-Object { $_ -like \"*windows.data.placeholdertilecollection\\Current\" }\n\t\t\t$data = (Get-ItemProperty -Path $key.PSPath -Name \"Data\").Data[0..15]\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $data\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tBoxItem 'Windows Update Settings'\n\tIf($UpdateMSProducts -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Updates for other Microsoft products...' -C 15 }\n\t} ElseIf($UpdateMSProducts -eq 1) {\n\t\tDisplayOut 'Enabling Updates for other Microsoft products...' -C 11\n\t\t(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2(\"7971f918-a847-4430-9279-4a52d1efe18d\", 7, \"\") | Out-Null\n\t} ElseIf($UpdateMSProducts -eq 2) {\n\t\tDisplayOut 'Disabling Updates for other Microsoft products...' -C 12\n\t\t(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService(\"7971f918-a847-4430-9279-4a52d1efe18d\") | Out-Null\n\t}\n\n\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate'\n\tIf($CheckForWinUpdate -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Check for Windows Update...' -C 15 }\n\t} ElseIf($CheckForWinUpdate -eq 1) {\n\t\tDisplayOut 'Enabling Check for Windows Update...' -C 11\n\t\tRemove-ItemProperty -Path $Path -Name 'SetDisableUXWUAccess' -Type DWord -Value 0\n\t} ElseIf($CheckForWinUpdate -eq 2) {\n\t\tDisplayOut 'Disabling Check for Windows Update...' -C 12\n\t\tNew-ItemProperty -Path $Path -Name 'SetDisableUXWUAccess' -Type DWord -Value 1\n\t}\n\n\tIf($WinUpdateType -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update Check Type...' -C 15 }\n\t} ElseIf($WinUpdateType -In 1..4) {\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tIf($WinUpdateType -eq 1) {\n\t\t\tDisplayOut 'Notify for windows update download and notify for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 2\n\t\t} ElseIf($WinUpdateType -eq 2) {\n\t\t\tDisplayOut 'Auto Download for windows update download and notify for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 3\n\t\t} ElseIf($WinUpdateType -eq 3) {\n\t\t\tDisplayOut 'Auto Download for windows update download and schedule for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 4\n\t\t} ElseIf($WinUpdateType -eq 4) {\n\t\t\tDisplayOut 'Windows update allow local admin to choose setting...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 5\n\t\t}\n\t}\n\n\tIf($WinUpdateDownload -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update P2P...' -C 15 }\n\t} ElseIf($WinUpdateDownload -eq 1) {\n\t\tDisplayOut 'Unrestricting Windows Update P2P to Internet...' -C 14\n\t\t$Path = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\tRemove-ItemProperty -Path \"HKLM:\\$Path\\Config\" -Name 'DODownloadMode'\n\t\tRemove-ItemProperty -Path \"HKCU:\\$Path\" -Name 'SystemSettingsDownloadMode'\n\t} ElseIf($WinUpdateDownload -eq 2) {\n\t\tDisplayOut 'Restricting Windows Update P2P only to local network...' -C 14\n\t\t$Path1 = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\t$Path = CheckSetPath \"HKCU:\\$Path1\"\n\t\tSet-ItemProperty -Path $Path -Name 'SystemSettingsDownloadMode' -Type DWord -Value 3\n\t\tIf($Win10Ver -eq 1507) {\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\\Config\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 1\n\t\t} ElseIf($Win10Ver -le 1607) {\n\t\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization'\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 1\n\t\t} Else {\n\t\t\tRemove-ItemProperty -Path \"HKLM:\\$Path1\" -Name \"DODownloadMode\"\n\t\t}\n\t} ElseIf($WinUpdateDownload -eq 3) {\n\t\tDisplayOut 'Disabling Windows Update P2P...' -C 12\n\t\t$Path1 = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\t$Path = CheckSetPath \"HKCU:\\$Path1\"\n\t\tSet-ItemProperty -Path $Path -Name 'SystemSettingsDownloadMode' -Type DWord -Value 3\n\t\tIf($Win10Ver -eq 1507){\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\\Config\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 0\n\t\t} Else {\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 100\n\t\t}\n\t}\n\n\tIf($RestartOnUpdate -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update Automatic Restart...' -C 15 }\n\t} ElseIf($RestartOnUpdate -eq 1) {\n\t\tDisplayOut 'Enabling Windows Update Automatic Restart...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings' -Name 'UxOption' -Type DWord -Value 0\n\t\t$Path = 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tRemove-ItemProperty -Path $Path -Name 'NoAutoRebootWithLoggedOnUsers'\n\t\tRemove-ItemProperty -Path $Path -Name 'AUPowerManagement'\n\t} ElseIf($RestartOnUpdate -eq 2) {\n\t\tDisplayOut 'Disabling Windows Update Automatic Restart...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings' -Name 'UxOption' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tSet-ItemProperty -Path $Path -Name 'NoAutoRebootWithLoggedOnUsers' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'AUPowerManagement' -Type DWord -Value 0\n\t}\n\n\tIf($UpdateMSRT -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Malicious Software Removal Tool Update...' -C 15 }\n\t} ElseIf($UpdateMSRT -eq 1) {\n\t\tDisplayOut 'Enabling Malicious Software Removal Tool Update...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\MRT' -Name 'DontOfferThroughWUAU'\n\t} ElseIf($UpdateMSRT -eq 2) {\n\t\tDisplayOut 'Disabling Malicious Software Removal Tool Update...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\MRT'\n\t\tSet-ItemProperty -Path $Path -Name 'DontOfferThroughWUAU' -Type DWord -Value 1\n\t}\n\n\tIf($UpdateDriver -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Driver Update Through Windows Update...' -C 15 }\n\t} ElseIf($UpdateDriver -eq 1) {\n\t\tDisplayOut 'Enabling Driver Update Through Windows Update...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching' -Name 'SearchOrderConfig'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate' -Name 'ExcludeWUDriversInQualityUpdate'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata' -Name 'PreventDeviceMetadataFromNetwork'\n\t} ElseIf($UpdateDriver -eq 2) {\n\t\tDisplayOut 'Disabling Driver Update Through Windows Update...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching' -Name 'SearchOrderConfig' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate'\n\t\tSet-ItemProperty -Path $Path -Name 'ExcludeWUDriversInQualityUpdate' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata'\n\t\tSet-ItemProperty -Path $Path -Name 'PreventDeviceMetadataFromNetwork' -Type DWord -Value 1\n\t}\n\n\tIf($UpdateAvailablePopup -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Update Available Popup...' -C 15 }\n\t} ElseIf($UpdateAvailablePopup -eq 1) {\n\t\tDisplayOut 'Enabling Update Available Popup...' -C 11\n\t\tForEach($File In $musnotification_files){\n\t\t\tICACLS $File /remove:d '\"Everyone\"' | out-null\n\t\t\tICACLS $File /grant ('Everyone' + ':(OI)(CI)F') | out-null\n\t\t\tICACLS $File /setowner 'NT SERVICE\\TrustedInstaller'\n\t\t\tICACLS $File /remove:g '\"Everyone\"' | out-null\n\t\t}\n\t} ElseIf($UpdateAvailablePopup -eq 2) {\n\t\tDisplayOut 'Disabling Update Available Popup...' -C 12\n\t\tForEach($File In $musnotification_files){\n\t\t\tTakeown /f $File | out-null\n\t\t\tICACLS $File /deny '\"Everyone\":(F)' | out-null\n\t\t}\n\t}\n\n\tBoxItem 'Service Tweaks'\n\tIf($UAC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping UAC Level...' -C 15 }\n\t} ElseIf($UAC -eq 1) {\n\t\tDisplayOut 'Lowering UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 0\n\t} ElseIf($UAC -eq 2) {\n\t\tDisplayOut 'Default UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 5\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 1\n\t} ElseIf($UAC -eq 3) {\n\t\tDisplayOut 'Raising UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 2\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 1\n\t}\n\n\tIf($SharingMappedDrives -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sharing Mapped Drives between Users...' -C 15 }\n\t} ElseIf($SharingMappedDrives -eq 1) {\n\t\tDisplayOut 'Enabling Sharing Mapped Drives between Users...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'EnableLinkedConnections' -Type DWord -Value 1\n\t} ElseIf($SharingMappedDrives -eq 2) {\n\t\tDisplayOut 'Disabling Sharing Mapped Drives between Users...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'EnableLinkedConnections'\n\t}\n\n\tIf($AdminShares -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hidden Administrative Shares...' -C 15 }\n\t} ElseIf($AdminShares -eq 1) {\n\t\tDisplayOut 'Enabling Hidden Administrative Shares...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters' -Name 'AutoShareWks'\n\t} ElseIf($AdminShares -eq 2) {\n\t\tDisplayOut 'Disabling Hidden Administrative Shares...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters' -Name 'AutoShareWks' -Type DWord -Value 0\n\t}\n\n\tIf($Firewall -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Firewall...' -C 15 }\n\t} ElseIf($Firewall -eq 1) {\n\t\tDisplayOut 'Enabling Firewall...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile' -Name 'EnableFirewall'\n\t} ElseIf($Firewall -eq 2) {\n\t\tDisplayOut 'Disabling Firewall...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile'\n\t\tSet-ItemProperty -Path $Path -Name 'EnableFirewall' -Type DWord -Value 0\n\t}\n\n\tIf($WinDefender -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Defender...' -C 15 }\n\t} ElseIf($WinDefender -eq 1) {\n\t\tDisplayOut 'Enabling Windows Defender...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender' -Name 'DisableAntiSpyware'\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'\n\t\tIf($Win10Ver -lt 1703){ $RegName = 'WindowsDefender' } Else{ $RegName = 'SecurityHealth' }\n\t\tSet-ItemProperty -Path $Path -Name $RegName -Type ExpandString -Value \"`\"%ProgramFiles%\\Windows Defender\\MSASCuiL.exe`\"\"\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Spynet'\n\t} ElseIf($WinDefender -eq 2) {\n\t\tDisplayOut 'Disabling Windows Defender...' -C 12\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'\n\t\tIf($Win10Ver -lt 1703){ $RegName = 'WindowsDefender' } Else{ $RegName = 'SecurityHealth' }\n\t\tRemove-ItemProperty -Path $Path -Name $RegName\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableAntiSpyware' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path\\Spynet\"\n\t\tSet-ItemProperty -Path $Path -Name 'SpynetReporting' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubmitSamplesConsent' -Type DWord -Value 2\n\t}\n\n\tIf($HomeGroups -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Home Groups Services...' -C 15 }\n\t} ElseIf($HomeGroups -eq 1) {\n\t\tDisplayOut 'Enabling Home Groups Services...' -C 11\n\t\tSet-Service 'HomeGroupListener' -StartupType Manual\n\t\tSet-Service 'HomeGroupProvider' -StartupType Manual\n\t\tStart-Service 'HomeGroupProvider'\n\t} ElseIf($HomeGroups -eq 2) {\n\t\tDisplayOut 'Disabling Home Groups Services...' -C 12\n\t\tStop-Service 'HomeGroupListener'\n\t\tSet-Service 'HomeGroupListener' -StartupType Disabled\n\t\tStop-Service 'HomeGroupProvider'\n\t\tSet-Service 'HomeGroupProvider' -StartupType Disabled\n\t}\n\n\tIf($RemoteAssistance -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote Assistance...' -C 15 }\n\t} ElseIf($RemoteAssistance -eq 1) {\n\t\tDisplayOut 'Enabling Remote Assistance...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance' -Name 'fAllowToGetHelp' -Type DWord -Value 1\n\t} ElseIf($RemoteAssistance -eq 2) {\n\t\tDisplayOut 'Disabling Remote Assistance...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance' -Name 'fAllowToGetHelp' -Type DWord -Value 0\n\t}\n\n\tIf($RemoteDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote Desktop...' -C 15 }\n\t} ElseIf($RemoteDesktop -eq 1) {\n\t\tDisplayOut 'Enabling Remote Desktop w/o Network Level Authentication...' -C 11\n\t\t$Path = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server'\n\t\tSet-ItemProperty -Path $Path -Name 'fDenyTSConnections' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\WinStations\\RDP-Tcp\" -Name 'UserAuthentication' -Type DWord -Value 0\n\t} ElseIf($RemoteDesktop -eq 2) {\n\t\tDisplayOut 'Disabling Remote Desktop...' -C 12\n\t\t$Path = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server'\n\t\tSet-ItemProperty -Path $Path -Name 'fDenyTSConnections' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\WinStations\\RDP-Tcp\" -Name 'UserAuthentication' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Context Menu Items'\n\tIf($CastToDevice -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cast to Device Context item...' -C 15 }\n\t} ElseIf($CastToDevice -eq 1) {\n\t\tDisplayOut 'Enabling Cast to Device Context item...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked' -Name '{7AD84985-87B4-4a16-BE58-8B72A5B390F7}'\n\t} ElseIf($CastToDevice -eq 2) {\n\t\tDisplayOut 'Disabling Cast to Device Context item...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked'\n\t\tSet-ItemProperty -Path $Path -Name '{7AD84985-87B4-4a16-BE58-8B72A5B390F7}' -Type String -Value 'Play to Menu'\n\t}\n\n\tIf($PreviousVersions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Previous Versions Context item...' -C 15 }\n\t} ElseIf($PreviousVersions -eq 1) {\n\t\tDisplayOut 'Enabling Previous Versions Context item...' -C 11\n\t\tNew-Item -Path 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\CLSID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t} ElseIf($PreviousVersions -eq 2) {\n\t\tDisplayOut 'Disabling Previous Versions Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\CLSID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t}\n\n\tIf($IncludeinLibrary -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Include in Library Context item...' -C 15 }\n\t} ElseIf($IncludeinLibrary -eq 1) {\n\t\tDisplayOut 'Enabling Include in Library Context item...' -C 11\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\ShellEx\\ContextMenuHandlers\\Library Location' -Name '(Default)' -Type String -Value '{3dad6c5d-2167-4cae-9914-f99e41c12cfa}'\n\t} ElseIf($IncludeinLibrary -eq 2) {\n\t\tDisplayOut 'Disabling Include in Library...' -C 12\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\ShellEx\\ContextMenuHandlers\\Library Location' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($PinToStart -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pin To Start Context item...' -C 15 }\n\t} ElseIf($PinToStart -eq 1) {\n\t\tDisplayOut 'Enabling Pin To Start Context item...' -C 11\n\t\tNew-Item -Path 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Force | Out-Null\n\t\tNew-Item -Path 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Force | Out-Null\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Name '(Default)' -Type String -Value 'Taskband Pin'\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Name '(Default)' -Type String -Value 'Start Menu Pin'\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\exefile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Microsoft.Website\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\mscfile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t} ElseIf($PinToStart -eq 2) {\n\t\tDisplayOut 'Disabling Pin To Start Context item...' -C 12\n\t\tRemove-Item -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Force\n\t\tRemove-Item -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Force\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\exefile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Microsoft.Website\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\mscfile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($PinToQuickAccess -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pin To Quick Access Context item...' -C 15 }\n\t} ElseIf($PinToQuickAccess -eq 1) {\n\t\tDisplayOut 'Enabling Pin To Quick Access Context item...' -C 11\n\t\t$Path = CheckSetPath 'HKCR:\\Folder\\shell\\pintohome'\n\t\tNew-ItemProperty -Path $Path -Name 'MUIVerb' -Type String -Value '@shell32.dll,-51377'\n\t\tNew-ItemProperty -Path $Path -Name 'AppliesTo' -Type String -Value 'System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True'\n\t\t$Path = CheckSetPath  \"$Path\\command\"\n\t\tNew-ItemProperty -Path \"$Path\" -Name 'DelegateExecute' -Type String -Value '{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}'\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Classes\\Folder\\shell\\pintohome'\n\t\tNew-ItemProperty -Path $Path -Name 'MUIVerb' -Type String -Value '@shell32.dll,-51377'\n\t\tNew-ItemProperty -Path $Path -Name 'AppliesTo' -Type String -Value 'System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True'\n\t\t$Path = CheckSetPath  \"$Path\\command\"\n\t\tNew-ItemProperty -Path \"$Path\" -Name 'DelegateExecute' -Type String -Value '{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}'\n\t} ElseIf($PinToQuickAccess -eq 2) {\n\t\tDisplayOut 'Disabling Pin To Quick Access Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Folder\\shell\\pintohome'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Classes\\Folder\\shell\\pintohome'\n\t}\n\n\tIf($ShareWith -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Share With/Share Context item...' -C 15 }\n\t} ElseIf($ShareWith -eq 1) {\n\t\tDisplayOut 'Enabling Share With/Share Context item...' -C 11\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\CopyHookHandlers\\Sharing' -Name '(Default)' -Type String -Value '{40dd6e20-7c17-11ce-a804-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\PropertySheetHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\Background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\LibraryFolder\\background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\ModernSharing' -Name '(Default)' -Type String -Value '{e2bf9676-5f8f-435c-97eb-11607a5bedf7}'\n\t}  ElseIf($ShareWith -eq 2) {\n\t\tDisplayOut 'Disabling Share/Share With...' -C 12\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\CopyHookHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\PropertySheetHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\Background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\LibraryFolder\\background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\ModernSharing' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($SendTo -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Send To Context item...' -C 15 }\n\t} ElseIf($SendTo -eq 1) {\n\t\tDisplayOut 'Enabling Send To Context item...' -C 11\n\t\t$Path = CheckSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\SendTo'\n\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type String -Value '{7BA4C740-9E81-11CF-99D3-00AA004AE837}' | Out-Null\n\t} ElseIf($SendTo -eq 2) {\n\t\tDisplayOut 'Disabling Send To Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\SendTo'\n\t}\n\n\tBoxItem 'Task Bar Items'\n\tIf($BatteryUIBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Battery UI Bar...' -C 15 }\n\t} ElseIf($BatteryUIBar -eq 1) {\n\t\tDisplayOut 'Enabling New Battery UI Bar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell' -Name 'UseWin32BatteryFlyout'\n\t} ElseIf($BatteryUIBar -eq 2) {\n\t\tDisplayOut 'Enabling Old Battery UI Bar...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell'\n\t\tSet-ItemProperty -Path $Path -Name 'UseWin32BatteryFlyout' -Type DWord -Value 1\n\t}\n\n\tIf($ClockUIBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Clock UI Bar...' -C 15 }\n\t} ElseIf($ClockUIBar -eq 1) {\n\t\tDisplayOut 'Enabling New Clock UI Bar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell' -Name 'UseWin32TrayClockExperience'\n\t} ElseIf($ClockUIBar -eq 2) {\n\t\tDisplayOut 'Enabling Old Clock UI Bar...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell'\n\t\tSet-ItemProperty -Path $Path -Name 'UseWin32TrayClockExperience' -Type DWord -Value 1\n\t}\n\n\tIf($VolumeControlBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Volume Control Bar...' -C 15 }\n\t} ElseIf($VolumeControlBar -eq 1) {\n\t\tDisplayOut 'Enabling New Volume Control Bar (Horizontal)...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\MTCUVC' -Name 'EnableMtcUvc'\n\t} ElseIf($VolumeControlBar -eq 2) {\n\t\tDisplayOut 'Enabling Classic Volume Control Bar (Vertical)...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\MTCUVC'\n\t\tSet-ItemProperty -Path $Path -Name 'EnableMtcUvc' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarSearchBox -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Search box / button...' -C 15 }\n\t} ElseIf($TaskbarSearchBox -eq 1) {\n\t\tDisplayOut 'Showing Taskbar Search box / button...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'SearchboxTaskbarMode' -Type DWord -Value 1\n\t} ElseIf($TaskbarSearchBox -eq 2) {\n\t\tDisplayOut 'Hiding Taskbar Search box / button...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'SearchboxTaskbarMode' -Type DWord -Value 0\n\t}\n\n\tIf($TaskViewButton -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Task View button...' -C 15 }\n\t} ElseIf($TaskViewButton -eq 1) {\n\t\tDisplayOut 'Showing Task View button...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowTaskViewButton'\n\t} ElseIf($TaskViewButton -eq 2) {\n\t\tDisplayOut 'Hiding Task View button...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowTaskViewButton' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarIconSize -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Icon Size in Taskbar...' -C 15 }\n\t} ElseIf($TaskbarIconSize -eq 1) {\n\t\tDisplayOut 'Showing Normal Icon Size in Taskbar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarSmallIcons'\n\t} ElseIf($TaskbarIconSize -eq 2) {\n\t\tDisplayOut 'Showing Smaller Icons in Taskbar...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarSmallIcons' -Type DWord -Value 1\n\t}\n\n\tIf($TaskbarGrouping -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Item Grouping...' -C 15 }\n\t} ElseIf($TaskbarGrouping -eq 1) {\n\t\tDisplayOut 'Never Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 2\n\t} ElseIf($TaskbarGrouping -eq 2) {\n\t\tDisplayOut 'Always Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 0\n\t} ElseIf($TaskbarGrouping -eq 3) {\n\t\tDisplayOut 'When Needed Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 1\n\t}\n\n\tIf($TrayIcons -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Tray icons...' -C 15 }\n\t} ElseIf($TrayIcons -eq 1) {\n\t\tDisplayOut 'Hiding Tray Icons...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 1\n\t} ElseIf($TrayIcons -eq 2) {\n\t\tDisplayOut 'Showing All Tray Icons...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 0\n\t}\n\n\tIf($SecondsInClock -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Seconds in Taskbar Clock...' -C 15 }\n\t} ElseIf($SecondsInClock -eq 1) {\n\t\tDisplayOut 'Showing Seconds in Taskbar Clock...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSecondsInSystemClock' -Type DWord -Value 1\n\t} ElseIf($SecondsInClock -eq 2) {\n\t\tDisplayOut 'Hiding Seconds in Taskbar Clock...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSecondsInSystemClock' -Type DWord -Value 0\n\t}\n\n\tIf($LastActiveClick -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Last Active Click...' -C 15 }\n\t} ElseIf($LastActiveClick -eq 1) {\n\t\tDisplayOut 'Enabling Last Active Click...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LastActiveClick' -Type DWord -Value 1\n\t} ElseIf($LastActiveClick -eq 2) {\n\t\tDisplayOut 'Disabling Last Active Click...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LastActiveClick' -Type DWord -Value 0\n\t}\n\n\tIf($TaskBarOnMultiDisplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar on Multiple Displays...' -C 15 }\n\t} ElseIf($TaskBarOnMultiDisplay -eq 1) {\n\t\tDisplayOut 'Showing Taskbar on Multiple Displays...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarEnabled' -Type DWord -Value 1\n\t} ElseIf($TaskBarOnMultiDisplay -eq 2) {\n\t\tDisplayOut 'Hiding Taskbar on Multiple Displays...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarButtOnDisplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Buttons on Multiple Displays...' -C 15 }\n\t} ElseIf($TaskbarButtOnDisplay -eq 1) {\n\t\tDisplayOut 'Showing Taskbar Buttons on All Taskbars...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 0\n\t} ElseIf($TaskbarButtOnDisplay -eq 2) {\n\t\tDisplayOut 'Showing Taskbar Buttons on Taskbar where Window is open...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 2\n\t} ElseIf($TaskbarButtOnDisplay -eq 3) {\n\t\tDisplayOut 'Showing Taskbar Buttons on Main Taskbar and where Window is open...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Star Menu Items'\n\tIf($StartMenuWebSearch -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Bing Search in Start Menu...' -C 15 }\n\t} ElseIf($StartMenuWebSearch -eq 1) {\n\t\tDisplayOut 'Enabling Bing Search in Start Menu...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'BingSearchEnabled'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search' -Name 'DisableWebSearch'\n\t} ElseIf($StartMenuWebSearch -eq 2) {\n\t\tDisplayOut 'Disabling Bing Search in Start Menu...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'BingSearchEnabled' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWebSearch' -Type DWord -Value 1\n\t}\n\n\tIf($StartSuggestions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Start Menu Suggestions...' -C 15 }\n\t} ElseIf($StartSuggestions -eq 1) {\n\t\tDisplayOut 'Enabling Start Menu Suggestions...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager'\n\t\tSet-ItemProperty -Path $Path -Name 'ContentDeliveryAllowed' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'OemPreInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEverEnabled' -Type DWord -Value 1\n\t \tSet-ItemProperty -Path $Path -Name 'SilentInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SystemPaneSuggestionsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackProgs' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-314559Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-310093Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338387Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338388Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338389Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338393Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353694Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353696Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-358398Enabled' -Type DWord -Value 1\n\t} ElseIf($StartSuggestions -eq 2) {\n\t\tDisplayOut 'Disabling Start Menu Suggestions...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager'\n\t\tSet-ItemProperty -Path $Path -Name 'ContentDeliveryAllowed' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'OemPreInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEverEnabled' -Type DWord -Value 0\n\t \tSet-ItemProperty -Path $Path -Name 'SilentInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SystemPaneSuggestionsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackProgs' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-314559Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-310093Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338387Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338388Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338389Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338393Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353694Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353696Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-358398Enabled' -Type DWord -Value 0\n\t\tIf($Win10Ver -ge 1803) {\n\t\t\t$key = Get-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*windows.data.placeholdertilecollection\\Current\"\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $key.Data[0..15]\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tIf($MostUsedAppStartMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Most used Apps in Start Menu...' -C 15 }\n\t} ElseIf($MostUsedAppStartMenu -eq 1) {\n\t\tDisplayOut 'Showing Most used Apps in Start Menu...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Start_TrackProgs' -Type DWord -Value 1\n\t} ElseIf($MostUsedAppStartMenu -eq 2) {\n\t\tDisplayOut 'Hiding Most used Apps in Start Menu...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Start_TrackProgs' -Type DWord -Value 0\n\t}\n\n\tIf($RecentItemsFrequent -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recent Items and Frequent Places...' -C 15 }\n\t} ElseIf($RecentItemsFrequent -eq 1) {\n\t\tDisplayOut 'Enabling Recent Items and Frequent Places...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackDocs' -Type DWord -Value 1\n\t} ElseIf($RecentItemsFrequent -eq 2) {\n\t\tDisplayOut 'Disabling Recent Items and Frequent Places...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackDocs' -Type DWord -Value 0\n\t}\n\n\tBoxItem 'Explorer Items'\n\tIf($AccessKeyPrmpt -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Accessibility Keys Prompts...' -C 15 }\n\t} ElseIf($AccessKeyPrmpt -eq 1) {\n\t\tDisplayOut 'Enabling Accessibility Keys Prompts...' -C 11\n\t\t$Path = 'HKCU:\\Control Panel\\Accessibility\\'\n\t\tSet-ItemProperty -Path \"$Path\\StickyKeys\" -Name 'Flags' -Type String -Value '510'\n\t\tSet-ItemProperty -Path \"$Path\\ToggleKeys\" -Name 'Flags' -Type String -Value '62'\n\t\tSet-ItemProperty -Path \"$Path\\Keyboard Response\" -Name 'Flags' -Type String -Value '126'\n\t} ElseIf($AccessKeyPrmpt -eq 2) {\n\t\tDisplayOut 'Disabling Accessibility Keys Prompts...' -C 12\n\t\t$Path = 'HKCU:\\Control Panel\\Accessibility\\'\n\t\tSet-ItemProperty -Path \"$Path\\StickyKeys\" -Name 'Flags' -Type String -Value '506'\n\t\tSet-ItemProperty -Path \"$Path\\ToggleKeys\" -Name 'Flags' -Type String -Value '58'\n\t\tSet-ItemProperty -Path \"$Path\\Keyboard Response\" -Name 'Flags' -Type String -Value '122'\n\t}\n\n\tIf($F1HelpKey -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping F1 Help key...' -C 15 }\n\t} ElseIf($F1HelpKey -eq 1) {\n\t\tDisplayOut 'Enabling F1 Help key...' -C 11\n\t\tRemoveSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0'\n\t} ElseIf($F1HelpKey -eq 2) {\n\t\tDisplayOut 'Disabling F1 Help key...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win32'\n\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type 'String' -Value ''\n\t\tIf($OSBit -eq 64) {\n\t\t\t$Path = CheckSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win64'\n\t\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type 'String' -Value ''\n\t\t}\n\t}\n\n\tIf($PidInTitleBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Process ID on Title Bar...' -C 15 }\n\t} ElseIf($PidInTitleBar -eq 1) {\n\t\tDisplayOut 'Showing Process ID on Title Bar...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowPidInTitle' -Type DWord -Value 1\n\t} ElseIf($PidInTitleBar -eq 2) {\n\t\tDisplayOut 'Hiding Process ID on Title Bar...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowPidInTitle'\n\t}\n\n\tIf($AeroSnap -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Aero Snap...' -C 15 }\n\t} ElseIf($AeroSnap -eq 1) {\n\t\tDisplayOut 'Enabling Aero Snap...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'WindowArrangementActive' -Type String -Value 1\n\t} ElseIf($AeroSnap -eq 2) {\n\t\tDisplayOut 'Disabling Aero Snap...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'WindowArrangementActive' -Type String -Value 0\n\t}\n\n\tIf($AeroShake -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Aero Shake...' -C 15 }\n\t} ElseIf($AeroShake -eq 1) {\n\t\tDisplayOut 'Enabling Aero Shake...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer' -Name 'NoWindowMinimizingShortcuts'\n\t} ElseIf($AeroShake -eq 2) {\n\t\tDisplayOut 'Disabling Aero Shake...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoWindowMinimizingShortcuts' -Type DWord -Value 1\n\t}\n\n\tIf($KnownExtensions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Known File Extensions...' -C 15 }\n\t} ElseIf($KnownExtensions -eq 1) {\n\t\tDisplayOut 'Showing Known File Extensions...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'HideFileExt' -Type DWord -Value 0\n\t} ElseIf($KnownExtensions -eq 2) {\n\t\tDisplayOut 'Hiding Known File Extensions...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'HideFileExt' -Type DWord -Value 1\n\t}\n\n\tIf($HiddenFiles -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hidden Files...' -C 15 }\n\t} ElseIf($HiddenFiles -eq 1) {\n\t\tDisplayOut 'Showing Hidden Files...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Hidden' -Type DWord -Value 1\n\t} ElseIf($HiddenFiles -eq 2) {\n\t\tDisplayOut 'Hiding Hidden Files...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Hidden' -Type DWord -Value 2\n\t}\n\n\tIf($SystemFiles -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping System Files...' -C 15 }\n\t} ElseIf($SystemFiles -eq 1) {\n\t\tDisplayOut 'Showing System Files...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSuperHidden' -Type DWord -Value 1\n\t} ElseIf($SystemFiles -eq 2) {\n\t\tDisplayOut 'Hiding System fFiles...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSuperHidden' -Type DWord -Value 0\n\t}\n\n\tIf($ExplorerOpenLoc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Default Explorer view to Quick Access...' -C 15 }\n\t} ElseIf($ExplorerOpenLoc -eq 1) {\n\t\tDisplayOut 'Changing Default Explorer view to Quick Access...' -C 14\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LaunchTo'\n\t} ElseIf($ExplorerOpenLoc -eq 2) {\n\t\tDisplayOut 'Changing Default Explorer view to This PC...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LaunchTo' -Type DWord -Value 1\n\t}\n\n\tIf($RecentFileQikAcc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recent Files in Quick Access...' -C 15 }\n\t} ElseIf($RecentFileQikAcc -eq 1) {\n\t\tDisplayOut 'Showing Recent Files in Quick Access...' -C 11\n\t\t$Path = 'Microsoft\\Windows\\CurrentVersion\\Explorer'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\$Path\" -Name 'ShowRecent' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"HKLM:\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\" -Name '(Default)' -Type String -Value 'Recent Items Instance Folder'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\" -Name '(Default)' -Type String -Value 'Recent Items Instance Folder' }\n\t} ElseIf($RecentFileQikAcc -eq 2) {\n\t\tDisplayOut 'Hiding Recent Files in Quick Access...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowRecent' -Type DWord -Value 0\n\t} ElseIf($RecentFileQikAcc -eq 3) {\n\t\tDisplayOut 'Removing Recent Files in Quick Access...' -C 15\n\t\t$Path = 'Microsoft\\Windows\\CurrentVersion\\Explorer'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\$Path\" -Name 'ShowRecent' -Type DWord -Value 0\n\t\tRemoveSetPath \"HKLM:\\SOFTWARE\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\"\n\t\tRemoveSetPath \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\"\n\t}\n\n\tIf($FrequentFoldersQikAcc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Frequent Folders in Quick Access...' -C 15 }\n\t} ElseIf($FrequentFoldersQikAcc -eq 1) {\n\t\tDisplayOut 'Showing Frequent Folders in Quick Access...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowFrequent' -Type DWord -Value 1\n\t} ElseIf($FrequentFoldersQikAcc -eq 2) {\n\t\tDisplayOut 'Hiding Frequent Folders in Quick Access...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowFrequent' -Type DWord -Value 0\n\t}\n\n\tIf($WinContentWhileDrag -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Window Content while Dragging...' -C 15 }\n\t} ElseIf($WinContentWhileDrag -eq 1) {\n\t\tDisplayOut 'Showing Window Content while Dragging...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'DragFullWindows' -Type DWord -Value 1\n\t} ElseIf($WinContentWhileDrag -eq 2) {\n\t\tDisplayOut 'Hiding Window Content while Dragging...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'DragFullWindows' -Type DWord -Value 0\n\t}\n\n\tIf($Autoplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Autoplay...' -C 15 }\n\t} ElseIf($Autoplay -eq 1) {\n\t\tDisplayOut 'Enabling Autoplay...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers' -Name 'DisableAutoplay' -Type DWord -Value 0\n\t} ElseIf($Autoplay -eq 2) {\n\t\tDisplayOut 'Disabling Autoplay...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers' -Name 'DisableAutoplay' -Type DWord -Value 1\n\t}\n\n\tIf($Autorun -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Autorun for all Drives...' -C 15 }\n\t} ElseIf($Autorun -eq 1) {\n\t\tDisplayOut 'Enabling Autorun for all Drives...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer' -Name 'NoDriveTypeAutoRun'\n\t} ElseIf($Autorun -eq 2) {\n\t\tDisplayOut 'Disabling Autorun for all Drives...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoDriveTypeAutoRun' -Type DWord -Value 255\n\t}\n\n\tIf($StoreOpenWith -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Search Windows Store for Unknown Extensions...' -C 15 }\n\t} ElseIf($StoreOpenWith -eq 1) {\n\t\tDisplayOut 'Enabling Search Windows Store for Unknown Extensions...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'NoUseStoreOpenWith'\n\t} ElseIf($StoreOpenWith -eq 2) {\n\t\tDisplayOut 'Disabling Search Windows Store for Unknown Extensions...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoUseStoreOpenWith' -Type DWord -Value 1\n\t}\n\n\tIf($WinXPowerShell -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Win+X PowerShell to Command Prompt...' -C 15 }\n\t} ElseIf($WinXPowerShell -eq 1) {\n\t\tDisplayOut 'Changing Win+X Command Prompt to PowerShell...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'DontUsePowerShellOnWinX' -Type DWord -Value 0\n\t} ElseIf($WinXPowerShell -eq 2) {\n\t\tDisplayOut 'Changing Win+X PowerShell to Command Prompt...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'DontUsePowerShellOnWinX' -Type DWord -Value 1\n\t}\n\n\tIf($TaskManagerDetails -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Task Manager Details...' -C 15 }\n\t} ElseIf($TaskManagerDetails -eq 1) {\n\t\tDisplayOut 'Attempting to Show Task Manager Details...' -C 11\n\t\t$Path =  'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\t$Taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru\n\t\t$timeout = 30000\n\t\t$sleep = 100\n\t\t$Path =  'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\tDo {\n\t\t\tStart-Sleep -Milliseconds $sleep\n\t\t\t$timeout -= $sleep\n\t\t\t$TaskManKey = Get-ItemProperty -Path $Path -Name 'Preferences'\n\t\t} Until ($TaskManKey -or $timeout -le 0)\n\t\tStop-Process $Taskmgr\n\t\tIf($TaskManKey) {\n\t\t\tDisplayOut '----Showing Task Manager Details...' -C 11\n\t\t\t$TaskManKey.Preferences[28] = 0\n\t\t\tSet-ItemProperty -Path $Path -Name 'Preferences' -Type Binary -Value $TaskManKey.Preferences\n\t\t} Else {\n\t\t\tDisplayOut '----Unable to Show Task Manager Details...' -C 13\n\t\t}\n\t} ElseIf($TaskManagerDetails -eq 2) {\n\t\tDisplayOut 'Hiding Task Manager Details...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\t$TaskManKey = Get-ItemProperty -Path $Path -Name 'Preferences'\n\t\tIf($TaskManKey) {\n\t\t\t$TaskManKey.Preferences[28] = 1\n\t\t\tSet-ItemProperty -Path $Path -Name 'Preferences' -Type Binary -Value $TaskManKey.Preferences\n\t\t}\n\t}\n\n\tIf($Win10Ver -ge 1709) {\n\t\tIf($ReopenAppsOnBoot -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Re-Opening Apps on Boot...' -C 15 }\n\t\t} ElseIf($ReopenAppsOnBoot -eq 1) {\n\t\t\tDisplayOut 'Enableing Re-Opening Apps on Boot (Apps reopen on boot)...' -C 11\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'DisableAutomaticRestartSignOn' -Type DWord -Value 0\n\t\t} ElseIf($ReopenAppsOnBoot -eq 2) {\n\t\t\tDisplayOut \"Disabling Re-Opening Apps on Boot (Apps won't reopen on boot)...\" -C 12\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'DisableAutomaticRestartSignOn' -Type DWord -Value 1\n\t\t}\n\t}\n\n\tIf($Win10Ver -ge 1803) {\n\t\tIf($Timeline -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Timeline...' -C 15 }\n\t\t} ElseIf($Timeline -eq 1) {\n\t\t\tDisplayOut 'Enableing Windows Timeline...' -C 11\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System' -Name 'EnableActivityFeed' -Type DWord -Value 1\n\t\t} ElseIf($Timeline -eq 2) {\n\t\t\tDisplayOut \"Disabling Windows Timeline...\" -C 12\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System' -Name 'EnableActivityFeed' -Type DWord -Value 0\n\t\t}\n\t}\n\n\tIf($LongFilePath -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Long File Path...' -C 15 }\n\t} ElseIf($LongFilePath -eq 1) {\n\t\tDisplayOut 'Enableing Long File Path...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\ControlSet001\\Control\\FileSystem' -Name 'LongPathsEnabled' -Type DWord -Value 1\n\t} ElseIf($LongFilePath -eq 2) {\n\t\tDisplayOut \"Disabling Long File Path...\" -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\ControlSet001\\Control\\FileSystem' -Name 'LongPathsEnabled'\n\t}\n\n\tIf($AppHibernationFile -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping App Hibernation File (Swapfile.sys)...' -C 15 }\n\t} ElseIf($AppHibernationFile -eq 1) {\n\t\tDisplayOut 'Enabling App Hibernation File (Swapfile.sys)...' -C 11\n\t\tRemove-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\" -Name \"SwapfileControl\"\n\t} ElseIf($AppHibernationFile -eq 2) {\n\t\tDisplayOut 'Disabling App Hibernation File (Swapfile.sys)...' -C 12\n\t\tSet-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\" -Name \"SwapfileControl\" -Type Dword -Value 0\n\t}\n\n\tBoxItem \"'This PC' Items\"\n\tIf($DesktopIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Desktop folder in This PC...' -C 15 }\n\t} ElseIf($DesktopIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Desktop folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t}\n\t} ElseIf($DesktopIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Desktop folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($DesktopIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Desktop folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t}\n\n\tIf($DocumentsIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Documents folder in This PC...' -C 15 }\n\t} ElseIf($DocumentsIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Documents folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{FDD39AD0-238F-46AF-ADB4-6C85480369C7}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t}ElseIf($DocumentsIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Documents folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\" }\n\t} ElseIf($DocumentsIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Documents folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t}\n\n\tIf($DownloadsIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Downloads folder in This PC...' -C 15 }\n\t} ElseIf($DownloadsIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Downloads folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\"\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($DownloadsIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Downloads folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\" }\n\t} ElseIf($DownloadsIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Downloads folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t}\n\n\tIf($MusicIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Music folder in This PC...' -C 15 }\n\t} ElseIf($MusicIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Music folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{a0c69a99-21c8-4671-8703-7934162fcf1d}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{4BD8D571-6D19-48D3-BE97-422220080E43}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($MusicIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Music folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{a0c69a99-21c8-4671-8703-7934162fcf1d}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($MusicIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Music folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t}\n\n\tIf($PicturesIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pictures folder in This PC...' -C 15 }\n\t} ElseIf($PicturesIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Pictures folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{0ddd015d-b06c-45d5-8c4c-f59713854639}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{33E28130-4E1E-4676-835A-98395C3BC3BB}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($PicturesIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Pictures folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{0ddd015d-b06c-45d5-8c4c-f59713854639}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($PicturesIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Pictures folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t}\n\n\tIf($VideosIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Videos folder in This PC...' -C 15 }\n\t} ElseIf($VideosIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Videos folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{18989B1D-99B5-455B-841C-AB7C74E4DDFC}\"'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($VideosIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Videos folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\"\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($PicturesIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Videos folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t}\n\n\tIf($Win10Ver -ge 1709){\n\t\tIf($ThreeDobjectsIconInThisPC -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping 3D Object folder in This PC...' -C 15 }\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 1) {\n\t\t\tDisplayOut 'Showing 3D Object folder in This PC...' -C 11\n\t\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag'\n\t\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tIf($OSBit -eq 64){\n\t\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\t}\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 2) {\n\t\t\tDisplayOut 'Hiding 3D Object folder in This PC...' -C 12\n\t\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag'\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 3) {\n\t\t\tDisplayOut 'Removing 3D Object folder in This PC...' -C 13\n\t\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t}\n\t}\n\n\tBoxItem 'Desktop Items'\n\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\tIf($ThisPCOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping This PC Icon on Desktop...' -C 15 }\n\t} ElseIf($ThisPCOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing This PC Shortcut on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 0\n\t} ElseIf($ThisPCOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding This PC Shortcut on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 1\n\t}\n\n\tIf($NetworkOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Network Icon on Desktop...' -C 15 }\n\t} ElseIf($NetworkOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Network Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 0\n\t} ElseIf($NetworkOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Network Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 1\n\t}\n\n\tIf($RecycleBinOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recycle Bin Icon on Desktop...' -C 15 }\n\t} ElseIf($RecycleBinOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Recycle Bin Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 0\n\t} ElseIf($RecycleBinOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Recycle Bin Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 1\n\t}\n\n\tIf($UsersFileOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Users File Icon on Desktop...' -C 15 }\n\t} ElseIf($UsersFileOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Users File Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name \"{59031a47-3f72-44a7-89c5-5595fe6b30ee}\" -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 0\n\t} ElseIf($UsersFileOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Users File Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 1\n\t}\n\n\tIf($ControlPanelOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Control Panel Icon on Desktop...' -C 15 }\n\t} ElseIf($ControlPanelOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Control Panel Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 0\n\t} ElseIf($ControlPanelOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Control Panel Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Photo Viewer Settings'\n\tIf($PVFileAssociation -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Photo Viewer File Association...' -C 15 }\n\t} ElseIf($PVFileAssociation -eq 1) {\n\t\tDisplayOut 'Setting Photo Viewer File Association for bmp, gif, jpg, png and tif...' -C 11\n\t\tForEach($type In @('Paint.Picture', 'giffile', 'jpegfile', 'pngfile')) {\n\t\t\tNew-Item -Path $(\"HKCR:\\$type\\shell\\open\") -Force | Out-Null\n\t\t\tNew-Item -Path $(\"HKCR:\\$type\\shell\\open\\command\") | Out-Null\n\t\t\tSet-ItemProperty -Path $(\"HKCR:\\$type\\shell\\open\") -Name 'MuiVerb' -Type ExpandString -Value \"@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3043\"\n\t\t\tSet-ItemProperty -Path $(\"HKCR:\\$type\\shell\\open\\command\") -Name '(Default)' -Type ExpandString -Value \"%SystemRoot%\\System32\\rundll32.exe `\"%ProgramFiles%\\Windows Photo Viewer\\PhotoViewer.dll`\", ImageView_Fullscreen %1\"\n\t\t}\n\t} ElseIf($PVFileAssociation -eq 2) {\n\t\tDisplayOut 'Unsetting Photo Viewer File Association for bmp, gif, jpg, png and tif...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Paint.Picture\\shell\\open'\n\t\tRemove-ItemProperty -Path 'HKCR:\\giffile\\shell\\open' -Name 'MuiVerb'\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open' -Name 'CommandId' -Type String -Value 'IE.File'\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open\\command' -Name '(Default)' -Type String -Value \"`\"$Env:SystemDrive\\Program Files\\Internet Explorer\\iexplore.exe`\" %1\"\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open\\command' -Name 'DelegateExecute' -Type String -Value '{17FE9752-0B5A-4665-84CD-569794602F5C}'\n\t\tRemoveSetPath 'HKCR:\\jpegfile\\shell\\open'\n\t\tRemoveSetPath 'HKCR:\\jpegfile\\shell\\open'\n\t}\n\n\tIf($PVOpenWithMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Photo Viewer Open with Menu...' -C 15 }\n\t} ElseIf($PVOpenWithMenu -eq 1) {\n\t\tDisplayOut 'Adding Photo Viewer to Open with Menu...' -C 11\n\t\tNew-Item -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\command' -Force | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\DropTarget' -Force | Out-Null\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open' -Name 'MuiVerb' -Type String -Value '@photoviewer.dll,-3043'\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\command' -Name '(Default)' -Type ExpandString -Value \"%SystemRoot%\\System32\\rundll32.exe `\"%ProgramFiles%\\Windows Photo Viewer\\PhotoViewer.dll`\", ImageView_Fullscreen %1\"\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\DropTarget' -Name 'Clsid' -Type String -Value '{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}'\n\t} ElseIf($PVOpenWithMenu -eq 2) {\n\t\tDisplayOut 'Removing Photo Viewer from Open with Menu...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Applications\\photoviewer.dll\\shell\\open'\n\t}\n\n\tBoxItem 'Lockscreen Items'\n\tIf($LockScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Lock Screen...' -C 15 }\n\t} ElseIf($LockScreen -eq 1) {\n\t\tIf($Win10Ver -In 1507,1511) {\n\t\t\tDisplayOut 'Enabling Lock Screen...' -C 11\n\t\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization' -Name 'NoLockScreen'\n\t\t} ElseIf($Win10Ver -ge 1607) {\n\t\t\tDisplayOut 'Enabling Lock screen (removing scheduler workaround)...' -C 11\n\t\t\tUnregister-ScheduledTask -TaskName 'Disable LockScreen' -Confirm:$False\n\t\t} Else {\n\t\t\tDisplayOut 'Unable to Enable Lock screen...' -C 13\n\t\t}\n\t} ElseIf($LockScreen -eq 2) {\n\t\tIf($Win10Ver -In 1507,1511) {\n\t\t\tDisplayOut 'Disabling Lock Screen...' -C 12\n\t\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization'\n\t\t\tSet-ItemProperty -Path $Path -Name 'NoLockScreen' -Type DWord -Value 1\n\t\t} ElseIf($Win10Ver -ge 1607) {\n\t\t\tDisplayOut 'Disabling Lock screen using scheduler workaround...' -C 12\n\t\t\t$service = New-Object -com Schedule.Service\n\t\t\t$service.Connect()\n\t\t\t$task = $service.NewTask(0)\n\t\t\t$task.Settings.DisallowStartIfOnBatteries = $False\n\t\t\t$trigger = $task.Triggers.Create(9)\n\t\t\t$trigger = $task.Triggers.Create(11)\n\t\t\t$trigger.StateChange = 8\n\t\t\t$action = $task.Actions.Create(0)\n\t\t\t$action.Path = 'reg.exe'\n\t\t\t$action.Arguments = \"add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData /t REG_DWORD /v AllowLockScreen /d 0 /f\"\n\t\t\t$service.GetFolder('\\').RegisterTaskDefinition('Disable LockScreen', $task, 6, 'NT AUTHORITY\\SYSTEM', $null, 4) | Out-Null\n\t\t} Else {\n\t\t\tDisplayOut 'Unable to Disable Lock screen...' -C 13\n\t\t}\n\t}\n\n\tIf($LockscreenPassword -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Lock Screen Password...' -C 15 }\n\t} ElseIf($LockscreenPassword -eq 1) {\n\t\tDisplayOut 'Enabling Lock Screen Password...' -C 11\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 1\n\t} ElseIf($LockscreenPassword -eq 2) {\n\t\tDisplayOut 'Disabling Lock Screen Password...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 0\n\t}\n\t\n\tIf($PowerMenuLockScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Power Menu on Lock Screen...' -C 15 }\n\t} ElseIf($PowerMenuLockScreen -eq 1) {\n\t\tDisplayOut 'Showing Power Menu on Lock Screen...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'shutdownwithoutlogon' -Type DWord -Value 1\n\t} ElseIf($PowerMenuLockScreen -eq 2) {\n\t\tDisplayOut 'Hiding Power Menu on Lock Screen...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'shutdownwithoutlogon' -Type DWord -Value 0\n\t}\n\n\tIf($CameraOnLockscreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Camera at Lockscreen...' -C 15 }\n\t} ElseIf($CameraOnLockscreen -eq 1) {\n\t\tDisplayOut 'Enabling Camera at Lockscreen...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization' -Name 'NoLockScreenCamera'\n\t} ElseIf($CameraOnLockscreen -eq 2) {\n\t\tDisplayOut 'Disabling Camera at Lockscreen...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization'\n\t\tSet-ItemProperty -Path $Path -Name 'NoLockScreenCamera' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Misc Items'\n\tIf($ScreenSaver -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping ScreenSaver...' -C 15 }\n\t} ElseIf($ScreenSaver -eq 1) {\n\t\tDisplayOut 'Enabling ScreenSaver...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveActive' -Type DWord -Value 1\n\t} ElseIf($ScreenSaver -eq 2) {\n\t\tDisplayOut 'Disabling ScreenSaver...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveActive' -Type DWord -Value 0\n\t}\n\n\tIf($Win10Ver -ge 1803) {\n\t\tIf($AccountProtectionWarn -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Account Protection Warning...' -C 15 }\n\t\t} ElseIf($AccountProtectionWarn -eq 1) {\n\t\t\tDisplayOut 'Enabling Account Protection Warning...' -C 11\n\t\t\tRemove-ItemProperty 'HKCU:\\SOFTWARE\\Microsoft\\Windows Security Health\\State' -Name 'AccountProtection_MicrosoftAccount_Disconnected'\n\t\t} ElseIf($AccountProtectionWarn -eq 2) {\n\t\t\tDisplayOut 'Disabling Account Protection Warning...' -C 12\n\t\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows Security Health\\State'\n\t\t\tSet-ItemProperty $Path -Name 'AccountProtection_MicrosoftAccount_Disconnected' -Type DWord -Value 1\n\t\t}\n\t}\n\n\tIf($ActionCenter -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Action Center...' -C 15 }\n\t} ElseIf($ActionCenter -eq 1) {\n\t\tDisplayOut 'Enabling Action Center...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableNotificationCenter'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications' -Name 'ToastEnabled'\n\t} ElseIf($ActionCenter -eq 2) {\n\t\tDisplayOut 'Disabling Action Center...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableNotificationCenter' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications' -Name 'ToastEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($StickyKeyPrompt -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sticky Key Prompt...' -C 15 }\n\t} ElseIf($StickyKeyPrompt -eq 1) {\n\t\tDisplayOut 'Enabling Sticky Key Prompt...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Accessibility\\StickyKeys' -Name 'Flags' -Type String -Value '510'\n\t} ElseIf($StickyKeyPrompt -eq 2) {\n\t\tDisplayOut 'Disabling Sticky Key Prompt...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Accessibility\\StickyKeys' -Name 'Flags' -Type String -Value '506'\n\t}\n\n\tIf($NumblockOnStart -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Num Lock on Startup...' -C 15 }\n\t} ElseIf($NumblockOnStart -eq 1) {\n\t\tDisplayOut 'Enabling Num Lock on Startup...' -C 11\n\t\tSet-ItemProperty -Path 'HKU:\\.DEFAULT\\Control Panel\\Keyboard' -Name 'InitialKeyboardIndicators' -Type DWord -Value 2147483650\n\t} ElseIf($NumblockOnStart -eq 2) {\n\t\tDisplayOut 'Disabling Num Lock on Startup...' -C 12\n\t\tSet-ItemProperty -Path 'HKU:\\.DEFAULT\\Control Panel\\Keyboard' -Name 'InitialKeyboardIndicators' -Type DWord -Value 2147483648\n\t}\n\n\tIf($F8BootMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping F8 boot menu options...' -C 15 }\n\t} ElseIf($F8BootMenu -eq 1) {\n\t\tDisplayOut 'Enabling F8 boot menu options...' -C 11\n\t\tbcdedit /set `{current`} bootmenupolicy Legacy | Out-Null\n\t} ElseIf($F8BootMenu -eq 2) {\n\t\tDisplayOut 'Disabling F8 boot menu options...' -C 12\n\t\tbcdedit /set `{current`} bootmenupolicy Standard | Out-Null\n\t}\n\n\tIf($RemoteUACAcctToken -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote UAC Local Account Token Filter...' -C 15 }\n\t} ElseIf($RemoteUACAcctToken -eq 1) {\n\t\tDisplayOut 'Enabling Remote UAC Local Account Token Filter...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'LocalAccountTokenFilterPolicy' -Type DWord -Value 1\n\t} ElseIf($RemoteUACAcctToken -eq 2) {\n\t\tDisplayOut 'Disabling  Remote UAC Local Account Token Filter...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'LocalAccountTokenFilterPolicy'\n\t}\n\n\tIf($HibernatePower -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hibernate Option...' -C 15 }\n\t} ElseIf($HibernatePower -eq 1) {\n\t\tDisplayOut 'Enabling Hibernate Option...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power' -Name 'HibernateEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowHibernateOption' -Type DWord -Value 1\n\t\tpowercfg /HIBERNATE ON\n\t} ElseIf($HibernatePower -eq 2) {\n\t\tDisplayOut 'Disabling Hibernate Option...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power' -Name 'HibernateEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowHibernateOption' -Type DWord -Value 0\n\t\tpowercfg /HIBERNATE OFF\n\t}\n\n\tIf($SleepPower -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sleep Option...' -C 15 }\n\t} ElseIf($SleepPower -eq 1) {\n\t\tDisplayOut 'Enabling Sleep Option...' -C 11\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings'\n\t\tSet-ItemProperty -Path $Path -Name 'ShowSleepOption' -Type DWord -Value 1\n\t\tpowercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 1\n\t\tpowercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 1\n\t} ElseIf($SleepPower -eq 2) {\n\t\tDisplayOut 'Disabling Sleep Option...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowSleepOption' -Type DWord -Value 0\n\t\tpowercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 0\n\t\tpowercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 0\n\t}\n\n\tIf($UnpinItems -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Unpinning Items...' -C 15 }\n\t} ElseIf($UnpinItems -eq 1) {\n\t\tDisplayOut \"`nUnpinning All Startmenu Items...\" -C 12\n\t\tIf($Win10Ver -le 1709) {\n\t\t\tGet-ChildItem -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\" -Include \"*.group\" -Recurse | ForEach-Object {\n\t\t\t\t$data = (Get-ItemProperty -Path \"$($_.PsPath)\\Current\" -Name \"Data\").Data -Join \",\"\n\t\t\t\t$data = $data.Substring(0, $data.IndexOf(\",0,202,30\") + 9) + \",0,202,80,0,0\"\n\t\t\t\tSet-ItemProperty -Path \"$($_.PsPath)\\Current\" -Name \"Data\" -Type Binary -Value $data.Split(\",\")\n\t\t\t}\n\t\t} Else {\n\t\t\t$key = Get-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*start.tilegrid`$windows.data.curatedtilecollection.tilecollection\\Current\"\n\t\t\t$data = $key.Data[0..25] + ([byte[]](202,50,0,226,44,1,1,0,0))\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $data\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tIf($DisableVariousTasks -eq 0) {\n\t\t#If($ShowSkipped -eq 1){ DisplayOut 'Skipping  Various Scheduled Tasks...' -C 15 }\n\t} ElseIf($DisableVariousTasks -eq 1) {\n\t\tDisplayOut \"`nEnabling Various Scheduled Tasks...`n------------------\" -C 12\n\t\tForEach($TaskN in $TasksList){ Get-ScheduledTask -TaskName $TaskN | Enable-ScheduledTask }\n\t} ElseIf($DisableVariousTasks -eq 2) {\n\t\tDisplayOut \"`nDisableing Various Scheduled Tasks...`n------------------\" -C 12\n\t\tForEach($TaskN in $TasksList){ Get-ScheduledTask -TaskName $TaskN | Disable-ScheduledTask }\n\t}\n\n\tIf(($ScreenSaverWaitTime -as [double]) -ne $null -and ($ScreenSaverWaitTime % 2) -In 0,1) {\n\t\tDisplayOut 'Setting ScreenSaver Wait Time to ',\"$ScreenSaverWaitTime Seconds\" -C 11,14\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveTimeout' -Type DWord -Value $ScreenSaverWaitTime\n\t}\n\n\tBoxItem 'Application/Feature Items'\n\tIf($OneDrive -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping OneDrive...' -C 15 }\n\t} ElseIf($OneDrive -eq 1) {\n\t\tDisplayOut 'Enabling OneDrive...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive' -Name 'DisableFileSyncNGSC'\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSyncProviderNotifications' -Type DWord -Value 1\n\t} ElseIf($OneDrive -eq 2) {\n\t\tDisplayOut 'Disabling OneDrive...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableFileSyncNGSC' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSyncProviderNotifications' -Type DWord -Value 0\n\t}\n\n\tIf($OneDriveInstall -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping OneDrive Installing...' -C 15 }\n\t} ElseIf($OneDriveInstall -eq 1) {\n\t\tDisplayOut 'Installing OneDrive...' -C 11\n\t\t$onedriveS = \"$Env:WINDIR\\\"\n\t\tIf($OSBit -eq 64){ $onedriveS += 'SysWOW64' } Else{ $onedriveS += 'System32' }\n\t\t$onedriveS += '\\OneDriveSetup.exe'\n\t\tIf(Test-Path $onedriveS -PathType Leaf) { Start-Process $onedriveS -NoNewWindow }\n\t} ElseIf($OneDriveInstall -eq 2) {\n\t\tDisplayOut 'Uninstalling OneDrive...' -C 15\n\t\t$onedriveS = \"$Env:WINDIR\\\"\n\t\tIf($OSBit -eq 64){ $onedriveS += 'SysWOW64' } Else{ $onedriveS += 'System32' }\n\t\t$onedriveS += '\\OneDriveSetup.exe'\n\t\tIf(Test-Path $onedriveS -PathType Leaf) {\n\t\t\tStop-Process -Name OneDrive -Force\n\t\t\tStart-Sleep -s 3\n\t\t\tStart-Process $onedriveS '/uninstall' -NoNewWindow -Wait | Out-Null\n\t\t\tStart-Sleep -s 3\n\t\t\tStop-Process -Name Explorer -Force\n\t\t\tStart-Sleep -s 3\n\t\t\tRemove-Item \"$Env:USERPROFILE\\OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:LOCALAPPDATA\\Microsoft\\OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:PROGRAMDATA\\Microsoft OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:WINDIR\\OneDriveTemp\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:SYSTEMDRIVE\\OneDriveTemp\" -Force -Recurse\n\t\t\tRemove-Item -Path 'HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse\n\t\t\tRemove-Item -Path 'HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Force -Recurse\n\t\t}\n\t}\n\n\tIf($XboxDVR -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Xbox DVR...' -C 15 }\n\t} ElseIf($XboxDVR -eq 1) {\n\t\tDisplayOut 'Enabling Xbox DVR...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\System\\GameConfigStore' -Name 'GameDVR_Enabled' -Type DWord -Value 1\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR' -Name 'AllowGameDVR'\n\t} ElseIf($XboxDVR -eq 2) {\n\t\tDisplayOut 'Disabling Xbox DVR...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowGameDVR' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKCU:\\System\\GameConfigStore' -Name 'GameDVR_Enabled' -Type DWord -Value 0\n\t}\n\n\tIf($MediaPlayer -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Media Player...' -C 15 }\n\t} ElseIf($MediaPlayer -eq 1) {\n\t\tDisplayOut 'Installing Windows Media Player...' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'MediaPlayback').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'WindowsMediaPlayer' -NoRestart | Out-Null }\n\t} ElseIf($MediaPlayer -eq 2) {\n\t\tDisplayOut 'Uninstalling Windows Media Player...' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'MediaPlayback').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'WindowsMediaPlayer' -NoRestart | Out-Null }\n\t}\n\n\tIf($WorkFolders -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Work Folders Client...' -C 15 }\n\t} ElseIf($WorkFolders -eq 1) {\n\t\tDisplayOut 'Installing Work Folders Client...' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'WorkFolders-Client').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'WorkFolders-Client' -NoRestart | Out-Null }\n\t} ElseIf($WorkFolders -eq 2) {\n\t\tDisplayOut 'Uninstalling Work Folders Client...' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'WorkFolders-Client').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'WorkFolders-Client' -NoRestart | Out-Null }\n\t}\n\n\tIf($FaxAndScan -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Fax And Scan...' -C 15 }\n\t} ElseIf($FaxAndScan -eq 1) {\n\t\tDisplayOut 'Installing Fax And Scan....' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'FaxServicesClientPackage').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'FaxServicesClientPackage' -NoRestart | Out-Null }\n\t} ElseIf($WFaxAndScan -eq 2) {\n\t\tDisplayOut 'Uninstalling Fax And Scan....' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'FaxServicesClientPackage').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'FaxServicesClientPackage' -NoRestart | Out-Null }\n\t}\n\n\tIf($Win10Ver -ge 1607) {\n\t\tIf($LinuxSubsystem -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Linux Subsystem...' -C 15 }\n\t\t} ElseIf($LinuxSubsystem -eq 1) {\n\t\t\tDisplayOut 'Installing Linux Subsystem...' -C 11\n\t\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'Microsoft-Windows-Subsystem-Linux').State){\n\t\t\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock'\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowDevelopmentWithoutDevLicense' -Type DWord -Value 1\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowAllTrustedApps' -Type DWord -Value 1\n\t\t\t\tEnable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Windows-Subsystem-Linux' -NoRestart | Out-Null\n\t\t\t}\n\t\t} ElseIf($LinuxSubsystem -eq 2) {\n\t\t\tDisplayOut 'Uninstalling Linux Subsystem...' -C 14\n\t\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'Microsoft-Windows-Subsystem-Linux').State)){\n\t\t\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock'\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowDevelopmentWithoutDevLicense' -Type DWord -Value 0\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowAllTrustedApps' -Type DWord -Value 0\n\t\t\t\tDisable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Windows-Subsystem-Linux' -NoRestart | Out-Null\n\t\t\t}\n\t\t}\n\t} ElseIf($LinuxSubsystem -ne 0) {\n\t\tDisplayOut \"Windows 10 Build isn't new enough for Linux Subsystem...\" -C 14\n\t}\n\n\tIf($AppxCount -ne 0) {\n\t\tBoxItem 'Waiting for Appx Task to Finish'\n\t\tWait-Job -Name \"Win10Script*\"\n\t\tRemove-Job -Name \"Win10Script*\"\n\t}\n\n\tIf($Restart -eq 1 -And $Release_Type -eq 'Stable') {\n\t\tClear-Host\n\t\tThanksDonate\n\t\t$Seconds = 15\n\t\tDisplayOut \"`nRestarting Computer in \",$Seconds,' Seconds...' -C 15,11,15\n\t\t$Message = 'Restarting in'\n\t\tStart-Sleep -Seconds 1\n\t\tForEach($Count In (1..$Seconds)){ If($Count -ne 0){ DisplayOut $Message,\" $($Seconds - $Count)\" -C 15,11 ;Start-Sleep -Seconds 1 } }\n\t\tDisplayOut 'Restarting Computer...' -C 13\n\t\tRestart-Computer\n\t} ElseIf($Release_Type -eq 'Stable') {\n\t\tDisplayOut 'Goodbye...' -C 13\n\t\tIf($Automated -eq 0){ Read-Host -Prompt \"`nPress any key to exit\" }\n\t\tExit\n\t} ElseIf($Automated -eq 0) {\n\t\tThanksDonate\n\t\tRead-Host -Prompt \"`nPress any key to Exit\"\n\t}\n}\n\n##########\n# Script -End\n##########\n\n# Used to get all values BEFORE any defined so\n# when exporting shows ALL defined after this point\n[System.Collections.ArrayList]$Script:WPFList = @()\n$AutomaticVariables = Get-Variable -Scope Script\n\nFunction SetDefault {\n#--------------------------------------------------------------------------\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!            SAFE TO EDIT VALUES             !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n# Edit values (Option) to your preference\n# Change to an Option not listed will Skip the Function/Setting\n\n# Note: If you're not sure what something does don't change it or do a web search\n\n# Can ONLY create 1 per 24 hours with this script (Will give an error)\n$Script:CreateRestorePoint = 0      #0-Skip, 1-Create --(Restore point before script runs)\n$Script:RestorePointName = \"Win10 Initial Setup Script\"\n\n#Skips Term of Use\n$Script:AcceptToS = 1               #1-See ToS, Anything else = Accepts Term of Use\n$Script:Automated = 0               #0-Pause at End/Error, Don't Pause at End/Error\n\n$Script:ShowSkipped = 1             #0-Don't Show Skipped, 1-Show Skipped\n\n#Update Related\n$Script:VersionCheck = 0            #0-Don't Check for Update, 1-Check for Update (Will Auto Download and run newer version)\n# Note: If found will Auto download and runs that, File name will be \"Win10-Menu.ps1\"\n\n$Script:InternetCheck = 0           #0 = Checks if you have Internet by doing a ping to GitHub.com\n                                    #1 = Bypass check if your pings are blocked\n\n#Restart when done? (I recommend restarting when done)\n$Script:Restart = 1                 #0-Don't Restart, 1-Restart\n\n#Windows Default for ALL Settings\n$Script:WinDefault = 2              #1-Yes*, 2-No\n# IF 1 is set then Everything Other than the following will use the Default Win Settings\n# ALL Values Above this one, All Windows Apps and OneDriveInstall (Will use what you set)\n\n#Privacy Settings\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:Telemetry = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:WiFiSense = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:SmartScreen = 0             #0-Skip, 1-Enable*, 2-Disable --(phishing and malware filter for some MS Apps/Prog)\n$Script:LocationTracking = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:Feedback = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:AdvertisingID = 0           #0-Skip, 1-Enable*, 2-Disable\n$Script:Cortana = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:CortanaSearch = 0           #0-Skip, 1-Enable*, 2-Disable --(If you disable Cortana you can still search with this)\n$Script:ErrorReporting = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:AutoLoggerFile = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:DiagTrack = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:WAPPush = 0                 #0-Skip, 1-Enable*, 2-Disable --(type of text message that contains a direct link to a particular Web page)\n\n#Windows Update\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:UpdateMSProducts = 0\t\t#0-Skip, 1-Enable, 2-Disable*\n$Script:CheckForWinUpdate = 0       #0-Skip, 1-Enable*, 2-Disable\n$Script:WinUpdateType = 0           #0-Skip, 1-Notify, 2-Auto DL, 3-Auto DL+Install*, 4-Local admin chose --(May not work with Home version)\n$Script:WinUpdateDownload = 0       #0-Skip, 1-P2P*, 2-Local Only, 3-Disable\n$Script:UpdateMSRT = 0              #0-Skip, 1-Enable*, 2-Disable --(Malware Software Removal Tool)\n$Script:UpdateDriver = 0            #0-Skip, 1-Enable*, 2-Disable --(Offering of drivers through Windows Update)\n$Script:RestartOnUpdate = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:AppAutoDownload = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:UpdateAvailablePopup = 0    #0-Skip, 1-Enable*, 2-Disable\n\n#Service Tweaks\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:UAC = 0                     #0-Skip, 1-Lower, 2-Normal*, 3-Higher\n$Script:SharingMappedDrives = 0     #0-Skip, 1-Enable, 2-Disable* --(Sharing mapped drives between users)\n$Script:AdminShares = 0             #0-Skip, 1-Enable*, 2-Disable --(Default admin shares for each drive)\n$Script:Firewall = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:WinDefender = 0             #0-Skip, 1-Enable*, 2-Disable\n$Script:HomeGroups = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:RemoteAssistance = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:RemoteDesktop = 0           #0-Skip, 1-Enable, 2-Disable* --(Remote Desktop w/o Network Level Authentication)\n\n#Context Menu Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:CastToDevice = 0            #0-Skip, 1-Enable*, 2-Disable\n$Script:PreviousVersions = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:IncludeinLibrary = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:PinToStart = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:PinToQuickAccess = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:ShareWith = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:SendTo = 0                  #0-Skip, 1-Enable*, 2-Disable\n\n#Task Bar Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:BatteryUIBar = 0            #0-Skip, 1-New*, 2-Classic --(Classic is Win 7 version)\n$Script:ClockUIBar = 0              #0-Skip, 1-New*, 2-Classic --(Classic is Win 7 version)\n$Script:VolumeControlBar = 0        #0-Skip, 1-New(Horizontal)*, 2-Classic(Vertical) --(Classic is Win 7 version)\n$Script:TaskbarSearchBox = 0        #0-Skip, 1-Show*, 2-Hide\n$Script:TaskViewButton = 0          #0-Skip, 1-Show*, 2-Hide\n$Script:TaskbarIconSize = 0         #0-Skip, 1-Normal*, 2-Smaller\n$Script:TaskbarGrouping = 0         #0-Skip, 1-Never, 2-Always*, 3-When Needed\n$Script:TrayIcons = 0               #0-Skip, 1-Auto*, 2-Always Show\n$Script:SecondsInClock = 0          #0-Skip, 1-Show, 2-Hide*\n$Script:LastActiveClick = 0         #0-Skip, 1-Enable, 2-Disable* --(Makes Taskbar Buttons Open the Last Active Window)\n$Script:TaskBarOnMultiDisplay = 0   #0-Skip, 1-Enable*, 2-Disable\n$Script:TaskBarButtOnDisplay = 0    #0-Skip, 1-All, 2-where window is open, 3-Main and where window is open\n\n#Star Menu Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:StartMenuWebSearch = 0      #0-Skip, 1-Enable*, 2-Disable\n$Script:StartSuggestions = 0        #0-Skip, 1-Enable*, 2-Disable --(The Suggested Apps in Start Menu)\n$Script:MostUsedAppStartMenu = 0    #0-Skip, 1-Show*, 2-Hide\n$Script:RecentItemsFrequent = 0     #0-Skip, 1-Enable*, 2-Disable --(In Start Menu)\n$Script:UnpinItems = 0              #0-Skip, 1-Unpin\n\n#Explorer Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:AccessKeyPrmpt = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:F1HelpKey = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:Autoplay = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:Autorun = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:PidInTitleBar = 0           #0-Skip, 1-Show, 2-Hide* --(PID = Processor ID)\n$Script:AeroSnap = 0                #0-Skip, 1-Enable*, 2-Disable --(Allows you to quickly resize the window you’re currently using)\n$Script:AeroShake = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:KnownExtensions = 0         #0-Skip, 1-Show, 2-Hide*\n$Script:HiddenFiles = 0             #0-Skip, 1-Show, 2-Hide*\n$Script:SystemFiles = 0             #0-Skip, 1-Show, 2-Hide*\n$Script:ExplorerOpenLoc = 0         #0-Skip, 1-Quick Access*, 2-ThisPC --(What location it opened when you open an explorer window)\n$Script:RecentFileQikAcc = 0        #0-Skip, 1-Show/Add*, 2-Hide, 3-Remove --(Recent Files in Quick Access)\n$Script:FrequentFoldersQikAcc = 0   #0-Skip, 1-Show*, 2-Hide --(Frequent Folders in Quick Access)\n$Script:WinContentWhileDrag = 0     #0-Skip, 1-Show*, 2-Hide\n$Script:StoreOpenWith = 0           #0-Skip, 1-Enable*, 2-Disable\n$Script:WinXPowerShell = 0          #0-Skip, 1-PowerShell*, 2-Command Prompt\n$Script:TaskManagerDetails = 0      #0-Skip, 1-Show, 2-Hide*\n$Script:ReopenAppsOnBoot = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:Timeline = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:LongFilePath = 0            #0-Skip, 1-Enable, 2-Disable*\n$Script:AppHibernationFile = 0      #0-Skip, 1-Enable*, 2-Disable\n\n#'This PC' Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:DesktopIconInThisPC = 0     #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:DocumentsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:DownloadsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:MusicIconInThisPC = 0       #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:PicturesIconInThisPC = 0    #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:VideosIconInThisPC = 0      #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:ThreeDobjectsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n# CAUTION: Removing them can cause problems\n\n#Desktop Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:ThisPCOnDesktop = 0         #0-Skip, 1-Show, 2-Hide*\n$Script:NetworkOnDesktop = 0        #0-Skip, 1-Show, 2-Hide*\n$Script:RecycleBinOnDesktop = 0     #0-Skip, 1-Show, 2-Hide*\n$Script:UsersFileOnDesktop = 0      #0-Skip, 1-Show, 2-Hide*\n$Script:ControlPanelOnDesktop = 0   #0-Skip, 1-Show, 2-Hide*\n\n#Lock Screen\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:LockScreen = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:LockscreenPassword = 0      #0-Skip, 1-Enable*, 2-Disable\n$Script:PowerMenuLockScreen = 0     #0-Skip, 1-Show*, 2-Hide\n$Script:CameraOnLockScreen = 0      #0-Skip, 1-Enable*, 2-Disable\n\n#Misc items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:ScreenSaver = 0             #0-Skip, 1-Enable*, 2-Disable\n$Script:AccountProtectionWarn = 0   #0-Skip, 1-Enable*, 2-Disable\n$Script:ActionCenter = 0            #0-Skip, 1-Enable*, 2-Disable\n$Script:StickyKeyPrompt = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:NumblockOnStart = 0         #0-Skip, 1-Enable, 2-Disable*\n$Script:F8BootMenu = 0              #0-Skip, 1-Enable, 2-Disable*\n$Script:RemoteUACAcctToken = 0      #0-Skip, 1-Enable, 2-Disable*\n$Script:HibernatePower = 0          #0-Skip, 1-Enable, 2-Disable --(Hibernate Power Option)\n$Script:SleepPower = 0              #0-Skip, 1-Enable*, 2-Disable --(Sleep Power Option)\n\n# Photo Viewer Settings\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:PVFileAssociation = 0       #0-Skip, 1-Enable, 2-Disable*\n$Script:PVOpenWithMenu = 0          #0-Skip, 1-Enable, 2-Disable*\n\n# Application/Feature\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:OneDrive = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:OneDriveInstall = 0         #0-Skip, 1-Installed*, 2-Uninstall\n$Script:XboxDVR = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:MediaPlayer = 0             #0-Skip, 1-Installed*, 2-Uninstall\n$Script:WorkFolders = 0             #0-Skip, 1-Installed*, 2-Uninstall\n$Script:FaxAndScan = 0              #0-Skip, 1-Installed*, 2-Uninstall\n$Script:LinuxSubsystem = 0          #0-Skip, 1-Installed, 2-Uninstall* (Anniversary Update or Higher)\n\n# Custom List of App to Install, Hide or Uninstall\n# I dunno if you can Install random apps with this script\n[System.Collections.ArrayList]$Script:APPS_AppsUnhide = @()         # Apps to Install\n[System.Collections.ArrayList]$Script:APPS_AppsHide = @()           # Apps to Hide\n[System.Collections.ArrayList]$Script:APPS_AppsUninstall = @()      # Apps to Uninstall\n#$Script:APPS_Example = @('Somecompany.Appname1','TerribleCompany.Appname2','AppS.Appname3')\n# To get list of Packages Installed (in PowerShell)\n# DISM /Online /Get-ProvisionedAppxPackages | Select-string Packagename\n\n\n# Windows Apps\n# By Default Most of these are installed\n# Function  = Option  # 0-Skip, 1-Unhide, 2- Hide, 3-Uninstall (!!Read Note Above)\n$Script:APP_3DBuilder = 0           # 3DBuilder app\n$Script:APP_3DViewer = 0            # 3DViewer app\n$Script:APP_BingWeather = 0         # Bing Weather app\n$Script:APP_CommsPhone = 0          # Phone app\n$Script:APP_Communications = 0      # Calendar & Mail app\n$Script:APP_GetHelp = 0             # Microsoft's Self-Help App\n$Script:APP_Getstarted = 0          # Get Started link\n$Script:APP_Messaging = 0           # Messaging app\n$Script:APP_MicrosoftOffHub = 0     # Get Office Link\n$Script:APP_MovieMoments = 0        # Movie Moments app\n$Script:APP_Netflix = 0             # Netflix app\n$Script:APP_OfficeOneNote = 0       # Office OneNote app\n$Script:APP_OfficeSway = 0          # Office Sway app\n$Script:APP_OneConnect = 0          # One Connect\n$Script:APP_People = 0              # People app\n$Script:APP_Photos = 0              # Photos app\n$Script:APP_SkypeApp1 = 0           # Microsoft.SkypeApp\n$Script:APP_SolitaireCollect = 0    # Microsoft Solitaire\n$Script:APP_StickyNotes = 0         # Sticky Notes app\n$Script:APP_WindowsWallet = 0       # Stores Credit and Debit Card Information\n$Script:APP_VoiceRecorder = 0       # Voice Recorder app\n$Script:APP_WindowsAlarms = 0       # Alarms and Clock app\n$Script:APP_WindowsCalculator = 0   # Calculator app\n$Script:APP_WindowsCamera = 0       # Camera app\n$Script:APP_WindowsFeedbak1 = 0     # Microsoft.WindowsFeedback\n$Script:APP_WindowsFeedbak2 = 0     # Microsoft.WindowsFeedbackHub\n$Script:APP_WindowsMaps = 0         # Maps app\n$Script:APP_WindowsPhone = 0        # Phone Companion app\n$Script:APP_WindowsStore = 0        # Windows Store\n$Script:APP_XboxApp = 0             # All Xbox apps (There is a few)\n$Script:APP_ZuneMusic = 0           # Groove Music app\n$Script:APP_ZuneVideo = 0           # Groove Video app\n\n#These Items are NOT shown in GUI\n#These items must be set here or set in a loaded config file\n$Script:ScreenSaverWaitTime = \"NC\"  #Change \"NC\" to a number in seconds for the time\n$Script:DisableVariousTasks = 0     #0-Skip, 1-Enable, 2-Disable some scheduled tasks... This is Experimental\n#to see the scheduled tasks search for $TasksList (near top of script)\n# --------------------------------------------------------------------------\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!        DO NOT EDIT PAST THIS POINT         !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n}\nScriptPreStart\n"
  },
  {
    "path": "Testing/readme.md",
    "content": "# Currently Testing\nNothing ATM\n\n# About Testing Version\nIf I am not working on a change or addition to the script, this will be the same exact copy as the non test.<br />\nOnly Differances between script are:\n1. Version Check will download the 'Test' version instead of 'Stable' (if there is an update)\n2. Display of a Warning message at 'TOS screen'\n3. Computer wont restart (even if Restart is set)\n4. Error messages are shown (From all sources)\n\n**Note: Use the copy here if you dont mind possible bugs or problems.**<br />\n"
  },
  {
    "path": "Version/Version.csv",
    "content": "Name,Version,MinorVersion\nStable,3.7,2\nTest,3.7,2\n"
  },
  {
    "path": "Win10-Menu.ps1",
    "content": "##########\n# Win 10 Setup Script/Tweaks with Menu(GUI)\n#\n# Modded Script + Menu(GUI) By\n#  Author: Madbomb122\n# Website: https://GitHub.com/Madbomb122/Win10Script/\n#\n# Original Basic Script By\n#  Author: Disassembler0\n# Website: https://GitHub.com/Disassembler0/Win10-Initial-Setup-Script/\n# Version: 2.0, 2017-01-08 (Version Copied)\n#\n$Script_Version = '3.7.2'\n$Script_Date = 'Jul-31-2021'\n$Release_Type = 'Stable'\n##########\n\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!             SAFE TO EDIT ITEM              !!\n## !!            AT BOTTOM OF SCRIPT             !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!                  CAUTION                   !!\n## !!        DO NOT EDIT PAST THIS POINT         !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n<#------------------------------------------------------------------------------#>\n\n$Copyright =' The MIT License (MIT)                                                  \n                                                                        \n Copyright (c) 2017 Disassembler                                        \n        -Original Basic Version of Script                               \n                                                                        \n Copyright (c) 2017-2021 Madbomb122                                     \n        -Modded + Menu Version of Script                                \n                                                                        \n Permission is hereby granted, free of charge, to any person obtaining  \n a copy of this software and associated documentation files (the        \n \"Software\"), to deal in the Software without restriction, including    \n without limitation the rights to use, copy, modify, merge, publish,    \n distribute, sublicense, and/or sell copies of the Software, and to     \n permit persons to whom the Software is furnished to do so, subject to  \n the following conditions:                                              \n                                                                        \n The above copyright notice(s), this permission notice shall be         \n included in all copies or substantial portions of the Software.        \n                                                                        \n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY  \n KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE \n WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR    \n PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS \n OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR   \n OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR \n OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE  \n SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.     \n                                                            '\n\n<#--------------------------------------------------------------------------------\n\n.Prerequisite to run script\n  System: Windows 10\n  Files: This script\n\n.DESCRIPTION\n  Makes it easier to setup an existing or new install with moded setting\n\n.BASIC USAGE\n  Use the Menu and set what you want then Click Run the Script\n\n.ADVANCED USAGE\n One of the following Methods...\n  1. Edit values at bottom of the script\n  2. Edit bat file and run\n  3. Run the script with one of these switches (space between multiple)\n\n  Switch          Description of Switch\n-- Basic Switches --\n  -atos           Accepts ToS\n  -auto           Implies -Atos...Closes on - User Errors, or End of Script\n  -crp            Creates Restore Point\n  -dnr            Do Not Restart when done\n\n-- Run Script Switches --\n  -run            Runs script with settings in script\n  -run FILENME    Runs script with settings in the file FILENME\n  -run wd         Runs script with win default settings\n\n-- Load Script Switches --\n  -load FILENME   Loads script with settings in the file FILENME\n  -load wd        Loads script with win default settings\n\n--Update Switches--\n  -usc            Checks for Update to Script file before running\n  -sic            Skips Internet Check\n\n------------------------------------------------------------------------------#>\n##########\n# Pre-Script -Start\n##########\n\nIf([Environment]::OSVersion.Version.Major -ne 10) {\n\tWrite-Host 'Sorry, this Script supports Windows 10 ONLY.' -ForegroundColor 'cyan' -BackgroundColor 'black'\n\tIf($Automated -ne 1){ Read-Host -Prompt \"`nPress Any key to Close...\" } ;Exit\n}\nIf($Release_Type -eq 'Stable'){ $ErrorActionPreference = 'SilentlyContinue' } Else{ $Release_Type = 'Testing' }\n\n$Script:PassedArg = $args\n\nIf(!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]\"Administrator\")) {\n\tStart-Process powershell.exe \"-NoProfile -ExecutionPolicy Bypass -File `\"$PSCommandPath`\" $PassedArg\" -Verb RunAs ;Exit\n}\n\n$MySite = 'https://GitHub.com/madbomb122/Win10Script'\n$URL_Base = $MySite.Replace('GitHub','raw.GitHub')+'/master/'\n$Version_Url = $URL_Base + 'Version/Version.csv'\n$Donate_Url = 'https://www.amazon.com/gp/registry/wishlist/YBAYWBJES5DE/'\n$FileBase = $(If($psISE -ne $Null){ Split-Path $psISE.CurrentFile.FullPath -Parent } Else{ $PSScriptRoot }) + '\\'\n\n$Script:Win10Ver = (Get-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion' -Name ReleaseID).ReleaseId\n$Script:OSBit = If([System.Environment]::Is64BitProcess){ 64 } Else{ 32 }\n\n##########\n# Pre-Script -End\n##########\n# Needed Variable -Start\n##########\n\n$TasksList = @(\n'Application Experience',\n'Consolidator',\n'Customer Experience Improvement Program',\n'DmClient',\n'KernelCeipTask',\n'Microsoft Compatibility Appraiser',\n'ProgramDataUpdater',\n'Proxy',\n'QueueReporting',\n'SmartScreenSpecific',\n'UsbCeip')\n<#\n'AgentFallBack2016',\n'AitAgent',\n'CreateObjectTask',\n#'Diagnostics',\n'DmClientOnScenarioDownload',\n'FamilySafetyMonitor',\n'FamilySafetyRefresh',\n'FamilySafetyRefreshTask',\n'FamilySafetyUpload',\n#'File History (maintenance mode)',\n'GatherNetworkInfo',\n'MapsUpdateTask',\n#'Microsoft-Windows-DiskDiagnosticDataCollector',\n'MNO Metadata Parser',\n'OfficeTelemetryAgentFallBack',\n'OfficeTelemetryAgentLogOn',\n'OfficeTelemetryAgentLogOn2016',\n'Sqm-Tasks',\n#'StartupAppTask',\n'Uploader',\n'XblGameSaveTask',\n'XblGameSaveTaskLogon')\n#>\n\n$Xbox_Apps = @(Get-AppxPackage *xbox*).Name\n$musnotification_files = @(\"$Env:windir\\System32\\musnotification.exe\",\"$Env:windir\\System32\\musnotificationux.exe\")\n\n$AppxOptions=@('Skip','Unhide','Hide','Uninstall')\n\n$colors = @(\n'black',      #0\n'blue',       #1\n'cyan',       #2\n'darkblue',   #3\n'darkcyan',   #4\n'darkgray',   #5\n'darkgreen',  #6\n'darkmagenta',#7\n'darkred',    #8\n'darkyellow', #9\n'gray',       #10\n'green',      #11\n'magenta',    #12\n'red',        #13\n'white',      #14\n'yellow')     #15\n\n#Unicode Box Codes\n$Tlc = [char]0x2554 # ╔\n$Blc = [char]0x255A # ╚\n$Trc = [char]0x2557 # ╗\n$Brc = [char]0x255D # ╝\n$Sid = [char]0x2551 # ║\n$ToB = [char]0x2550 # ═\n\nFunction BoxItem([String]$TxtToDisplay) {\n\t$TLen = $TxtToDisplay.Length\n\t$LLen = $TLen+9\n\t$Ttop = \"`n$Tlc\".PadRight($LLen-1,$ToB) + $Trc\n\t$TBot = \"$Blc\".PadRight($LLen-2,$ToB) + $Brc\n\tDisplayOut $Ttop -C 14\n\tDisplayOut $Sid,\"   $TxtToDisplay   \",$Sid -C 14,13,14\n\tDisplayOut $TBot -C 14\n}\n\nFunction AnyKeyClose{ Read-Host -Prompt \"`nPress Any key to Close...\" }\n\n##########\n# Needed Variable -End\n##########\n# Update Functions -Start\n##########\n\nFunction UpdateCheck {\n\tIf(InternetCheck) {\n\t\t$CSV_Ver = Invoke-WebRequest $Version_Url | ConvertFrom-Csv\n\t\t$CSVLine,$RT = If($Release_Type -eq 'Stable'){ 0,'' } Else{ 1,'Testing/' }\n\t\t$WebScriptVer = $CSV_Ver[$CSVLine].Version + \".\" + $CSV_Ver[$CSVLine].MinorVersion\n\t\tIf($WebScriptVer -gt $Script_Version){ ScriptUpdateFun $RT }\n\t} Else {\n\t\tClear-Host\n\t\tDisplayMisc -Line\n\t\tDisplayOutLML (''.PadRight(22)+'Error') -C 13\n\t\tDisplayMisc -Line\n\t\tDisplayMisc\n\t\tDisplayOutLML 'No Internet connection detected or GitHub.com' -C 2\n\t\tDisplayOutLML 'is currently down.' -C 2\n\t\tDisplayOutLML 'Tested by pinging GitHub.com' -C 2\n\t\tDisplayMisc\n\t\tDisplayOutLML 'To skip use one of the following methods' -C 2\n\t\tDisplayOut '|',' 1. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14\n\t\tDisplayOut '|',' 2. Change ','InternetCheck',' in bat file'.PadRight(28),'|' -C 14,2,15,2,14\n\t\tDisplayOut '|',' 3. Run Script or Bat file with ','-sic',' switch         ','|' -C 14,2,15,2,14\n\t\tDisplayMisc\n\t\tDisplayMisc -Line\n\t\tAnyKeyClose\n\t}\n}\n\nFunction ScriptUpdateFun([String]$RT) {\n\t$Script_Url = $URL_Base + $RT + 'Win10-Menu.ps1'\n\t$ScrpFilePath = $FileBase + 'Win10-Menu.ps1'\n\t$FullVer = \"$WebScriptVer.$WebScriptMinorVer\"\n\t$UpArg = ''\n\n\tIf($Accept_ToS -ne 1){ $UpArg += '-atos ' }\n\tIf($InternetCheck -eq 1){ $UpArg += '-sic ' }\n\tIf($CreateRestorePoint -eq 1){ $UpArg += '-crp ' }\n\tIf($Restart -eq 0){ $UpArg += '-dnr' }\n\t$UpArg += If($RunScr){ \"-run $TempSetting \" } Else{ \"-load $TempSetting \" }\n\n\tClear-Host\n\tDisplayMisc -Line\n\tDisplayMisc\n\tDisplayOutLML (''.PadRight(18)+'Update Found!') -C 13 -L\n\tDisplayMisc\n\tDisplayOut '|',' Updating from version ',\"$Script_Version\".PadRight(30),'|' -C 14,15,11,14 -L\n\tDisplayMisc\n\tDisplayOut '|',' Downloading version ',\"$FullVer\".PadRight(31),'|' -C 14,15,11,14 -L\n\tDisplayOutLML 'Will run after download is complete.' -C 15 -L\n\tDisplayMisc\n\tDisplayMisc -Line\n\n\t(New-Object System.Net.WebClient).DownloadFile($Script_Url, $ScrpFilePath)\n\tStart-Process powershell.exe \"-NoProfile -ExecutionPolicy Bypass -File `\"$ScrpFilePath`\" $UpArg\" -Verb RunAs\n\tExit\n}\n\nFunction InternetCheck{ If($InternetCheck -eq 1 -or (Test-Connection www.GitHub.com -Count 1 -Quiet)){ Return $True } Return $False }\n\n##########\n# Update Functions -End\n##########\n# Multi Use Functions -Start\n##########\n\nFunction ThanksDonate {\n\tDisplayOut \"`nThanks for using my script.\" -C 11\n\tDisplayOut 'If you like this script please consider giving me a donation.' -C 11\n\tDisplayOut \"`nLink to donation:\" -C 15\n\tDisplayOut $Donate_Url -C 2\n}\n\nFunction cmpv{ Compare-Object (Get-Variable -Scope Script) $AutomaticVariables -Property Name -PassThru | Where-Object -Property Name -ne 'AutomaticVariables' | Where-Object { $_ -NotIn $WPFList } }\nFunction Openwebsite([String]$Url){ Start-Process $Url }\nFunction ShowInvalid([Int]$InvalidA){ If($InvalidA -eq 1){ Write-Host \"`nInvalid Input\" -ForegroundColor Red -BackgroundColor Black -NoNewline } Return 0 }\nFunction CheckSetPath([String]$RPath){ While(!(Test-Path $RPath)){ New-Item -Path $RPath -Force | Out-Null } Return $RPath }\nFunction RemoveSetPath([String]$RPath){ If(Test-Path $RPath){ Remove-Item -Path $RPath -Recurse } }\nFunction StartOrGui{ SetAppxVar ;If($RunScr -eq $True){ RunScript } ElseIf($AcceptToS -ne 1){ GuiStart } }\n\nFunction DisplayOut {\n\tParam (\t[Alias (\"T\")] [String[]]$Text, [Alias (\"C\")] [Int[]]$Color )\n\tFor($i=0 ;$i -lt $Text.Length ;$i++){ Write-Host $Text[$i] -ForegroundColor $colors[$Color[$i]] -BackgroundColor 'Black' -NoNewLine } ;Write-Host\n}\n\nFunction DisplayOutLML {\n\tParam (\t[Alias('T')] [String]$Text, [Alias('C')] [Int[]]$Color )\n\tDisplayOut '| ',\"$Text\".PadRight(50),' |' -C 14,$Color,14\n}\n\nFunction DisplayMisc {\n\tParam (\t[Switch]$Line, [Int]$Misc = 14 )\n\t$txt = If($Line){ '|'.PadRight(53,'-') + '|' } Else{ '|'.PadRight(53) + '|' } #Line or Blank Spaces\n\t$Splat = @{ Text = $txt ;Color = $Misc }\n\tDisplayOut @Splat\n}\n\nFunction ScriptPreStart {\n\tSetDefault\n\tIf($PassedArg.Length -gt 0){ ArgCheck }\n\tIf($AcceptToS -eq 1){ TOS } Else{ StartOrGui }\n}\n\nFunction SetAppxVar {\n\t$Script:DataGridApps = [PSCustomObject] @{ AppxName = 'Microsoft.3DBuilder'; CName = '3DBuilder'; VarName = 'APP_3DBuilder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DBuilder]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Microsoft3DViewer'; CName = '3DViewer'; VarName = 'APP_3DViewer'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_3DViewer]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.BingWeather'; CName = 'Bing Weather'; VarName = 'APP_BingWeather'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_BingWeather]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.CommsPhone'; CName = 'Phone'; VarName = 'APP_CommsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_CommsPhone]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.windowscommunicationsapps'; CName = 'Calendar & Mail'; VarName = 'APP_Communications'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Communications]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.GetHelp'; CName = \"Microsoft's Self-Help\"; VarName = 'APP_GetHelp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_GetHelp]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Getstarted'; CName = 'Get Started Link'; VarName = 'APP_Getstarted'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Getstarted]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Messaging'; CName = 'Messaging'; VarName = 'APP_Messaging'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Messaging]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftOfficeHub'; CName = 'Get Office Link'; VarName = 'APP_MicrosoftOffHub'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MicrosoftOffHub]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MovieMoments'; CName = 'Movie Moments'; VarName = 'APP_MovieMoments'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_MovieMoments]},\n\t[PSCustomObject] @{ AppxName = '4DF9E0F8.Netflix'; CName = 'Netflix'; VarName = 'APP_Netflix'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Netflix]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Office.OneNote'; CName = 'Office OneNote'; VarName = 'APP_OfficeOneNote'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeOneNote]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Office.Sway'; CName = 'Office Sway'; VarName = 'APP_OfficeSway'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OfficeSway]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.OneConnect'; CName = 'One Connect'; VarName = 'APP_OneConnect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_OneConnect]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.People'; CName = 'People'; VarName = 'APP_People'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_People]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Windows.Photos'; CName = 'Photos'; VarName = 'APP_Photos'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_Photos]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.SkypeApp'; CName = 'Skype'; VarName = 'APP_SkypeApp1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SkypeApp1]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftSolitaireCollection'; CName = 'Microsoft Solitaire'; VarName = 'APP_SolitaireCollect'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_SolitaireCollect]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.MicrosoftStickyNotes'; CName = 'Sticky Notes'; VarName = 'APP_StickyNotes'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_StickyNotes]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsSoundRecorder'; CName = 'Voice Recorder'; VarName = 'APP_VoiceRecorder'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_VoiceRecorder]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsAlarms'; CName = 'Alarms and Clock'; VarName = 'APP_WindowsAlarms'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsAlarms]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCalculator'; CName = 'Calculator'; VarName = 'APP_WindowsCalculator'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCalculator]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsCamera'; CName = 'Camera'; VarName = 'APP_WindowsCamera'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsCamera]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedback'; CName = 'Windows Feedback'; VarName = 'APP_WindowsFeedbak1'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak1]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsFeedbackHub'; CName = 'Windows Feedback Hub'; VarName = 'APP_WindowsFeedbak2'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsFeedbak2]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsMaps'; CName = 'Maps'; VarName = 'APP_WindowsMaps'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsMaps]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsPhone'; CName = 'Phone Companion'; VarName = 'APP_WindowsPhone'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsPhone]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.WindowsStore'; CName = 'Microsoft Store'; VarName = 'APP_WindowsStore'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsStore]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.Wallet'; CName = 'Stores Credit and Debit Card Information'; VarName = 'APP_WindowsWallet'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_WindowsWallet]},\n\t[PSCustomObject] @{ AppxName = $Xbox_Apps; CName = 'Xbox Apps (All)'; VarName = 'APP_XboxApp'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_XboxApp]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.ZuneMusic'; CName = 'Groove Music'; VarName = 'APP_ZuneMusic'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneMusic]},\n\t[PSCustomObject] @{ AppxName = 'Microsoft.ZuneVideo'; CName = 'Groove Video'; VarName = 'APP_ZuneVideo'; AppOptions = $AppxOptions; AppSelected = $AppxOptions[$APP_ZuneVideo]}\n\tIf($WPF_dataGrid){ $WPF_dataGrid.ItemsSource = $DataGridApps }\n}\n\nFunction PassVal([String]$Pass){ Return $PassedArg[$PassedArg.IndexOf($Pass)+1] }\nFunction ArgCheck {\n\tIf($PassedArg -In '-help','-h'){ ShowHelp }\n\tIf($PassedArg -Contains '-copy'){ ShowCopyright ;Exit }\n\tIf($PassedArg -Contains '-run') {\n\t\t$tmp = PassVal '-run'\n\t\tIf(Test-Path -LiteralPath $tmp -PathType Leaf) {\n\t\t\tLoadSettingFile $tmp ;$Script:RunScr = $True\n\t\t} ElseIf($tmp -In 'wd','windefault') {\n\t\t\tLoadWinDefault ;$Script:RunScr = $True\n\t\t} ElseIf($tmp.StartsWith('-') -or $PassedArg.IndexOf('-run') -eq  $PassedArg.Length) {\n\t\t\t$Script:RunScr = $True\n\t\t}\n\t}\n\tIf($PassedArg -Contains '-load') {\n\t\t$tmp = PassVal '-load'\n\t\tIf(Test-Path -LiteralPath $tmp -PathType Leaf){ LoadSettingFile $tmp } ElseIf($tmp -In 'wd','windefault'){ LoadWinDefault }\n\t}\n\tIf($PassedArg -Contains '-sic'){ $Script:InternetCheck = 1 }\n\tIf($PassedArg -Contains '-usc'){ $Script:VersionCheck  = 1 }\n\tIf($PassedArg -Contains '-atos'){ $Script:AcceptToS = 'Accepted' }\n\tIf($PassedArg -Contains '-dnr'){ $Script:Restart = 0 }\n\tIf($PassedArg -Contains '-auto'){ $Script:Automated = 1 ;$Script:AcceptToS = 'Accepted' }\n\tIf($PassedArg -Contains '-crp') {\n\t\t$Script:CreateRestorePoint = 1\n\t\t$tmp = PassVal '-crp'\n\t\tIf(!$tmp.StartsWith('-')){ $Script:RestorePointName = $tmp }\n\t}\n}\n\nFunction ShowHelp {\n\tClear-Host\n\tDisplayOut '             List of Switches' -C 13\n\tDisplayOut ''.PadRight(53,'-') -C 14\n\tDisplayOut ' Switch ',\"Description of Switch`n\".PadLeft(31) -C 14,15\n\tDisplayOut '-- Basic Switches --' -C 2\n\tDisplayOut '  -atos ','           Accepts ToS' -C 14,15\n\tDisplayOut '  -auto ','           Implies ','-atos','...Runs the script to be Automated.. Closes on - User Input, Errors, or End of Script' -C 14,15,14,15\n\tDisplayOut '  -crp  ','           Creates Restore Point' -C 14,15\n\tDisplayOut '  -dnr  ','           Do Not Restart when done' -C 14,15\n\tDisplayOut \"`n-- Run Script Switches --\" -C 2\n\tDisplayOut '  -run  ','           Runs script with settings in script' -C 14,15\n\tDisplayOut '  -run  ','FILENAME ','   Runs script with settings in the file',' FILENAME' -C 14,11,15,11\n\tDisplayOut '  -run wd ','         Runs script with win default settings' -C 14,15\n\tDisplayOut \"`n-- Load Script Switches --\" -C 2\n\tDisplayOut '  -run  ','FILENAME ','  Loads script with settings in the file',' FILENAME' -C 14,11,15,11\n\tDisplayOut '  -load wd ','        Loads script with win default settings' -C 14,15\n\tDisplayOut \"`n--Update Switches--\" -C 2\n\tDisplayOut '  -usc ','            Checks for Update to Script file before running' -C 14,15\n\tDisplayOut '  -sic ',\"            Skips Internet Check, if you can't ping GitHub.com for some reason\" -C 14,15\n\tDisplayOut \"`n--Help--\" -C 2\n\tDisplayOut '  -help ','           Shows list of switches, then exits script.. alt ','-h' -C 14,15,14\n\tDisplayOut '  -copy ','           Shows Copyright/License Information, then exits script' -C 14,15\n\tAnyKeyClose\n\tExit\n}\n\nFunction ShowCopyright { Clear-Host ;DisplayOut $Copyright -C 14 }\n\nFunction TOSDisplay([Switch]$C) {\n\tIf(!$C){ Clear-Host }\n\t$BC = 14\n\tIf($Release_Type -ne 'Stable') {\n\t\t$BC = 15\n\t\tDisplayMisc -Line -Misc 15\n\t\tDisplayOut '|'.PadRight(22),'Caution!!!'.PadRight(31),'|' -C 15,13,15\n\t\tDisplayMisc -Misc 15\n\t\tDisplayOut '|','         This script is still being tested.         ','|' -C 15,14,15\n\t\tDisplayOut '|'.PadRight(17),'USE AT YOUR OWN RISK.'.PadRight(36),'|' -C 15,14,15\n\t\tDisplayMisc -Misc 15\n\t}\n\tDisplayMisc -Line -Misc $BC\n\tDisplayOut '|'.PadRight(21),'Terms of Use'.PadRight(32),'|' -C $BC,11,$BC\n\tDisplayMisc -Line -Misc $BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' This program comes with ABSOLUTELY NO WARRANTY.    ','|' -C $BC,2,$BC\n\tDisplayOut '|',' This is free software, and you are welcome to      ','|' -C $BC,2,$BC\n\tDisplayOut '|',' redistribute it under certain conditions.'.PadRight(52),'|' -C $BC,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' Read License file for full Terms.'.PadRight(52),'|' -C $BC,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayOut '|',' Use the switch ','-copy',' to see License Information or ','|' -C $BC,2,14,2,$BC\n\tDisplayOut '|',' enter ','L',' bellow.'.PadRight(44),'|' -C $BC,2,14,2,$BC\n\tDisplayMisc -Misc $BC\n\tDisplayMisc -Line -Misc $BC\n}\n\nFunction TOS {\n\t$CopyR = $False\n\tWhile($TOS -ne 'Out') {\n\t\tTOSDisplay -c:$CopyR\n\t\t$CopyR = $False\n\t\t$Invalid = ShowInvalid $Invalid\n\t\t$TOS = Read-Host \"`nDo you Accept? (Y)es/(N)o\"\n\t\tIf($TOS -In 'n','no'){\n\t\t\tExit\n\t\t} ElseIf($TOS -In 'y','yes') {\n\t\t\t$Script:AcceptToS = 'Accepted-Script' ;$TOS = 'Out' ;StartOrGui\n\t\t} ElseIf($TOS -eq 'l') {\n\t\t\t$CopyR = $True ;ShowCopyright\n\t\t} Else {\n\t\t\t$Invalid = 1\n\t\t}\n\t} Return\n}\n\nFunction LoadSettingFile([String]$Filename) {\n\tIf($Filename) {\n\t\t(Import-Csv -LiteralPath $Filename -Delimiter ';').ForEach{ Set-Variable $_.Name $_.Value -Scope Script }\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsUnhide = $AppsUnhide.Split(',')\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsHide = $AppsHide.Split(',')\n\t\t#[System.Collections.ArrayList]$Script:APPS_AppsUninstall = $AppsUninstall.Split(',')\n\t\tSetAppxVar\n\t}\n}\n\nFunction SaveSettingFiles([String]$Filename) {\n\tIf($Filename) {\n\t\t#ForEach($temp In $APPS_AppsUnhide){$Script:AppsUnhide += $temp + ','}\n\t\t#ForEach($temp In $APPS_AppsHide){$Script:AppsHide += $temp + ','}\n\t\t#ForEach($temp In $APPS_Uninstall){$Script:AppsUninstall += $temp + ','}\n\t\tIf(Test-Path -LiteralPath $Filename -PathType Leaf) {\n\t\t\tIf($ShowConf -eq 1){ $Conf = ConfirmMenu 2 } Else{ $Conf = $True }\n\t\t\tIf($Conf){ cmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';' }\n\t\t} Else {\n\t\t\tcmpv | Select-Object Name,Value | Export-Csv -LiteralPath $Filename -Encoding 'unicode' -Force -Delimiter ';'\n\t\t}\n\t}\n}\n\n##########\n# Multi Use Functions -End\n##########\n# GUI -Start\n##########\n\nFunction SetCombo([String]$Name,[String]$Item) {\n\t$Items = $Item.Split(',')\n\t$combo =  $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)\n\t[Void] $combo.Items.Add('Skip')\n\tForEach($CmbItm In $Items){ [void] $combo.Items.Add($CmbItm) }\n\tSelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly)\n}\n\nFunction SetComboM([String]$Name,[String]$Item) {\n\t$Items = $Item.Split(',')\n\t$combo =  $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly)\n\t[Void] $combo.Items.Add('Skip')\n\tForEach($CmbItm In $Items){ [Void] $combo.Items.Add($CmbItm) }\n\tIf($Var -NotLike 'APP_*'){ SelectComboBoxGen $Name $(Get-Variable -Name $Name -ValueOnly) }\n}\n\nFunction SelectComboBox([Array]$List) {\n\tForEach($Var In $List) {\n\t\tIf($Var -NotLike 'APP_*'){ SelectComboBoxGen $Var $(Get-Variable -Name $Var -ValueOnly) }\n\t}\n}\nFunction SelectComboBoxGen([String]$Name,[Int]$Numb){ $(Get-Variable -Name ('WPF_'+$Name+'_Combo') -ValueOnly).SelectedIndex = $Numb }\n\nFunction RestorePointCBCheck {\n\t$WPF_CreateRestorePoint_CB.IsChecked,$WPF_RestorePointName_Txt = If($CreateRestorePoint -eq 1){ $True,$True } Else{ $False,$False }\n}\n\nFunction ConfigGUIitms {\n\t$WPF_CreateRestorePoint_CB.IsChecked = If($CreateRestorePoint -eq 1){ $True } Else{ $False }\n\t$WPF_VersionCheck_CB.IsChecked = If($VersionCheck -eq 1){ $True } Else{ $False }\n\t$WPF_InternetCheck_CB.IsChecked = If($InternetCheck -eq 1){ $True } Else{ $False }\n\t$WPF_ShowSkipped_CB.IsChecked = If($ShowSkipped -eq 1){$True } Else{ $False }\n\t$WPF_Restart_CB.IsChecked = If($Restart -eq 1){ $True } Else{ $False }\n\t$WPF_RestorePointName_Txt.Text = $RestorePointName\n\tRestorePointCBCheck\n}\n\nFunction OpenSaveDiaglog([Int]$SorO) {\n\t$SOFileDialog = If($SorO -eq 0){ New-Object System.Windows.Forms.OpenFileDialog } Else{ New-Object System.Windows.Forms.SaveFileDialog }\n\t$SOFileDialog.InitialDirectory = $FileBase\n\t$SOFileDialog.Filter = \"CSV (*.csv)| *.csv\"\n\t$SOFileDialog.ShowDialog() | Out-Null\n\tIf($SorO -eq 0) {\n\t\tLoadSettingFile $SOFileDialog.Filename\n\t\tConfigGUIitms\n\t\tSelectComboBox $VarList\n\t\tSetAppxVar\n\t} Else {\n\t\tGuiItmToVariable\n\t\tSaveSettingFiles $SOFileDialog.Filename\n\t}\n}\n\nFunction GuiStart {\n\tClear-Host\n\tDisplayOut 'Preparing GUI, Please wait...' -C 15\n\n[xml]$XAML = @\"\n<Window xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\" xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\" x:Name=\"Win10_Script\"\nTitle=\"Windows 10 Settings/Tweaks Script By: Madbomb122 (v.$Script_Version -$Script_Date\" Height=\"420\" Width=\"660\" BorderBrush=\"Black\" Background=\"White\">\n\t<Window.Resources>\n\t\t<Style x:Key=\"SeparatorStyle1\" TargetType=\"{x:Type Separator}\">\n\t\t\t<Setter Property=\"SnapsToDevicePixels\" Value=\"True\"/>\n\t\t\t<Setter Property=\"Margin\" Value=\"0,0,0,0\"/>\n\t\t\t<Setter Property=\"Template\">\n\t\t\t\t<Setter.Value>\n\t\t\t\t\t<ControlTemplate TargetType=\"{x:Type Separator}\">\n\t\t\t\t\t\t<Border Height=\"24\" SnapsToDevicePixels=\"True\" Background=\"#FF4D4D4D\" BorderBrush=\"#FF4D4D4D\" BorderThickness=\"0,0,0,1\"/>\n\t\t\t\t\t</ControlTemplate>\n\t\t\t\t</Setter.Value>\n\t\t\t</Setter>\n\t\t</Style>\n\t\t<Style TargetType=\"{x:Type ToolTip}\"><Setter Property=\"Background\" Value=\"#FFFFFFBF\"/></Style>\n\t</Window.Resources>\n\t<Window.Effect><DropShadowEffect/></Window.Effect>\n\t<Grid>\n\t\t<Grid.RowDefinitions>\n\t\t\t<RowDefinition Height=\"20\"/>\n\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t<RowDefinition Height=\"24\"/>\n\t\t</Grid.RowDefinitions>\n\t\t<Menu Grid.Row=\"0\" VerticalAlignment=\"Top\">\n\t\t\t<MenuItem Header=\"Help\">\n\t\t\t\t<MenuItem Name=\"FeedbackButton\" Header=\"Feedback/Bug Report\"/>\n\t\t\t\t<MenuItem Name=\"FAQButton\" Header=\"FAQ\"/>\n\t\t\t\t<MenuItem Name=\"AboutButton\" Header=\"About\"/>\n\t\t\t\t<MenuItem Name=\"CopyrightButton\" Header=\"Copyright\"/>\n\t\t\t\t<MenuItem Name=\"ContactButton\" Header=\"Contact Me\"/>\n\t\t\t</MenuItem>\n\t\t\t<MenuItem Name=\"DonateButton\" Background=\"#FFFFAD2F\" FontWeight=\"Bold\" Header=\"Donate to Me\"/>\n\t\t\t<MenuItem Name=\"Madbomb122WSButton\" Background=\"#FFFFDF4F\" FontWeight=\"Bold\" Header=\"Madbomb122's GitHub\"/>\n\t\t</Menu>\n\t\t<TabControl Name=\"TabControl\" Grid.Row=\"1\" BorderBrush=\"Gainsboro\" TabStripPlacement=\"Left\">\n\t\t\t<TabControl.Resources>\n\t\t\t\t<Style TargetType=\"TabItem\">\n\t\t\t\t\t<Setter Property=\"Template\">\n\t\t\t\t\t\t<Setter.Value>\n\t\t\t\t\t\t\t<ControlTemplate TargetType=\"TabItem\">\n\t\t\t\t\t\t\t\t<Border Name=\"Border\" Margin=\"2,2\" BorderBrush=\"Gainsboro\" BorderThickness=\"1,1,1,0\" CornerRadius=\"4,4,0,0\">\n\t\t\t\t\t\t\t\t\t<ContentPresenter x:Name=\"ContentSite\" HorizontalAlignment=\"Center\" Margin=\"5,2\" VerticalAlignment=\"Center\" ContentSource=\"Header\"/>\n\t\t\t\t\t\t\t\t</Border>\n\t\t\t\t\t\t\t\t<ControlTemplate.Triggers>\n\t\t\t\t\t\t\t\t\t<Trigger Property=\"IsSelected\" Value=\"True\"><Setter TargetName=\"Border\" Property=\"Background\" Value=\"LightSkyBlue\" /></Trigger>\n\t\t\t\t\t\t\t\t\t<Trigger Property=\"IsSelected\" Value=\"False\"><Setter TargetName=\"Border\" Property=\"Background\" Value=\"GhostWhite\" /></Trigger>\n\t\t\t\t\t\t\t\t</ControlTemplate.Triggers>\n\t\t\t\t\t\t\t</ControlTemplate>\n\t\t\t\t\t\t</Setter.Value>\n\t\t\t\t\t</Setter>\n\t\t\t\t</Style>\n\t\t\t</TabControl.Resources>\n\t\t\t<TabItem Name=\"Options_Tab\" Header=\"Script Options\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t<RowDefinition Height=\"6*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"2*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"1.5*\"/>\n\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Options\" Grid.Row=\"0\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2.1*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<CheckBox Name=\"CreateRestorePoint_CB\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Create Restore Point:\"/>\n\t\t\t\t\t\t\t<TextBox Name=\"RestorePointName_Txt\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Text=\"Win10 Initial Setup Script\" TextWrapping=\"Wrap\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"ShowSkipped_CB\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Show Skipped Items\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"Restart_CB\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Restart When Done (Restart is Recommended)\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"VersionCheck_CB\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Check for Update (If found, will run with current settings)\"/>\n\t\t\t\t\t\t\t<CheckBox Name=\"InternetCheck_CB\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" Margin=\"5\" VerticalAlignment=\"Center\" Content=\"Skip Internet Check\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Backup / Restore / Reset\" Grid.Row=\"1\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Button Name=\"Save_Setting_Button\" Content=\"Save Settings\" Grid.Column=\"0\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"Load_Setting_Button\" Content=\"Load Settings\" Grid.Column=\"1\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"WinDefault_Button\" Content=\"Windows Default*\" Grid.Column=\"2\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<Button Name=\"ResetDefault_Button\" Content=\"Reset All Items\" Grid.Column=\"3\" Grid.Row=\"0\"/>\n\t\t\t\t\t\t\t<TextBlock Text=\"Windows Default * / Does not modify Windows Apps or OneDrive Installation\" Grid.Column=\"0\" Grid.ColumnSpan=\"4\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" FontStyle=\"Italic\" TextWrapping=\"Wrap\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Version\" Grid.Row=\"2\" Margin=\"2\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<TextBlock Name=\"Script_Ver_Txt\" Text=\"v.$Script_Version ($Script_Date) -$Release_Type\" TextWrapping=\"Wrap\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Top\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Privacy_tab\" Header=\"Privacy\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"18*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"20*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Telemetry:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Telemetry_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Wi-Fi Sense:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WiFiSense_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"SmartScreen Filter:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SmartScreen_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Location Tracking:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"LocationTracking_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Feedback:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Feedback_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Advertising ID:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AdvertisingID_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"21*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"20*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Cortana:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Cortana_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Cortana Search:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"CortanaSearch_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Error Reporting:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ErrorReporting_Combo\" Grid.Column=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"AutoLogger:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AutoLoggerFile_Combo\" Grid.Column=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Diagnostics Tracking:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"DiagTrack_Combo\" Grid.Column=\"2\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"WAP Push:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WAPPush_Combo\" Grid.Column=\"2\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"App Auto Download:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AppAutoDownload_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"SrvTweak_Tab\" Header=\"Service Tweaks\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"7*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"UAC Level:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"UAC_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Sharing mapped drives:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SharingMappedDrives_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Administrative Shares:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AdminShares_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Firewall:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Firewall_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"7*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Windows Defender:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinDefender_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"HomeGroups:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"HomeGroups_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Remote Assistance:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RemoteAssistance_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Remote Desktop w/o Network Authentication:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RemoteDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Context_Tab\" Header=\"Context Menu, &#xD;&#xA;Start Menu\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Context Menu\" Grid.Column=\"0\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Cast to Device:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"CastToDevice_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Previous Versions:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PreviousVersions_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Include in Library:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"IncludeinLibrary_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pin To Start:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PinToStart_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pin To Quick Access:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PinToQuickAccess_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Share With/Share:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ShareWith_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Send To:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"SendTo_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Start Menu\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Bing Search:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StartMenuWebSearch_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Start Suggestions:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StartSuggestions_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Most Used Apps:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MostUsedAppStartMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Recent Items/Frequent Places:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RecentItemsFrequent_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Unpin All Items:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UnpinItems_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"TaskBar_Tab\" Header=\"Task Bar\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t<Label Content=\"Battery UI Bar:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"BatteryUIBar_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Clock UI Bar:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"ClockUIBar_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Volume Control Bar:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"VolumeControlBar_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Search box:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarSearchBox_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Task View button:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskViewButton_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Icon Size:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarIconSize_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Item Grouping:\" Grid.Column=\"2\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarGrouping_Combo\" Grid.Column=\"3\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Tray Icons:\" Grid.Column=\"2\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TrayIcons_Combo\" Grid.Column=\"3\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Seconds In Clock:\" Grid.Column=\"2\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"SecondsInClock_Combo\" Grid.Column=\"3\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Last Active Click:\" Grid.Column=\"2\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"LastActiveClick_Combo\" Grid.Column=\"3\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar on Multi Display:\" Grid.Column=\"2\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskBarOnMultiDisplay_Combo\" Grid.Column=\"3\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<Label Content=\"Taskbar Button on Multi Display:\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t<ComboBox Name=\"TaskbarButtOnDisplay_Combo\" Grid.Column=\"2\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Explorer_Tab\" Header=\"Explorer\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"4*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Name=\"Timeline_Row\" Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Recent Files in Quick Access:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"RecentFileQikAcc_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Frequent folders in Quick_access:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"FrequentFoldersQikAcc_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Window Content while Dragging:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinContentWhileDrag_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Search Store for Unkn. Extensions:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"StoreOpenWith_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Long File Path:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"LongFilePath_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Default Explorer View:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ExplorerOpenLoc_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Powershell to Cmd:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"WinXPowerShell_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"App Hibernation File (Swapfile.sys):\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AppHibernationFile_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Process ID on Title Bar:\" Grid.Column=\"0\" Grid.Row=\"8\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"PidInTitleBar_Combo\" Grid.Column=\"1\" Grid.Row=\"8\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Accessability Key Prompt:\" Grid.Column=\"0\" Grid.Row=\"9\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AccessKeyPrmpt_Combo\" Grid.Column=\"1\" Grid.Row=\"9\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Window Timeline:\" Grid.Column=\"0\" Grid.Row=\"10\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Timeline_Combo\" Grid.Column=\"1\" Grid.Row=\"10\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<Grid Grid.Column=\"1\">\n\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t<RowDefinition Name=\"ReopenAppsOnBoot_Row\" Height=\"*\"/>\n\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t<Label Content=\"Aero Snap:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AeroSnap_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Aero Shake:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"AeroShake_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Known Extensions:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"KnownExtensions_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Hidden Files:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"HiddenFiles_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"System Files:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"SystemFiles_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Autoplay:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Autoplay_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Autorun:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"Autorun_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Task Manager Details:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"TaskManagerDetails_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"F1 Help Key:\" Grid.Column=\"0\" Grid.Row=\"8\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"F1HelpKey_Combo\" Grid.Column=\"1\" Grid.Row=\"8\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<Label Content=\"Reopen Apps On Boot:\" Grid.Column=\"0\" Grid.Row=\"9\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t<ComboBox Name=\"ReopenAppsOnBoot_Combo\" Grid.Column=\"1\" Grid.Row=\"9\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t</Grid>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Desktop_Tab\" Header=\"Desktop, This PC\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Header=\"Desktop\" Grid.Column=\"0\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"This PC Icon:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ThisPCOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Network Icon:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"NetworkOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Recycle Bin Icon:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RecycleBinOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Users File Icon:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UsersFileOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Control Panel Icon:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ControlPanelOnDesktop_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"This PC\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Name=\"ThreeDobjectsIconInThisPC_Row\" Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Desktop Folder:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DesktopIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Documents Folder:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DocumentsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Downloads Folder:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"DownloadsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Music Folder:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MusicIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Pictures Folder:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"PicturesIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Videos Folder:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"VideosIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"3D Objects Folder:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ThreeDobjectsIconInThisPC_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"**Remove may cause problems\" Grid.Column=\"0\" Grid.ColumnSpan=\"2\" Grid.Row=\"7\" HorizontalAlignment=\"Center\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Misc_Tab\" Header=\"Photo Viewer, &#xD;&#xA;LockScreen, Misc\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2.5*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<Grid>\n\t\t\t\t\t\t<Grid Grid.Column=\"0\">\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"2*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"4*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<GroupBox Header=\"Photo Viewer\" Grid.Row=\"0\" Margin=\"10\">\n\t\t\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t<Label Content=\"File Association:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PVFileAssociation_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Add Open with...:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PVOpenWithMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t\t</GroupBox>\n\t\t\t\t\t\t\t<GroupBox Header=\"Lockscreen\" Grid.Row=\"1\" Margin=\"5\">\n\t\t\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Lockscreen:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"Lockscreen_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Lockscreen Prompt Password:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"LockscreenPassword_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Power Menu:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"PowerMenuLockScreen_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Camera:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"CameraOnLockscreen_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<Label Content=\"Account Protection Warning:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t\t<ComboBox Name=\"AccountProtectionWarn_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t\t</Grid>\n\t\t\t\t\t\t\t</GroupBox>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</Grid>\n\t\t\t\t\t<GroupBox Header=\"Misc\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"1.5*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"3*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"2*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"ScreenSaver:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ScreenSaver_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Action Center:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"ActionCenter_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Sticky Key Prompt:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"StickyKeyPrompt_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Num Lock on Startup:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"NumblockOnStart_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"F8 Boot Menu:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"F8BootMenu_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Remote UAC Local &#xD;&#xA;Account Token Filter\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RemoteUACAcctToken_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Hibernate Option:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"HibernatePower_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Sleep Option:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"SleepPower_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"WinApp_Tab\" Header=\"Window App\">\n\t\t\t\t<DataGrid Name=\"dataGrid\" AlternationCount=\"2\" AutoGenerateColumns=\"False\" CanUserAddRows=\"False\" HeadersVisibility=\"Column\" IsTabStop=\"True\" SelectionMode=\"Extended\">\n\t\t\t\t\t<DataGrid.RowStyle>\n\t\t\t\t\t\t<Style TargetType=\"{ x:Type DataGridRow }\">\n\t\t\t\t\t\t\t<Style.Triggers>\n\t\t\t\t\t\t\t\t<Trigger Property=\"AlternationIndex\" Value=\"0\"><Setter Property=\"Background\" Value=\"White\"/></Trigger>\n\t\t\t\t\t\t\t\t<Trigger Property=\"AlternationIndex\" Value=\"1\"><Setter Property=\"Background\" Value=\"#FFD8D8D8\"/></Trigger>\n\t\t\t\t\t\t\t</Style.Triggers>\n\t\t\t\t\t\t</Style>\n\t\t\t\t\t</DataGrid.RowStyle>\n\t\t\t\t\t<DataGrid.Columns>\n\t\t\t\t\t\t<DataGridTextColumn Header=\"Display Name\" Width=\"150\" Binding=\"{Binding CName}\" CanUserSort=\"True\" IsReadOnly=\"True\"/>\n\t\t\t\t\t\t<DataGridTemplateColumn Width=\"80\" CanUserSort=\"True\" Header=\"Option\" SortMemberPath=\"AppSelected\">\n\t\t\t\t\t\t\t<DataGridTemplateColumn.CellTemplate>\n\t\t\t\t\t\t\t\t<DataTemplate>\n\t\t\t\t\t\t\t\t\t<ComboBox ItemsSource=\"{Binding AppOptions}\" Text=\"{Binding Path=AppSelected, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}\"/>\n\t\t\t\t\t\t\t\t</DataTemplate>\n\t\t\t\t\t\t\t</DataGridTemplateColumn.CellTemplate>\n\t\t\t\t\t\t</DataGridTemplateColumn>\n\t\t\t\t\t\t<DataGridTextColumn Header=\"Appx Name\" Width=\"180\" Binding=\"{Binding AppxName}\" IsReadOnly=\"True\"/>\n\t\t\t\t\t</DataGrid.Columns>\n\t\t\t\t</DataGrid>\n\t\t\t</TabItem>\n\t\t\t<TabItem Name=\"Application_Tab\" Header=\"Application, &#xD;&#xA;Windows Update\">\n\t\t\t\t<Grid Background=\"#FFE5E5E5\">\n\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t<GroupBox Grid.Column=\"0\" Margin=\"5\" Header=\"Application/Feature\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Name=\"LinuxSubsystem_Row\" Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"OneDrive:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"OneDrive_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"OneDrive Install:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"OneDriveInstall_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Xbox DVR:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"XboxDVR_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"MediaPlayer:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"MediaPlayer_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Work Folders:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WorkFolders_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Fax And Scan:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"FaxAndScan_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Linux Subsystem:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"LinuxSubsystem_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t\t<GroupBox Header=\"Windows Update\" Grid.Column=\"1\" Margin=\"5\">\n\t\t\t\t\t\t<Grid>\n\t\t\t\t\t\t\t<Grid.RowDefinitions>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t\t<RowDefinition Height=\"*\"/>\n\t\t\t\t\t\t\t</Grid.RowDefinitions>\n\t\t\t\t\t\t\t<Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"9*\"/>\n\t\t\t\t\t\t\t\t<ColumnDefinition Width=\"5*\"/>\n\t\t\t\t\t\t\t</Grid.ColumnDefinitions>\n\t\t\t\t\t\t\t<Label Content=\"Check for Update:\" Grid.Column=\"0\" Grid.Row=\"0\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"CheckForWinUpdate_Combo\" Grid.Column=\"1\" Grid.Row=\"0\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Check Type:\" Grid.Column=\"0\" Grid.Row=\"1\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WinUpdateType_Combo\" Grid.Column=\"1\" Grid.Row=\"1\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update P2P:\" Grid.Column=\"0\" Grid.Row=\"2\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"WinUpdateDownload_Combo\" Grid.Column=\"1\" Grid.Row=\"2\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update MSRT:\" Grid.Column=\"0\" Grid.Row=\"3\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateMSRT_Combo\" Grid.Column=\"1\" Grid.Row=\"3\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Driver:\" Grid.Column=\"0\" Grid.Row=\"4\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateDriver_Combo\" Grid.Column=\"1\" Grid.Row=\"4\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Restart on Update:\" Grid.Column=\"0\" Grid.Row=\"5\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"RestartOnUpdate_Combo\" Grid.Column=\"1\" Grid.Row=\"5\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update Available Popup:\" Grid.Column=\"0\" Grid.Row=\"6\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateAvailablePopup_Combo\" Grid.Column=\"1\" Grid.Row=\"6\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<Label Content=\"Update MS Products:\" Grid.Column=\"0\" Grid.Row=\"7\" HorizontalAlignment=\"Right\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t\t<ComboBox Name=\"UpdateMSProducts_Combo\" Grid.Column=\"1\" Grid.Row=\"7\" HorizontalAlignment=\"Left\" VerticalAlignment=\"Center\"/>\n\t\t\t\t\t\t</Grid>\n\t\t\t\t\t</GroupBox>\n\t\t\t\t</Grid>\n\t\t\t</TabItem>\n\t\t</TabControl>\n\t\t<Button Name=\"RunScriptButton\" Content=\"Run Script\" Height=\"20\" Grid.Row=\"2\" VerticalAlignment=\"Bottom\" FontWeight=\"Bold\"/>\n\t</Grid>\n</Window>\n\"@\n\t[Void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')\n\t$Form = [Windows.Markup.XamlReader]::Load( (New-Object System.Xml.XmlNodeReader $xaml) )\n\t$xaml.SelectNodes('//*[@Name]').ForEach{Set-Variable -Name \"WPF_$($_.Name)\" -Value $Form.FindName($_.Name) -Scope Script}\n\t$Runspace = [RunSpaceFactory]::CreateRunspace()\n\t$PowerShell = [PowerShell]::Create()\n\t$PowerShell.RunSpace = $Runspace\n\t$Runspace.Open()\n\t[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null\n\n\t$Script:WPFList = Get-Variable -Name 'WPF_*'\n\t[System.Collections.ArrayList]$VarList = ForEach($Var In (Get-Variable -Name 'WPF_*_Combo')){ $Var.Name.Split('_')[1] }\n\n\t$WPF_Madbomb122WSButton.Add_Click{ OpenWebsite 'https://GitHub.com/madbomb122/' }\n\t$WPF_FeedbackButton.Add_Click{ OpenWebsite \"$MySite/issues\" }\n\t$WPF_FAQButton.Add_Click{ OpenWebsite \"$MySite/blob/master/README.md\" }\n\t$WPF_DonateButton.Add_Click{ OpenWebsite $Donate_Url }\n\t$WPF_CreateRestorePoint_CB.Add_Click{ $WPF_RestorePointName_Txt.IsEnabled = $WPF_CreateRestorePoint_CB.IsChecked }\n\t$WPF_RunScriptButton.Add_Click{ GuiDone }\n\t$WPF_WinDefault_Button.Add_Click{ LoadWinDefault ;SelectComboBox $VarList }\n\t$WPF_ResetDefault_Button.Add_Click{ SetDefault ;SelectComboBox $VarList ;SetAppxVar }\n\t$WPF_Load_Setting_Button.Add_Click{ OpenSaveDiaglog 0 }\n\t$WPF_Save_Setting_Button.Add_Click{ OpenSaveDiaglog 1 }\n\t$WPF_AboutButton.Add_Click{ [Windows.Forms.Messagebox]::Show('This script lets you do Various Settings and Tweaks for Windows 10. For manual or Automated use.','About', 'OK') | Out-Null }\n\t$WPF_CopyrightButton.Add_Click{ [Windows.Forms.Messagebox]::Show($Copyright,'Copyright', 'OK') | Out-Null }\n\n$Skip_EnableD_Disable = @(\n'F1HelpKey',\n'AccessKeyPrmpt',\n'Telemetry',\n'WiFiSense',\n'SmartScreen',\n'LocationTracking',\n'Feedback',\n'AdvertisingID',\n'Cortana',\n'CortanaSearch',\n'ErrorReporting',\n'AutoLoggerFile',\n'DiagTrack',\n'WAPPush',\n'CheckForWinUpdate',\n'UpdateMSRT',\n'UpdateDriver',\n'RestartOnUpdate',\n'AppAutoDownload',\n'AdminShares',\n'Firewall',\n'WinDefender',\n'HomeGroups',\n'RemoteAssistance',\n'CastToDevice',\n'PreviousVersions',\n'IncludeinLibrary',\n'PinToStart',\n'PinToQuickAccess',\n'ShareWith',\n'SendTo',\n'OneDrive',\n'XboxDVR',\n'TaskBarOnMultiDisplay',\n'StartMenuWebSearch',\n'StartSuggestions',\n'RecentItemsFrequent',\n'Autoplay',\n'Autorun',\n'AeroSnap',\n'AeroShake',\n'StoreOpenWith',\n'LockScreen',\n'LockScreenPassword',\n'ScreenSaver',\n'CameraOnLockScreen',\n'ActionCenter',\n'AccountProtectionWarn',\n'StickyKeyPrompt',\n'SleepPower',\n'ReopenAppsOnBoot',\n'Timeline',\n'UpdateAvailablePopup',\n'AppHibernationFile')\n\n$Skip_Enable_DisableD = @(\n'UpdateMSProducts',\n'SharingMappedDrives',\n'RemoteDesktop',\n'LastActiveClick',\n'NumblockOnStart',\n'F8BootMenu',\n'RemoteUACAcctToken',\n'PVFileAssociation',\n'PVOpenWithMenu',\n'LongFilePath')\n\n$Skip_ShowD_Hide = @(\n'TaskbarSearchBox',\n'TaskViewButton',\n'MostUsedAppStartMenu',\n'FrequentFoldersQikAcc',\n'WinContentWhileDrag',\n'RecycleBinOnDesktop',\n'PowerMenuLockScreen')\n\n$Skip_ShowD_Hide_Remove = @(\n'DesktopIconInThisPC',\n'DocumentsIconInThisPC',\n'DownloadsIconInThisPC',\n'ThreeDobjectsIconInThisPC',\n'MusicIconInThisPC',\n'PicturesIconInThisPC',\n'VideosIconInThisPC')\n\n\n$Skip_Show_HideD = @(\n'SecondsInClock',\n'PidInTitleBar',\n'KnownExtensions',\n'HiddenFiles',\n'SystemFiles',\n'TaskManagerDetails',\n'ThisPCOnDesktop',\n'NetworkOnDesktop',\n'UsersFileOnDesktop',\n'ControlPanelOnDesktop')\n\n$Skip_InstalledD_Uninstall = @('OneDriveInstall','MediaPlayer','WorkFolders','FaxAndScan')\n\n\tIf($Release_Type -eq 'Testing'){\n\t\t$Script:Restart = 0\n\t\t$WPF_Restart_CB.IsEnabled = $False\n\t\t$WPF_Restart_CB.Content += ' (Disabled in Testing Version)'\n\t}\n\tIf($Win10Ver -lt 1607){ $WPF_LinuxSubsystem_Row.Height = 0 }\n\tIf($Win10Ver -lt 1709){\n\t\t$WPF_ThreeDobjectsIconInThisPC_Row, $WPF_ReopenAppsOnBoot_Row | Foreach-Object{ $_.Height = 0 }\n\t}\n\tIf($Win10Ver -lt 1803){\n\t\t$WPF_AccountProtectionWarn_Row, $WPF_Timeline_Row | Foreach-Object{ $_.Height = 0 }\n\t}\n\tForEach($Var In $Skip_EnableD_Disable){ SetCombo $Var 'Enable*,Disable' }\n\tForEach($Var In $Skip_Enable_DisableD){ SetCombo $Var 'Enable,Disable*' }\n\tForEach($Var In $Skip_ShowD_Hide_Remove){ SetCombo $Var 'Show/Add*,Hide,Remove**' }\n\tForEach($Var In $Skip_ShowD_Hide){ SetCombo $Var 'Show*,Hide' }\n\tForEach($Var In $Skip_Show_HideD){ SetCombo $Var 'Show,Hide*' }\n\tForEach($Var In $Skip_InstalledD_Uninstall){ SetCombo $Var 'Installed*,Uninstall' }\n\n\tSetCombo 'LinuxSubsystem' 'Installed,Uninstall*'\n\tSetCombo 'HibernatePower' 'Enable,Disable'\n\tSetCombo 'UAC' 'Disable,Normal*,Higher'\n\tSetCombo 'BatteryUIBar' 'New*,Classic'\n\tSetCombo 'ClockUIBar' 'New*,Classic'\n\tSetCombo 'VolumeControlBar' 'New(Horizontal)*,Classic(Vertical)'\n\tSetCombo 'TaskbarIconSize' 'Normal*,Smaller'\n\tSetCombo 'TaskbarGrouping' 'Never,Always*,When Needed'\n\tSetCombo 'TrayIcons' 'Auto*,Always Show'\n\tSetCombo 'TaskBarButtOnDisplay' 'All,Where Window is Open,Main & Where Window is Open'\n\tSetCombo 'UnpinItems' 'Unpin'\n\tSetCombo 'ExplorerOpenLoc' 'Quick Access*,ThisPC'\n\tSetCombo 'RecentFileQikAcc' 'Show/Add*,Hide,Remove'\n\tSetCombo 'WinXPowerShell' 'PowerShell,Command Prompt'\n\tSetCombo 'WinUpdateType' 'Notify,Auto DL,Auto DL+Install*,Admin Config'\n\tSetCombo 'WinUpdateDownload' 'P2P*,Local Only,Disable'\n\n\t$WPF_dataGrid.ItemsSource = $DataGridApps\n\n\tConfigGUIitms\n\t$Form.Title += If($Release_Type -ne 'Stable'){ \" -$Release_Type)\" } Else{ ')' }\n\tIf($Release_Type -eq 'Stable'){ Clear-Host }\n\tDisplayOut 'Displaying GUI Now' -C 14\n\tDisplayOut \"`nTo exit you can close the GUI or PowerShell Window.\" -C 14\n\t$Form.ShowDialog() | Out-Null\n}\n\nFunction GuiDone {\n\tGuiItmToVariable\n\t$Form.Close()\n\t$Script:RunScr = $True\n\tRunScript\n}\n\nFunction GuiItmToVariable {\n\tForEach($Var In $VarList){ Set-Variable -Name $Var -Value ($(Get-Variable -Name ('WPF_'+$Var+'_Combo') -ValueOnly).SelectedIndex) -Scope Script }\n\t$Script:CreateRestorePoint = If($WPF_CreateRestorePoint_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:VersionCheck = If($WPF_VersionCheck_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:InternetCheck = If($WPF_InternetCheck_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:ShowSkipped = If($WPF_ShowSkipped_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:Restart = If($WPF_Restart_CB.IsChecked){ 1 } Else{ 0 }\n\t$Script:RestorePointName = $WPF_RestorePointName_Txt.Text\n}\n\n##########\n# GUI -End\n##########\n# Pre-Made Settings -Start\n##########\n\nFunction LoadWinDefault {\n\t#Privacy Settings\n\t$Script:Telemetry = 1\n\t$Script:WiFiSense = 1\n\t$Script:SmartScreen = 1\n\t$Script:LocationTracking = 1\n\t$Script:Feedback = 1\n\t$Script:AdvertisingID = 1\n\t$Script:Cortana = 1\n\t$Script:CortanaSearch = 1\n\t$Script:ErrorReporting = 1\n\t$Script:AutoLoggerFile = 1\n\t$Script:DiagTrack = 1\n\t$Script:WAPPush = 1\n\n\t#Windows Update\n\t$Script:UpdateMSProducts = 2\n\t$Script:CheckForWinUpdate = 1\n\t$Script:WinUpdateType = 3\n\t$Script:WinUpdateDownload = 1\n\t$Script:UpdateMSRT = 1\n\t$Script:UpdateDriver = 1\n\t$Script:RestartOnUpdate = 1\n\t$Script:AppAutoDownload = 1\n\t$Script:UpdateAvailablePopup = 1\n\n\t#Service Tweaks\n\t$Script:UAC = 2\n\t$Script:SharingMappedDrives = 2\n\t$Script:AdminShares = 1\n\t$Script:Firewall = 1\n\t$Script:WinDefender = 1\n\t$Script:HomeGroups = 1\n\t$Script:RemoteAssistance = 1\n\t$Script:RemoteDesktop = 2\n\n\t#Context Menu Items\n\t$Script:CastToDevice = 1\n\t$Script:PreviousVersions = 1\n\t$Script:IncludeinLibrary = 1\n\t$Script:PinToStart = 1\n\t$Script:PinToQuickAccess = 1\n\t$Script:ShareWith = 1\n\t$Script:SendTo = 1\n\n\t#Task Bar Items\n\t$Script:BatteryUIBar = 1\n\t$Script:ClockUIBar = 1\n\t$Script:VolumeControlBar = 1\n\t$Script:TaskbarSearchBox = 1\n\t$Script:TaskViewButton = 1\n\t$Script:TaskbarIconSize = 1\n\t$Script:TaskbarGrouping = 2\n\t$Script:TrayIcons = 1\n\t$Script:SecondsInClock = 2\n\t$Script:LastActiveClick = 2\n\t$Script:TaskBarOnMultiDisplay = 1\n\n\t#Star Menu Items\n\t$Script:StartMenuWebSearch = 1\n\t$Script:StartSuggestions = 1\n\t$Script:MostUsedAppStartMenu = 1\n\t$Script:RecentItemsFrequent = 1\n\n\t#Explorer Items\n\t$Script:AccessKeyPrmpt = 1\n\t$Script:F1HelpKey = 1\n\t$Script:Autoplay = 1\n\t$Script:Autorun = 1\n\t$Script:PidInTitleBar = 2\n\t$Script:AeroSnap = 1\n\t$Script:AeroShake = 1\n\t$Script:KnownExtensions = 2\n\t$Script:HiddenFiles = 2\n\t$Script:SystemFiles = 2\n\t$Script:ExplorerOpenLoc = 1\n\t$Script:RecentFileQikAcc = 1\n\t$Script:FrequentFoldersQikAcc = 1\n\t$Script:WinContentWhileDrag = 1\n\t$Script:StoreOpenWith = 1\n\t$Script:WinXPowerShell = If($Win10Ver -ge 1703){ 1 } Else{ 2 }\n\t$Script:TaskManagerDetails = 2\n\t$Script:ReopenAppsOnBoot = 1\n\t$Script:Timeline = 1\n\t$Script:LongFilePath = 2\n\t$Script:AppHibernationFile = 1\n\n\t#'This PC' Items\n\t$Script:DesktopIconInThisPC = 1\n\t$Script:DocumentsIconInThisPC = 1\n\t$Script:DownloadsIconInThisPC = 1\n\t$Script:MusicIconInThisPC = 1\n\t$Script:PicturesIconInThisPC = 1\n\t$Script:VideosIconInThisPC = 1\n\t$Script:ThreeDobjectsIconInThisPC = 1\n\n\t#Desktop Items\n\t$Script:ThisPCOnDesktop = 2\n\t$Script:NetworkOnDesktop = 2\n\t$Script:RecycleBinOnDesktop = 1\n\t$Script:UsersFileOnDesktop = 2\n\t$Script:ControlPanelOnDesktop = 2\n\n\t#Lock Screen\n\t$Script:LockScreen = 1\n\t$Script:ScreenSaver = 1\n\t$Script:PowerMenuLockScreen = 1\n\t$Script:CameraOnLockScreen = 1\n\n\t#Misc items\n\t$Script:LockscreenPassword = 1\n\t$Script:AccountProtectionWarn = 1\n\t$Script:ActionCenter = 1\n\t$Script:StickyKeyPrompt = 1\n\t$Script:NumblockOnStart = 2\n\t$Script:F8BootMenu = 1\n\t$Script:RemoteUACAcctToken = 2\n\t$Script:SleepPower = 1\n\n\t# Photo Viewer Settings\n\t$Script:PVFileAssociation = 2\n\t$Script:PVOpenWithMenu = 2\n\n\t# Remove unwanted applications\n\t$Script:OneDrive = 1\n\t$Script:OneDriveInstall = 1\n\t$Script:XboxDVR = 1\n\t$Script:MediaPlayer = 1\n\t$Script:WorkFolders = 1\n\t$Script:FaxAndScan = 1\n\t$Script:LinuxSubsystem = 2\n}\n\n##########\n# Pre-Made Settings -End\n##########\n# Script -Start\n##########\n\nFunction RunScript {\n\tIf($VersionCheck -eq 1){ UpdateCheck }\n\n\tBoxItem 'Pre-Script'\n\tIf($CreateRestorePoint -eq 0 -And $ShowSkipped -eq 1) {\n\t\tDisplayOut 'Skipping Creation of System Restore Point...' -C 15\n\t} ElseIf($CreateRestorePoint -eq 1) {\n\t\tDisplayOut \"Creating System Restore Point Named '$RestorePointName'\" -C 11\n\t\tDisplayOut 'Please Wait...' -C 11\n\t\tCheckpoint-Computer -Description $RestorePointName | Out-Null\n\t}\n\n\tIf(!(Test-Path 'HKCR:')){ New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null }\n\tIf(!(Test-Path 'HKU:')){ New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null }\n\t$AppxCount = 0\n\n\tBoxItem 'Windows App Items'\n\t$APPS_AppsUnhide += ($DataGridApps.Where{$_.AppSelected -eq 'Unhide'}).AppxName\n\t$APPS_AppsHide += ($DataGridApps.Where{$_.AppSelected -eq 'Hide'}).AppxName\n\t$APPS_AppsUninstall += ($DataGridApps.Where{$_.AppSelected -eq 'Uninstall'}).AppxName\n\n\t$Ah = $APPS_AppsHide.Length\n\t$Au = $APPS_AppsUninstall.Length\n\tIf($Ah -gt 0 -or $Au  -gt 0){ $AppxPackages = Get-AppxProvisionedPackage -online | select-object PackageName,Displayname }\n\n\tDisplayOut \"---List of Apps Being Unhidden---\" -C 11\n\tIf($APPS_AppsUnhide.Length -gt 0) {\n\t\tForEach($AppI In $APPS_AppsUnhide) {\n\t\t\t$AppInst = Get-AppxPackage -AllUsers $AppI\n\t\t\tIf($AppInst -ne $null) {\n\t\t\t\tDisplayOut $AppI -C 11\n\t\t\t\tForEach($App In $AppInst){\n\t\t\t\t\t$AppxCount++\n\t\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\t\tStart-Job -Name $Job -ScriptBlock {\n\t\t\t\t\t\t$AppIJob = $using:App\n\t\t\t\t\t\t$TempIJob = $($AppIJob.InstallLocation)\n\t\t\t\t\t\tAdd-AppxPackage -DisableDevelopmentMode -Register \"$TempIJob\\AppXManifest.xml\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"Unable to Unhide $AppI\" -C 11\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Unhidden' -C 11\n\t}\n\tDisplayOut \"`n---List of Apps Being Hiddden---\" -C 12\n\tIf($Ah -gt 0) {\n\t\tForEach($AppH In $APPS_AppsHide) {\n\t\t\tIf($AppxPackages.DisplayName.Contains($AppH)) {\n\t\t\t\tDisplayOut $AppH -C 12\n\t\t\t\t$AppxCount++\n\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\tStart-Job -Name $Job -ScriptBlock { Get-AppxPackage $using:AppH | Remove-AppxPackage | Out-null }\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"$AppH Isn't Installed\" -C 12\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Hidden' -C 12\n\t}\n\tDisplayOut \"`n---List of Apps Being Uninstalled---\" -C 14\n\tIf($Au -gt 0) {\n\t\tForEach($AppU In $APPS_AppsUninstall) {\n\t\t\tIf($AppxPackages.DisplayName.Contains($AppU)) {\n\t\t\t\tDisplayOut $AppU -C 14\n\t\t\t\t$PackageFullName = (Get-AppxPackage $AppU).PackageFullName\n\t\t\t\t$ProPackageFullName = ($AppxPackages.Where{$_.Displayname -eq $AppU}).PackageName\n\t\t\t\t# Alt removal: DISM /Online /Remove-ProvisionedAppxPackage /PackageName:\n\t\t\t\t$AppxCount++\n\t\t\t\t$Job = \"Win10Script$AppxCount\"\n\t\t\t\tStart-Job -Name $Job -ScriptBlock {\n\t\t\t\t\tRemove-AppxPackage -Package $using:PackageFullName | Out-null\n\t\t\t\t\tRemove-AppxProvisionedPackage -Online -PackageName $using:ProPackageFullName | Out-null\n\t\t\t\t}\n\t\t\t} Else {\n\t\t\t\tDisplayOut \"$AppU Isn't Installed\" -C 14\n\t\t\t}\n\t\t}\n\t} Else {\n\t\tDisplayOut 'No Apps being Uninstalled' -C 14\n\t}\n\n\tBoxItem 'Privacy Settings'\n\t$TelemetryTask = @(\n\t'Microsoft\\Windows\\Application Experience\\Microsoft Compatibility Appraiser',\n\t'Microsoft\\Windows\\Application Experience\\ProgramDataUpdater',\n\t'Microsoft\\Windows\\Autochk\\Proxy',\n\t'Microsoft\\Windows\\Customer Experience Improvement Program\\Consolidator',\n\t'Microsoft\\Windows\\Customer Experience Improvement Program\\UsbCeip',\n\t'Microsoft\\Windows\\DiskDiagnostic\\Microsoft-Windows-DiskDiagnosticDataCollector',\n\t'Microsoft\\Office\\Office ClickToRun Service Monitor',\n\t'Microsoft\\Office\\OfficeTelemetryAgentFallBack2016',\n\t'Microsoft\\Office\\OfficeTelemetryAgentLogOn2016')\n\n\tIf($Telemetry -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Telemetry...' -C 15 }\n\t} ElseIf($Telemetry -eq 1) {\n\t\tDisplayOut 'Enabling Telemetry...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0 }\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\PreviewBuilds' -Name 'AllowBuildPreview'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Software Protection Platform' -Name 'NoGenTicket'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\SQMClient\\Windows' -Name 'CEIPEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat' -Name 'AITEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat' -Name 'DisableInventory'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\AppV\\CEIP' -Name 'CEIPEnable'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\TabletPC' -Name 'PreventHandwritingDataSharing'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\TextInput' -Name 'AllowLinguisticDataCollection'\n\t\tForeach($task in $TelemetryTask){ Enable-ScheduledTask -TaskName $task | Out-Null }\n\t} ElseIf($Telemetry -eq 2) {\n\t\tDisplayOut 'Disabling Telemetry...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection' -Name 'AllowTelemetry' -Type DWord -Value 0 }\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\PreviewBuilds'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowBuildPreview' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Software Protection Platform'\n\t\tSet-ItemProperty -Path $Path -Name 'NoGenTicket' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\SQMClient\\Windows'\n\t\tSet-ItemProperty -Path $Path -Name 'CEIPEnable' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AppCompat'\n\t\tSet-ItemProperty -Path $Path -Name 'AITEnable' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'DisableInventory' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\AppV\\CEIP'\n\t\tSet-ItemProperty -Path $Path -Name 'CEIPEnable' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\TabletPC'\n\t\tSet-ItemProperty -Path $Path -Name 'PreventHandwritingDataSharing' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\TextInput'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowLinguisticDataCollection' -Type DWord -Value 0\n\t\tForeach($task in $TelemetryTask){ Disable-ScheduledTask -TaskName $task | Out-Null }\n\t}\n\n\tIf($WiFiSense -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Wi-Fi Sense...' -C 15 }\n\t} ElseIf($WiFiSense -eq 1) {\n\t\tDisplayOut 'Enabling Wi-Fi Sense...' -C 11\n\t\t$Path1 = 'HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\default\\WiFi'\n\t\t$Path = CheckSetPath \"$Path1\\AllowWiFiHotSpotReporting\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path1\\AllowAutoConnectToWiFiSenseHotspots\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config'\n\t\tSet-ItemProperty -Path $Path -Name 'AutoConnectAllowedOEM' -Type Dword -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'WiFISenseAllowed' -Type Dword -Value 0\n\t} ElseIf($WiFiSense -eq 2) {\n\t\tDisplayOut 'Disabling Wi-Fi Sense...' -C 12\n\t\t$Path1 = 'HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\default\\WiFi'\n\t\t$Path = CheckSetPath \"$Path1\\AllowWiFiHotSpotReporting\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 0\n\t\t$Path = CheckSetPath \"$Path1\\AllowAutoConnectToWiFiSenseHotspots\"\n\t\tSet-ItemProperty -Path $Path -Name 'Value' -Type DWord -Value 0\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config' -Name 'AutoConnectAllowedOEM'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WcmSvc\\wifinetworkmanager\\config' -Name 'WiFISenseAllowed'\n\t}\n\n\tIf($SmartScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping SmartScreen Filter...' -C 15 }\n\t} ElseIf($SmartScreen -eq 1) {\n\t\tDisplayOut 'Enabling SmartScreen Filter...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'SmartScreenEnabled' -Type String -Value 'RequireAdmin'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppHost' -Name 'EnableWebContentEvaluation'\n\t\tIf($Win10Ver -ge 1703) {\n\t\t\t$AddPath = (Get-AppxPackage -AllUsers 'Microsoft.MicrosoftEdge').PackageFamilyName\n\t\t\t$Path = \"HKCU:\\SOFTWARE\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$AddPath\\MicrosoftEdge\\PhishingFilter\"\n\t\t\tRemove-ItemProperty -Path $Path -Name 'EnabledV9'\n\t\t\tRemove-ItemProperty -Path $Path -Name 'PreventOverride'\n\t\t}\n\t} ElseIf($SmartScreen -eq 2) {\n\t\tDisplayOut 'Disabling SmartScreen Filter...' -C 12\n\t\t$Path = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion'\n\t\tSet-ItemProperty -Path \"HKLM:\\$Path\\Explorer\" -Name 'SmartScreenEnabled' -Type String -Value 'Off'\n\t\tSet-ItemProperty -Path \"HKCU:\\$Path\\AppHost\" -Name 'EnableWebContentEvaluation' -Type DWord -Value 0\n\t\tIf($Win10Ver -ge 1703) {\n\t\t\t$AddPath = (Get-AppxPackage -AllUsers 'Microsoft.MicrosoftEdge').PackageFamilyName\n\t\t\t$Path = CheckSetPath \"HKCU:\\SOFTWARE\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$AddPath\\MicrosoftEdge\\PhishingFilter\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'EnabledV9' -Type DWord -Value 0\n\t\t\tSet-ItemProperty -Path $Path -Name 'PreventOverride' -Type DWord -Value 0\n\t\t}\n\t}\n\n\tIf($LocationTracking -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Location Tracking...' -C 15 }\n\t} ElseIf($LocationTracking -eq 1) {\n\t\tDisplayOut 'Enabling Location Tracking...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}' -Name 'SensorPermissionState' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration' -Name 'Status' -Type DWord -Value 1\n\t} ElseIf($LocationTracking -eq 2) {\n\t\tDisplayOut 'Disabling Location Tracking...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}' -Name 'SensorPermissionState' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration' -Name 'Status' -Type DWord -Value 0\n\t}\n\n\tIf($Feedback -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Feedback...' -C 15 }\n\t} ElseIf($Feedback -eq 1) {\n\t\tDisplayOut 'Enabling Feedback...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules' -Name 'NumberOfSIUFInPeriod'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'DoNotShowFeedbackNotifications'\n\t\tEnable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClient' | Out-Null\n\t\tEnable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClientOnScenarioDownload' | Out-Null\n\t} ElseIf($Feedback -eq 2) {\n\t\tDisplayOut 'Disabling Feedback...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules'\n\t\tSet-ItemProperty -Path $Path -Name 'NumberOfSIUFInPeriod' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection' -Name 'DoNotShowFeedbackNotifications' -Type DWord -Value 1\n\t\tDisable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClient' | Out-Null \n\t\tDisable-ScheduledTask -TaskName 'Microsoft\\Windows\\Feedback\\Siuf\\DmClientOnScenarioDownload' | Out-Null \n\t}\n\n\tIf($AdvertisingID -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Advertising ID...' -C 15 }\n\t} ElseIf($AdvertisingID -eq 1) {\n\t\tDisplayOut 'Enabling Advertising ID...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo' -Name 'Enabled'\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Privacy'\n\t\tSet-ItemProperty -Path $Path -Name 'TailoredExperiencesWithDiagnosticDataEnabled' -Type DWord -Value 2\n\t} ElseIf($AdvertisingID -eq 2) {\n\t\tDisplayOut 'Disabling Advertising ID...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo'\n\t\tSet-ItemProperty -Path $Path -Name 'Enabled' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Privacy'\n\t\tSet-ItemProperty -Path $Path -Name 'TailoredExperiencesWithDiagnosticDataEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($Cortana -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cortana...' -C 15 }\n\t} ElseIf($Cortana -eq 1) {\n\t\tDisplayOut 'Enabling Cortana...' -C 11\n\t\t$Path = 'HKCU:\\SOFTWARE\\Microsoft\\InputPersonalization'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Personalization\\Settings' -Name 'AcceptedPrivacyPolicy'\n\t\tRemove-ItemProperty -Path \"$Path\\TrainedDataStore\" -Name 'HarvestContacts'\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tRemove-ItemProperty -Path $Path -Name 'AllowCortanaAboveLock'\n\t\tRemove-ItemProperty -Path $Path -Name 'ConnectedSearchUseWeb'\n\t\tRemove-ItemProperty -Path $Path -Name 'ConnectedSearchPrivacy'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWebSearch' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Preferences\\'\n\t\tSet-ItemProperty -Path $Path -Name 'VoiceActivationEnableAboveLockscreen' -Type DWord -Value 1\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\InputPersonalization' -Name 'AllowInputPersonalization'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCortanaButton\" -Type DWord -Value 0\n\t} ElseIf($Cortana -eq 2) {\n\t\tDisplayOut 'Disabling Cortana...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Personalization\\Settings'\n\t\tSet-ItemProperty -Path $Path -Name 'AcceptedPrivacyPolicy' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\InputPersonalization'\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitTextCollection' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'RestrictImplicitInkCollection' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path\\TrainedDataStore\"\n\t\tSet-ItemProperty -Path $Path -Name 'HarvestContacts' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowCortanaAboveLock' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'ConnectedSearchUseWeb' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'ConnectedSearchPrivacy' -Type DWord -Value 3\n\t\tRemove-ItemProperty -Path $Path -Name 'DisableWebSearch'\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Preferences\\'\n\t\tSet-ItemProperty -Path $Path -Name 'VoiceActivationEnableAboveLockscreen' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\InputPersonalization'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowInputPersonalization' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name \"ShowCortanaButton\" -Type DWord -Value 1\n\t}\n\n\tIf($CortanaSearch -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cortana Search...' -C 15 }\n\t} ElseIf($CortanaSearch -eq 1) {\n\t\tDisplayOut 'Enabling Cortana Search...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search' -Name 'AllowCortana'\n\t} ElseIf($CortanaSearch -eq 2) {\n\t\tDisplayOut 'Disabling Cortana Search...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowCortana' -Type DWord -Value 0\n\t}\n\n\tIf($ErrorReporting -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Error Reporting...' -C 15 }\n\t} ElseIf($ErrorReporting -eq 1) {\n\t\tDisplayOut 'Enabling Error Reporting...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting' -Name 'Disabled'\n\t} ElseIf($ErrorReporting -eq 2) {\n\t\tDisplayOut 'Disabling Error Reporting...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting' -Name 'Disabled' -Type DWord -Value 1\n\t}\n\n\tIf($AutoLoggerFile -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping AutoLogger...' -C 15 }\n\t} ElseIf($AutoLoggerFile -eq 1) {\n\t\tDisplayOut 'Unrestricting AutoLogger Directory...' -C 11\n\t\t$autoLoggerDir = \"$Env:PROGRAMDATA\\Microsoft\\Diagnosis\\ETLLogs\\AutoLogger\"\n\t\ticacls $autoLoggerDir /grant:r SYSTEM:`(OI`)`(CI`)F | Out-Null\n\t\t$Path = CheckSetPath 'HKLM:\\SYSTEM\\ControlSet001\\Control\\WMI\\AutoLogger\\AutoLogger-Diagtrack-Listener'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 1\n\t\t$Path += '\\{DD17FA14-CDA6-7191-9B61-37A28F7A10DA}'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 1\n\t} ElseIf($AutoLoggerFile -eq 2) {\n\t\tDisplayOut 'Removing AutoLogger File and Restricting Directory...' -C 12\n\t\t$autoLoggerDir = \"$Env:PROGRAMDATA\\Microsoft\\Diagnosis\\ETLLogs\\AutoLogger\"\n\t\tRemoveSetPath \"$autoLoggerDir\\AutoLogger-Diagtrack-Listener.etl\"\n\t\ticacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null\n\t\t$Path = CheckSetPath 'HKLM:\\SYSTEM\\ControlSet001\\Control\\WMI\\AutoLogger\\AutoLogger-Diagtrack-Listener'\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 0\n\t\t$Path = CheckSetPath \"$Path\\{DD17FA14-CDA6-7191-9B61-37A28F7A10DA}\"\n\t\tSet-ItemProperty -Path $Path -Name 'Start' -Type DWord -Value 0\n\t}\n\n\tIf($DiagTrack -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Diagnostics Tracking...' -C 15 }\n\t} ElseIf($DiagTrack -eq 1) {\n\t\tDisplayOut 'Enabling and Starting Diagnostics Tracking Service...' -C 11\n\t\tSet-Service 'DiagTrack' -StartupType Automatic\n\t\tStart-Service 'DiagTrack'\n\t} ElseIf($DiagTrack -eq 2) {\n\t\tDisplayOut 'Stopping and Disabling Diagnostics Tracking Service...' -C 12\n\t\tStop-Service 'DiagTrack'\n\t\tSet-Service 'DiagTrack' -StartupType Disabled\n\t}\n\n\tIf($WAPPush -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping WAP Push...' -C 15 }\n\t} ElseIf($WAPPush -eq 1) {\n\t\tDisplayOut 'Enabling and Starting WAP Push Service...' -C 11\n\t\tSet-Service 'dmwappushservice' -StartupType Automatic\n\t\tStart-Service 'dmwappushservice'\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\dmwappushservice' -Name 'DelayedAutoStart' -Type DWord -Value 1\n\t} ElseIf($WAPPush -eq 2) {\n\t\tDisplayOut 'Disabling WAP Push Service...' -C 12\n\t\tStop-Service 'dmwappushservice'\n\t\tSet-Service 'dmwappushservice' -StartupType Disabled\n\t}\n\n\tIf($AppAutoDownload -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping App Auto Download...' -C 15 }\n\t} ElseIf($AppAutoDownload -eq 1) {\n\t\tDisplayOut 'Enabling App Auto Download...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsStore\\WindowsUpdate' -Name 'AutoDownload' -Type DWord -Value 0\n\t\tRemove-ItemProperty  -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent' -Name 'DisableWindowsConsumerFeatures'\n\t} ElseIf($AppAutoDownload -eq 2) {\n\t\tDisplayOut 'Disabling App Auto Download...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsStore\\WindowsUpdate'\n\t\tSet-ItemProperty -Path $Path -Name 'AutoDownload' -Type DWord -Value 2\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWindowsConsumerFeatures' -Type DWord -Value 1\n\t\tIf($Win10Ver -le 1803) {\n\t\t\t$key = Get-ChildItem -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\" -Recurse | Where-Object { $_ -like \"*windows.data.placeholdertilecollection\\Current\" }\n\t\t\t$data = (Get-ItemProperty -Path $key.PSPath -Name \"Data\").Data[0..15]\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $data\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tBoxItem 'Windows Update Settings'\n\tIf($UpdateMSProducts -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Updates for other Microsoft products...' -C 15 }\n\t} ElseIf($UpdateMSProducts -eq 1) {\n\t\tDisplayOut 'Enabling Updates for other Microsoft products...' -C 11\n\t\t(New-Object -ComObject Microsoft.Update.ServiceManager).AddService2(\"7971f918-a847-4430-9279-4a52d1efe18d\", 7, \"\") | Out-Null\n\t} ElseIf($UpdateMSProducts -eq 2) {\n\t\tDisplayOut 'Disabling Updates for other Microsoft products...' -C 12\n\t\t(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService(\"7971f918-a847-4430-9279-4a52d1efe18d\") | Out-Null\n\t}\n\n\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate'\n\tIf($CheckForWinUpdate -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Check for Windows Update...' -C 15 }\n\t} ElseIf($CheckForWinUpdate -eq 1) {\n\t\tDisplayOut 'Enabling Check for Windows Update...' -C 11\n\t\tRemove-ItemProperty -Path $Path -Name 'SetDisableUXWUAccess' -Type DWord -Value 0\n\t} ElseIf($CheckForWinUpdate -eq 2) {\n\t\tDisplayOut 'Disabling Check for Windows Update...' -C 12\n\t\tNew-ItemProperty -Path $Path -Name 'SetDisableUXWUAccess' -Type DWord -Value 1\n\t}\n\n\tIf($WinUpdateType -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update Check Type...' -C 15 }\n\t} ElseIf($WinUpdateType -In 1..4) {\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tIf($WinUpdateType -eq 1) {\n\t\t\tDisplayOut 'Notify for windows update download and notify for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 2\n\t\t} ElseIf($WinUpdateType -eq 2) {\n\t\t\tDisplayOut 'Auto Download for windows update download and notify for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 3\n\t\t} ElseIf($WinUpdateType -eq 3) {\n\t\t\tDisplayOut 'Auto Download for windows update download and schedule for install...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 4\n\t\t} ElseIf($WinUpdateType -eq 4) {\n\t\t\tDisplayOut 'Windows update allow local admin to choose setting...' -C 14\n\t\t\tSet-ItemProperty -Path $Path -Name 'AUOptions' -Type DWord -Value 5\n\t\t}\n\t}\n\n\tIf($WinUpdateDownload -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update P2P...' -C 15 }\n\t} ElseIf($WinUpdateDownload -eq 1) {\n\t\tDisplayOut 'Unrestricting Windows Update P2P to Internet...' -C 14\n\t\t$Path = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\tRemove-ItemProperty -Path \"HKLM:\\$Path\\Config\" -Name 'DODownloadMode'\n\t\tRemove-ItemProperty -Path \"HKCU:\\$Path\" -Name 'SystemSettingsDownloadMode'\n\t} ElseIf($WinUpdateDownload -eq 2) {\n\t\tDisplayOut 'Restricting Windows Update P2P only to local network...' -C 14\n\t\t$Path1 = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\t$Path = CheckSetPath \"HKCU:\\$Path1\"\n\t\tSet-ItemProperty -Path $Path -Name 'SystemSettingsDownloadMode' -Type DWord -Value 3\n\t\tIf($Win10Ver -eq 1507) {\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\\Config\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 1\n\t\t} ElseIf($Win10Ver -le 1607) {\n\t\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization'\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 1\n\t\t} Else {\n\t\t\tRemove-ItemProperty -Path \"HKLM:\\$Path1\" -Name \"DODownloadMode\"\n\t\t}\n\t} ElseIf($WinUpdateDownload -eq 3) {\n\t\tDisplayOut 'Disabling Windows Update P2P...' -C 12\n\t\t$Path1 = 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization'\n\t\t$Path = CheckSetPath \"HKCU:\\$Path1\"\n\t\tSet-ItemProperty -Path $Path -Name 'SystemSettingsDownloadMode' -Type DWord -Value 3\n\t\tIf($Win10Ver -eq 1507){\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\\Config\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 0\n\t\t} Else {\n\t\t\t$Path = CheckSetPath \"HKLM:\\$Path1\"\n\t\t\tSet-ItemProperty -Path $Path -Name 'DODownloadMode' -Type DWord -Value 100\n\t\t}\n\t}\n\n\tIf($RestartOnUpdate -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Update Automatic Restart...' -C 15 }\n\t} ElseIf($RestartOnUpdate -eq 1) {\n\t\tDisplayOut 'Enabling Windows Update Automatic Restart...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings' -Name 'UxOption' -Type DWord -Value 0\n\t\t$Path = 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tRemove-ItemProperty -Path $Path -Name 'NoAutoRebootWithLoggedOnUsers'\n\t\tRemove-ItemProperty -Path $Path -Name 'AUPowerManagement'\n\t} ElseIf($RestartOnUpdate -eq 2) {\n\t\tDisplayOut 'Disabling Windows Update Automatic Restart...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings' -Name 'UxOption' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate\\AU'\n\t\tSet-ItemProperty -Path $Path -Name 'NoAutoRebootWithLoggedOnUsers' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'AUPowerManagement' -Type DWord -Value 0\n\t}\n\n\tIf($UpdateMSRT -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Malicious Software Removal Tool Update...' -C 15 }\n\t} ElseIf($UpdateMSRT -eq 1) {\n\t\tDisplayOut 'Enabling Malicious Software Removal Tool Update...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\MRT' -Name 'DontOfferThroughWUAU'\n\t} ElseIf($UpdateMSRT -eq 2) {\n\t\tDisplayOut 'Disabling Malicious Software Removal Tool Update...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\MRT'\n\t\tSet-ItemProperty -Path $Path -Name 'DontOfferThroughWUAU' -Type DWord -Value 1\n\t}\n\n\tIf($UpdateDriver -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Driver Update Through Windows Update...' -C 15 }\n\t} ElseIf($UpdateDriver -eq 1) {\n\t\tDisplayOut 'Enabling Driver Update Through Windows Update...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching' -Name 'SearchOrderConfig'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate' -Name 'ExcludeWUDriversInQualityUpdate'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata' -Name 'PreventDeviceMetadataFromNetwork'\n\t} ElseIf($UpdateDriver -eq 2) {\n\t\tDisplayOut 'Disabling Driver Update Through Windows Update...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching' -Name 'SearchOrderConfig' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsUpdate'\n\t\tSet-ItemProperty -Path $Path -Name 'ExcludeWUDriversInQualityUpdate' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Device Metadata'\n\t\tSet-ItemProperty -Path $Path -Name 'PreventDeviceMetadataFromNetwork' -Type DWord -Value 1\n\t}\n\n\tIf($UpdateAvailablePopup -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Update Available Popup...' -C 15 }\n\t} ElseIf($UpdateAvailablePopup -eq 1) {\n\t\tDisplayOut 'Enabling Update Available Popup...' -C 11\n\t\tForEach($File In $musnotification_files){\n\t\t\tICACLS $File /remove:d '\"Everyone\"' | out-null\n\t\t\tICACLS $File /grant ('Everyone' + ':(OI)(CI)F') | out-null\n\t\t\tICACLS $File /setowner 'NT SERVICE\\TrustedInstaller'\n\t\t\tICACLS $File /remove:g '\"Everyone\"' | out-null\n\t\t}\n\t} ElseIf($UpdateAvailablePopup -eq 2) {\n\t\tDisplayOut 'Disabling Update Available Popup...' -C 12\n\t\tForEach($File In $musnotification_files){\n\t\t\tTakeown /f $File | out-null\n\t\t\tICACLS $File /deny '\"Everyone\":(F)' | out-null\n\t\t}\n\t}\n\n\tBoxItem 'Service Tweaks'\n\tIf($UAC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping UAC Level...' -C 15 }\n\t} ElseIf($UAC -eq 1) {\n\t\tDisplayOut 'Lowering UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 0\n\t} ElseIf($UAC -eq 2) {\n\t\tDisplayOut 'Default UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 5\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 1\n\t} ElseIf($UAC -eq 3) {\n\t\tDisplayOut 'Raising UAC level...' -C 14\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System'\n\t\tSet-ItemProperty -Path $Path -Name 'ConsentPromptBehaviorAdmin' -Type DWord -Value 2\n\t\tSet-ItemProperty -Path $Path -Name 'PromptOnSecureDesktop' -Type DWord -Value 1\n\t}\n\n\tIf($SharingMappedDrives -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sharing Mapped Drives between Users...' -C 15 }\n\t} ElseIf($SharingMappedDrives -eq 1) {\n\t\tDisplayOut 'Enabling Sharing Mapped Drives between Users...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'EnableLinkedConnections' -Type DWord -Value 1\n\t} ElseIf($SharingMappedDrives -eq 2) {\n\t\tDisplayOut 'Disabling Sharing Mapped Drives between Users...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'EnableLinkedConnections'\n\t}\n\n\tIf($AdminShares -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hidden Administrative Shares...' -C 15 }\n\t} ElseIf($AdminShares -eq 1) {\n\t\tDisplayOut 'Enabling Hidden Administrative Shares...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters' -Name 'AutoShareWks'\n\t} ElseIf($AdminShares -eq 2) {\n\t\tDisplayOut 'Disabling Hidden Administrative Shares...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters' -Name 'AutoShareWks' -Type DWord -Value 0\n\t}\n\n\tIf($Firewall -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Firewall...' -C 15 }\n\t} ElseIf($Firewall -eq 1) {\n\t\tDisplayOut 'Enabling Firewall...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile' -Name 'EnableFirewall'\n\t} ElseIf($Firewall -eq 2) {\n\t\tDisplayOut 'Disabling Firewall...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\WindowsFirewall\\StandardProfile'\n\t\tSet-ItemProperty -Path $Path -Name 'EnableFirewall' -Type DWord -Value 0\n\t}\n\n\tIf($WinDefender -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Defender...' -C 15 }\n\t} ElseIf($WinDefender -eq 1) {\n\t\tDisplayOut 'Enabling Windows Defender...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender' -Name 'DisableAntiSpyware'\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'\n\t\tIf($Win10Ver -lt 1703){ $RegName = 'WindowsDefender' } Else{ $RegName = 'SecurityHealth' }\n\t\tSet-ItemProperty -Path $Path -Name $RegName -Type ExpandString -Value \"`\"%ProgramFiles%\\Windows Defender\\MSASCuiL.exe`\"\"\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\Spynet'\n\t} ElseIf($WinDefender -eq 2) {\n\t\tDisplayOut 'Disabling Windows Defender...' -C 12\n\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run'\n\t\tIf($Win10Ver -lt 1703){ $RegName = 'WindowsDefender' } Else{ $RegName = 'SecurityHealth' }\n\t\tRemove-ItemProperty -Path $Path -Name $RegName\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows Defender\\'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableAntiSpyware' -Type DWord -Value 1\n\t\t$Path = CheckSetPath \"$Path\\Spynet\"\n\t\tSet-ItemProperty -Path $Path -Name 'SpynetReporting' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubmitSamplesConsent' -Type DWord -Value 2\n\t}\n\n\tIf($HomeGroups -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Home Groups Services...' -C 15 }\n\t} ElseIf($HomeGroups -eq 1) {\n\t\tDisplayOut 'Enabling Home Groups Services...' -C 11\n\t\tSet-Service 'HomeGroupListener' -StartupType Manual\n\t\tSet-Service 'HomeGroupProvider' -StartupType Manual\n\t\tStart-Service 'HomeGroupProvider'\n\t} ElseIf($HomeGroups -eq 2) {\n\t\tDisplayOut 'Disabling Home Groups Services...' -C 12\n\t\tStop-Service 'HomeGroupListener'\n\t\tSet-Service 'HomeGroupListener' -StartupType Disabled\n\t\tStop-Service 'HomeGroupProvider'\n\t\tSet-Service 'HomeGroupProvider' -StartupType Disabled\n\t}\n\n\tIf($RemoteAssistance -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote Assistance...' -C 15 }\n\t} ElseIf($RemoteAssistance -eq 1) {\n\t\tDisplayOut 'Enabling Remote Assistance...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance' -Name 'fAllowToGetHelp' -Type DWord -Value 1\n\t} ElseIf($RemoteAssistance -eq 2) {\n\t\tDisplayOut 'Disabling Remote Assistance...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance' -Name 'fAllowToGetHelp' -Type DWord -Value 0\n\t}\n\n\tIf($RemoteDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote Desktop...' -C 15 }\n\t} ElseIf($RemoteDesktop -eq 1) {\n\t\tDisplayOut 'Enabling Remote Desktop w/o Network Level Authentication...' -C 11\n\t\t$Path = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server'\n\t\tSet-ItemProperty -Path $Path -Name 'fDenyTSConnections' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\WinStations\\RDP-Tcp\" -Name 'UserAuthentication' -Type DWord -Value 0\n\t} ElseIf($RemoteDesktop -eq 2) {\n\t\tDisplayOut 'Disabling Remote Desktop...' -C 12\n\t\t$Path = 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server'\n\t\tSet-ItemProperty -Path $Path -Name 'fDenyTSConnections' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\WinStations\\RDP-Tcp\" -Name 'UserAuthentication' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Context Menu Items'\n\tIf($CastToDevice -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Cast to Device Context item...' -C 15 }\n\t} ElseIf($CastToDevice -eq 1) {\n\t\tDisplayOut 'Enabling Cast to Device Context item...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked' -Name '{7AD84985-87B4-4a16-BE58-8B72A5B390F7}'\n\t} ElseIf($CastToDevice -eq 2) {\n\t\tDisplayOut 'Disabling Cast to Device Context item...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked'\n\t\tSet-ItemProperty -Path $Path -Name '{7AD84985-87B4-4a16-BE58-8B72A5B390F7}' -Type String -Value 'Play to Menu'\n\t}\n\n\tIf($PreviousVersions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Previous Versions Context item...' -C 15 }\n\t} ElseIf($PreviousVersions -eq 1) {\n\t\tDisplayOut 'Enabling Previous Versions Context item...' -C 11\n\t\tNew-Item -Path 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\CLSID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}' | Out-Null\n\t} ElseIf($PreviousVersions -eq 2) {\n\t\tDisplayOut 'Disabling Previous Versions Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\CLSID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t\tRemoveSetPath 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\{596AB062-B4D2-4215-9F74-E9109B0A8153}'\n\t}\n\n\tIf($IncludeinLibrary -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Include in Library Context item...' -C 15 }\n\t} ElseIf($IncludeinLibrary -eq 1) {\n\t\tDisplayOut 'Enabling Include in Library Context item...' -C 11\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\ShellEx\\ContextMenuHandlers\\Library Location' -Name '(Default)' -Type String -Value '{3dad6c5d-2167-4cae-9914-f99e41c12cfa}'\n\t} ElseIf($IncludeinLibrary -eq 2) {\n\t\tDisplayOut 'Disabling Include in Library...' -C 12\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\ShellEx\\ContextMenuHandlers\\Library Location' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($PinToStart -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pin To Start Context item...' -C 15 }\n\t} ElseIf($PinToStart -eq 1) {\n\t\tDisplayOut 'Enabling Pin To Start Context item...' -C 11\n\t\tNew-Item -Path 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Force | Out-Null\n\t\tNew-Item -Path 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Force | Out-Null\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Name '(Default)' -Type String -Value 'Taskband Pin'\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Name '(Default)' -Type String -Value 'Start Menu Pin'\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\exefile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Microsoft.Website\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t\tSet-ItemProperty -Path 'HKCR:\\mscfile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value '{470C0EBD-5D73-4d58-9CED-E91E22E23282}'\n\t} ElseIf($PinToStart -eq 2) {\n\t\tDisplayOut 'Disabling Pin To Start Context item...' -C 12\n\t\tRemove-Item -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{90AA3A4E-1CBA-4233-B8BB-535773D48449}' -Force\n\t\tRemove-Item -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}' -Force\n\t\tSet-ItemProperty -Path 'HKCR:\\Folder\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\exefile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Microsoft.Website\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\mscfile\\shellex\\ContextMenuHandlers\\PintoStartScreen' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($PinToQuickAccess -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pin To Quick Access Context item...' -C 15 }\n\t} ElseIf($PinToQuickAccess -eq 1) {\n\t\tDisplayOut 'Enabling Pin To Quick Access Context item...' -C 11\n\t\t$Path = CheckSetPath 'HKCR:\\Folder\\shell\\pintohome'\n\t\tNew-ItemProperty -Path $Path -Name 'MUIVerb' -Type String -Value '@shell32.dll,-51377'\n\t\tNew-ItemProperty -Path $Path -Name 'AppliesTo' -Type String -Value 'System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True'\n\t\t$Path = CheckSetPath  \"$Path\\command\"\n\t\tNew-ItemProperty -Path \"$Path\" -Name 'DelegateExecute' -Type String -Value '{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}'\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Classes\\Folder\\shell\\pintohome'\n\t\tNew-ItemProperty -Path $Path -Name 'MUIVerb' -Type String -Value '@shell32.dll,-51377'\n\t\tNew-ItemProperty -Path $Path -Name 'AppliesTo' -Type String -Value 'System.ParsingName:<>\"::{679f85cb-0220-4080-b29b-5540cc05aab6}\" AND System.ParsingName:<>\"::{645FF040-5081-101B-9F08-00AA002F954E}\" AND System.IsFolder:=System.StructuredQueryType.Boolean#True'\n\t\t$Path = CheckSetPath  \"$Path\\command\"\n\t\tNew-ItemProperty -Path \"$Path\" -Name 'DelegateExecute' -Type String -Value '{b455f46e-e4af-4035-b0a4-cf18d2f6f28e}'\n\t} ElseIf($PinToQuickAccess -eq 2) {\n\t\tDisplayOut 'Disabling Pin To Quick Access Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Folder\\shell\\pintohome'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Classes\\Folder\\shell\\pintohome'\n\t}\n\n\tIf($ShareWith -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Share With/Share Context item...' -C 15 }\n\t} ElseIf($ShareWith -eq 1) {\n\t\tDisplayOut 'Enabling Share With/Share Context item...' -C 11\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\CopyHookHandlers\\Sharing' -Name '(Default)' -Type String -Value '{40dd6e20-7c17-11ce-a804-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\PropertySheetHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\Background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -Path 'HKCR:\\LibraryFolder\\background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value '{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}'\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\ModernSharing' -Name '(Default)' -Type String -Value '{e2bf9676-5f8f-435c-97eb-11607a5bedf7}'\n\t}  ElseIf($ShareWith -eq 2) {\n\t\tDisplayOut 'Disabling Share/Share With...' -C 12\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\CopyHookHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\shellex\\PropertySheetHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Directory\\Background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\Drive\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -Path 'HKCR:\\LibraryFolder\\background\\shellex\\ContextMenuHandlers\\Sharing' -Name '(Default)' -Type String -Value ''\n\t\tSet-ItemProperty -LiteralPath 'HKCR:\\*\\shellex\\ContextMenuHandlers\\ModernSharing' -Name '(Default)' -Type String -Value ''\n\t}\n\n\tIf($SendTo -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Send To Context item...' -C 15 }\n\t} ElseIf($SendTo -eq 1) {\n\t\tDisplayOut 'Enabling Send To Context item...' -C 11\n\t\t$Path = CheckSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\SendTo'\n\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type String -Value '{7BA4C740-9E81-11CF-99D3-00AA004AE837}' | Out-Null\n\t} ElseIf($SendTo -eq 2) {\n\t\tDisplayOut 'Disabling Send To Context item...' -C 12\n\t\tRemoveSetPath 'HKCR:\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\SendTo'\n\t}\n\n\tBoxItem 'Task Bar Items'\n\tIf($BatteryUIBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Battery UI Bar...' -C 15 }\n\t} ElseIf($BatteryUIBar -eq 1) {\n\t\tDisplayOut 'Enabling New Battery UI Bar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell' -Name 'UseWin32BatteryFlyout'\n\t} ElseIf($BatteryUIBar -eq 2) {\n\t\tDisplayOut 'Enabling Old Battery UI Bar...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell'\n\t\tSet-ItemProperty -Path $Path -Name 'UseWin32BatteryFlyout' -Type DWord -Value 1\n\t}\n\n\tIf($ClockUIBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Clock UI Bar...' -C 15 }\n\t} ElseIf($ClockUIBar -eq 1) {\n\t\tDisplayOut 'Enabling New Clock UI Bar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell' -Name 'UseWin32TrayClockExperience'\n\t} ElseIf($ClockUIBar -eq 2) {\n\t\tDisplayOut 'Enabling Old Clock UI Bar...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ImmersiveShell'\n\t\tSet-ItemProperty -Path $Path -Name 'UseWin32TrayClockExperience' -Type DWord -Value 1\n\t}\n\n\tIf($VolumeControlBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Volume Control Bar...' -C 15 }\n\t} ElseIf($VolumeControlBar -eq 1) {\n\t\tDisplayOut 'Enabling New Volume Control Bar (Horizontal)...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\MTCUVC' -Name 'EnableMtcUvc'\n\t} ElseIf($VolumeControlBar -eq 2) {\n\t\tDisplayOut 'Enabling Classic Volume Control Bar (Vertical)...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\MTCUVC'\n\t\tSet-ItemProperty -Path $Path -Name 'EnableMtcUvc' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarSearchBox -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Search box / button...' -C 15 }\n\t} ElseIf($TaskbarSearchBox -eq 1) {\n\t\tDisplayOut 'Showing Taskbar Search box / button...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'SearchboxTaskbarMode' -Type DWord -Value 1\n\t} ElseIf($TaskbarSearchBox -eq 2) {\n\t\tDisplayOut 'Hiding Taskbar Search box / button...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'SearchboxTaskbarMode' -Type DWord -Value 0\n\t}\n\n\tIf($TaskViewButton -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Task View button...' -C 15 }\n\t} ElseIf($TaskViewButton -eq 1) {\n\t\tDisplayOut 'Showing Task View button...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowTaskViewButton'\n\t} ElseIf($TaskViewButton -eq 2) {\n\t\tDisplayOut 'Hiding Task View button...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowTaskViewButton' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarIconSize -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Icon Size in Taskbar...' -C 15 }\n\t} ElseIf($TaskbarIconSize -eq 1) {\n\t\tDisplayOut 'Showing Normal Icon Size in Taskbar...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarSmallIcons'\n\t} ElseIf($TaskbarIconSize -eq 2) {\n\t\tDisplayOut 'Showing Smaller Icons in Taskbar...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarSmallIcons' -Type DWord -Value 1\n\t}\n\n\tIf($TaskbarGrouping -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Item Grouping...' -C 15 }\n\t} ElseIf($TaskbarGrouping -eq 1) {\n\t\tDisplayOut 'Never Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 2\n\t} ElseIf($TaskbarGrouping -eq 2) {\n\t\tDisplayOut 'Always Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 0\n\t} ElseIf($TaskbarGrouping -eq 3) {\n\t\tDisplayOut 'When Needed Group Taskbar Items...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'TaskbarGlomLevel' -Type DWord -Value 1\n\t}\n\n\tIf($TrayIcons -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Tray icons...' -C 15 }\n\t} ElseIf($TrayIcons -eq 1) {\n\t\tDisplayOut 'Hiding Tray Icons...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 1\n\t} ElseIf($TrayIcons -eq 2) {\n\t\tDisplayOut 'Showing All Tray Icons...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'EnableAutoTray' -Type DWord -Value 0\n\t}\n\n\tIf($SecondsInClock -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Seconds in Taskbar Clock...' -C 15 }\n\t} ElseIf($SecondsInClock -eq 1) {\n\t\tDisplayOut 'Showing Seconds in Taskbar Clock...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSecondsInSystemClock' -Type DWord -Value 1\n\t} ElseIf($SecondsInClock -eq 2) {\n\t\tDisplayOut 'Hiding Seconds in Taskbar Clock...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSecondsInSystemClock' -Type DWord -Value 0\n\t}\n\n\tIf($LastActiveClick -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Last Active Click...' -C 15 }\n\t} ElseIf($LastActiveClick -eq 1) {\n\t\tDisplayOut 'Enabling Last Active Click...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LastActiveClick' -Type DWord -Value 1\n\t} ElseIf($LastActiveClick -eq 2) {\n\t\tDisplayOut 'Disabling Last Active Click...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LastActiveClick' -Type DWord -Value 0\n\t}\n\n\tIf($TaskBarOnMultiDisplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar on Multiple Displays...' -C 15 }\n\t} ElseIf($TaskBarOnMultiDisplay -eq 1) {\n\t\tDisplayOut 'Showing Taskbar on Multiple Displays...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarEnabled' -Type DWord -Value 1\n\t} ElseIf($TaskBarOnMultiDisplay -eq 2) {\n\t\tDisplayOut 'Hiding Taskbar on Multiple Displays...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($TaskbarButtOnDisplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Taskbar Buttons on Multiple Displays...' -C 15 }\n\t} ElseIf($TaskbarButtOnDisplay -eq 1) {\n\t\tDisplayOut 'Showing Taskbar Buttons on All Taskbars...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 0\n\t} ElseIf($TaskbarButtOnDisplay -eq 2) {\n\t\tDisplayOut 'Showing Taskbar Buttons on Taskbar where Window is open...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 2\n\t} ElseIf($TaskbarButtOnDisplay -eq 3) {\n\t\tDisplayOut 'Showing Taskbar Buttons on Main Taskbar and where Window is open...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'MMTaskbarMode' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Star Menu Items'\n\tIf($StartMenuWebSearch -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Bing Search in Start Menu...' -C 15 }\n\t} ElseIf($StartMenuWebSearch -eq 1) {\n\t\tDisplayOut 'Enabling Bing Search in Start Menu...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'BingSearchEnabled'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search' -Name 'DisableWebSearch'\n\t} ElseIf($StartMenuWebSearch -eq 2) {\n\t\tDisplayOut 'Disabling Bing Search in Start Menu...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Search' -Name 'BingSearchEnabled' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableWebSearch' -Type DWord -Value 1\n\t}\n\n\tIf($StartSuggestions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Start Menu Suggestions...' -C 15 }\n\t} ElseIf($StartSuggestions -eq 1) {\n\t\tDisplayOut 'Enabling Start Menu Suggestions...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager'\n\t\tSet-ItemProperty -Path $Path -Name 'ContentDeliveryAllowed' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'OemPreInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEverEnabled' -Type DWord -Value 1\n\t \tSet-ItemProperty -Path $Path -Name 'SilentInstalledAppsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SystemPaneSuggestionsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackProgs' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-314559Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-310093Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338387Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338388Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338389Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338393Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353694Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353696Enabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-358398Enabled' -Type DWord -Value 1\n\t} ElseIf($StartSuggestions -eq 2) {\n\t\tDisplayOut 'Disabling Start Menu Suggestions...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager'\n\t\tSet-ItemProperty -Path $Path -Name 'ContentDeliveryAllowed' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'OemPreInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'PreInstalledAppsEverEnabled' -Type DWord -Value 0\n\t \tSet-ItemProperty -Path $Path -Name 'SilentInstalledAppsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SystemPaneSuggestionsEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackProgs' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-314559Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-310093Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338387Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338388Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338389Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-338393Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353694Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-353696Enabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path $Path -Name 'SubscribedContent-358398Enabled' -Type DWord -Value 0\n\t\tIf($Win10Ver -ge 1803) {\n\t\t\t$key = Get-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*windows.data.placeholdertilecollection\\Current\"\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $key.Data[0..15]\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tIf($MostUsedAppStartMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Most used Apps in Start Menu...' -C 15 }\n\t} ElseIf($MostUsedAppStartMenu -eq 1) {\n\t\tDisplayOut 'Showing Most used Apps in Start Menu...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Start_TrackProgs' -Type DWord -Value 1\n\t} ElseIf($MostUsedAppStartMenu -eq 2) {\n\t\tDisplayOut 'Hiding Most used Apps in Start Menu...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Start_TrackProgs' -Type DWord -Value 0\n\t}\n\n\tIf($RecentItemsFrequent -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recent Items and Frequent Places...' -C 15 }\n\t} ElseIf($RecentItemsFrequent -eq 1) {\n\t\tDisplayOut 'Enabling Recent Items and Frequent Places...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackDocs' -Type DWord -Value 1\n\t} ElseIf($RecentItemsFrequent -eq 2) {\n\t\tDisplayOut 'Disabling Recent Items and Frequent Places...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\t\tSet-ItemProperty -Path $Path -Name 'Start_TrackDocs' -Type DWord -Value 0\n\t}\n\n\tBoxItem 'Explorer Items'\n\tIf($AccessKeyPrmpt -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Accessibility Keys Prompts...' -C 15 }\n\t} ElseIf($AccessKeyPrmpt -eq 1) {\n\t\tDisplayOut 'Enabling Accessibility Keys Prompts...' -C 11\n\t\t$Path = 'HKCU:\\Control Panel\\Accessibility\\'\n\t\tSet-ItemProperty -Path \"$Path\\StickyKeys\" -Name 'Flags' -Type String -Value '510'\n\t\tSet-ItemProperty -Path \"$Path\\ToggleKeys\" -Name 'Flags' -Type String -Value '62'\n\t\tSet-ItemProperty -Path \"$Path\\Keyboard Response\" -Name 'Flags' -Type String -Value '126'\n\t} ElseIf($AccessKeyPrmpt -eq 2) {\n\t\tDisplayOut 'Disabling Accessibility Keys Prompts...' -C 12\n\t\t$Path = 'HKCU:\\Control Panel\\Accessibility\\'\n\t\tSet-ItemProperty -Path \"$Path\\StickyKeys\" -Name 'Flags' -Type String -Value '506'\n\t\tSet-ItemProperty -Path \"$Path\\ToggleKeys\" -Name 'Flags' -Type String -Value '58'\n\t\tSet-ItemProperty -Path \"$Path\\Keyboard Response\" -Name 'Flags' -Type String -Value '122'\n\t}\n\n\tIf($F1HelpKey -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping F1 Help key...' -C 15 }\n\t} ElseIf($F1HelpKey -eq 1) {\n\t\tDisplayOut 'Enabling F1 Help key...' -C 11\n\t\tRemoveSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0'\n\t} ElseIf($F1HelpKey -eq 2) {\n\t\tDisplayOut 'Disabling F1 Help key...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win32'\n\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type 'String' -Value ''\n\t\tIf($OSBit -eq 64) {\n\t\t\t$Path = CheckSetPath 'HKCU:\\Software\\Classes\\TypeLib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win64'\n\t\t\tSet-ItemProperty -Path $Path -Name '(Default)' -Type 'String' -Value ''\n\t\t}\n\t}\n\n\tIf($PidInTitleBar -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Process ID on Title Bar...' -C 15 }\n\t} ElseIf($PidInTitleBar -eq 1) {\n\t\tDisplayOut 'Showing Process ID on Title Bar...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowPidInTitle' -Type DWord -Value 1\n\t} ElseIf($PidInTitleBar -eq 2) {\n\t\tDisplayOut 'Hiding Process ID on Title Bar...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowPidInTitle'\n\t}\n\n\tIf($AeroSnap -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Aero Snap...' -C 15 }\n\t} ElseIf($AeroSnap -eq 1) {\n\t\tDisplayOut 'Enabling Aero Snap...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'WindowArrangementActive' -Type String -Value 1\n\t} ElseIf($AeroSnap -eq 2) {\n\t\tDisplayOut 'Disabling Aero Snap...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'WindowArrangementActive' -Type String -Value 0\n\t}\n\n\tIf($AeroShake -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Aero Shake...' -C 15 }\n\t} ElseIf($AeroShake -eq 1) {\n\t\tDisplayOut 'Enabling Aero Shake...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer' -Name 'NoWindowMinimizingShortcuts'\n\t} ElseIf($AeroShake -eq 2) {\n\t\tDisplayOut 'Disabling Aero Shake...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoWindowMinimizingShortcuts' -Type DWord -Value 1\n\t}\n\n\tIf($KnownExtensions -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Known File Extensions...' -C 15 }\n\t} ElseIf($KnownExtensions -eq 1) {\n\t\tDisplayOut 'Showing Known File Extensions...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'HideFileExt' -Type DWord -Value 0\n\t} ElseIf($KnownExtensions -eq 2) {\n\t\tDisplayOut 'Hiding Known File Extensions...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'HideFileExt' -Type DWord -Value 1\n\t}\n\n\tIf($HiddenFiles -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hidden Files...' -C 15 }\n\t} ElseIf($HiddenFiles -eq 1) {\n\t\tDisplayOut 'Showing Hidden Files...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Hidden' -Type DWord -Value 1\n\t} ElseIf($HiddenFiles -eq 2) {\n\t\tDisplayOut 'Hiding Hidden Files...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'Hidden' -Type DWord -Value 2\n\t}\n\n\tIf($SystemFiles -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping System Files...' -C 15 }\n\t} ElseIf($SystemFiles -eq 1) {\n\t\tDisplayOut 'Showing System Files...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSuperHidden' -Type DWord -Value 1\n\t} ElseIf($SystemFiles -eq 2) {\n\t\tDisplayOut 'Hiding System fFiles...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSuperHidden' -Type DWord -Value 0\n\t}\n\n\tIf($ExplorerOpenLoc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Default Explorer view to Quick Access...' -C 15 }\n\t} ElseIf($ExplorerOpenLoc -eq 1) {\n\t\tDisplayOut 'Changing Default Explorer view to Quick Access...' -C 14\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LaunchTo'\n\t} ElseIf($ExplorerOpenLoc -eq 2) {\n\t\tDisplayOut 'Changing Default Explorer view to This PC...' -C 14\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'LaunchTo' -Type DWord -Value 1\n\t}\n\n\tIf($RecentFileQikAcc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recent Files in Quick Access...' -C 15 }\n\t} ElseIf($RecentFileQikAcc -eq 1) {\n\t\tDisplayOut 'Showing Recent Files in Quick Access...' -C 11\n\t\t$Path = 'Microsoft\\Windows\\CurrentVersion\\Explorer'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\$Path\" -Name 'ShowRecent' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"HKLM:\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\" -Name '(Default)' -Type String -Value 'Recent Items Instance Folder'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\" -Name '(Default)' -Type String -Value 'Recent Items Instance Folder' }\n\t} ElseIf($RecentFileQikAcc -eq 2) {\n\t\tDisplayOut 'Hiding Recent Files in Quick Access...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowRecent' -Type DWord -Value 0\n\t} ElseIf($RecentFileQikAcc -eq 3) {\n\t\tDisplayOut 'Removing Recent Files in Quick Access...' -C 15\n\t\t$Path = 'Microsoft\\Windows\\CurrentVersion\\Explorer'\n\t\tSet-ItemProperty -Path \"HKCU:\\SOFTWARE\\$Path\" -Name 'ShowRecent' -Type DWord -Value 0\n\t\tRemoveSetPath \"HKLM:\\SOFTWARE\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\"\n\t\tRemoveSetPath \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\\HomeFolderDesktop\\NameSpace\\DelegateFolders\\{3134ef9c-6b18-4996-ad04-ed5912e00eb5}\"\n\t}\n\n\tIf($FrequentFoldersQikAcc -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Frequent Folders in Quick Access...' -C 15 }\n\t} ElseIf($FrequentFoldersQikAcc -eq 1) {\n\t\tDisplayOut 'Showing Frequent Folders in Quick Access...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowFrequent' -Type DWord -Value 1\n\t} ElseIf($FrequentFoldersQikAcc -eq 2) {\n\t\tDisplayOut 'Hiding Frequent Folders in Quick Access...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer' -Name 'ShowFrequent' -Type DWord -Value 0\n\t}\n\n\tIf($WinContentWhileDrag -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Window Content while Dragging...' -C 15 }\n\t} ElseIf($WinContentWhileDrag -eq 1) {\n\t\tDisplayOut 'Showing Window Content while Dragging...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'DragFullWindows' -Type DWord -Value 1\n\t} ElseIf($WinContentWhileDrag -eq 2) {\n\t\tDisplayOut 'Hiding Window Content while Dragging...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Desktop' -Name 'DragFullWindows' -Type DWord -Value 0\n\t}\n\n\tIf($Autoplay -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Autoplay...' -C 15 }\n\t} ElseIf($Autoplay -eq 1) {\n\t\tDisplayOut 'Enabling Autoplay...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers' -Name 'DisableAutoplay' -Type DWord -Value 0\n\t} ElseIf($Autoplay -eq 2) {\n\t\tDisplayOut 'Disabling Autoplay...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers' -Name 'DisableAutoplay' -Type DWord -Value 1\n\t}\n\n\tIf($Autorun -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Autorun for all Drives...' -C 15 }\n\t} ElseIf($Autorun -eq 1) {\n\t\tDisplayOut 'Enabling Autorun for all Drives...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer' -Name 'NoDriveTypeAutoRun'\n\t} ElseIf($Autorun -eq 2) {\n\t\tDisplayOut 'Disabling Autorun for all Drives...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoDriveTypeAutoRun' -Type DWord -Value 255\n\t}\n\n\tIf($StoreOpenWith -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Search Windows Store for Unknown Extensions...' -C 15 }\n\t} ElseIf($StoreOpenWith -eq 1) {\n\t\tDisplayOut 'Enabling Search Windows Store for Unknown Extensions...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'NoUseStoreOpenWith'\n\t} ElseIf($StoreOpenWith -eq 2) {\n\t\tDisplayOut 'Disabling Search Windows Store for Unknown Extensions...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'NoUseStoreOpenWith' -Type DWord -Value 1\n\t}\n\n\tIf($WinXPowerShell -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Win+X PowerShell to Command Prompt...' -C 15 }\n\t} ElseIf($WinXPowerShell -eq 1) {\n\t\tDisplayOut 'Changing Win+X Command Prompt to PowerShell...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'DontUsePowerShellOnWinX' -Type DWord -Value 0\n\t} ElseIf($WinXPowerShell -eq 2) {\n\t\tDisplayOut 'Changing Win+X PowerShell to Command Prompt...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'DontUsePowerShellOnWinX' -Type DWord -Value 1\n\t}\n\n\tIf($TaskManagerDetails -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Task Manager Details...' -C 15 }\n\t} ElseIf($TaskManagerDetails -eq 1) {\n\t\tDisplayOut 'Attempting to Show Task Manager Details...' -C 11\n\t\t$Path =  'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\t$Taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru\n\t\t$timeout = 30000\n\t\t$sleep = 100\n\t\t$Path =  'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\tDo {\n\t\t\tStart-Sleep -Milliseconds $sleep\n\t\t\t$timeout -= $sleep\n\t\t\t$TaskManKey = Get-ItemProperty -Path $Path -Name 'Preferences'\n\t\t} Until ($TaskManKey -or $timeout -le 0)\n\t\tStop-Process $Taskmgr\n\t\tIf($TaskManKey) {\n\t\t\tDisplayOut '----Showing Task Manager Details...' -C 11\n\t\t\t$TaskManKey.Preferences[28] = 0\n\t\t\tSet-ItemProperty -Path $Path -Name 'Preferences' -Type Binary -Value $TaskManKey.Preferences\n\t\t} Else {\n\t\t\tDisplayOut '----Unable to Show Task Manager Details...' -C 13\n\t\t}\n\t} ElseIf($TaskManagerDetails -eq 2) {\n\t\tDisplayOut 'Hiding Task Manager Details...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager'\n\t\t$TaskManKey = Get-ItemProperty -Path $Path -Name 'Preferences'\n\t\tIf($TaskManKey) {\n\t\t\t$TaskManKey.Preferences[28] = 1\n\t\t\tSet-ItemProperty -Path $Path -Name 'Preferences' -Type Binary -Value $TaskManKey.Preferences\n\t\t}\n\t}\n\n\tIf($Win10Ver -ge 1709) {\n\t\tIf($ReopenAppsOnBoot -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Re-Opening Apps on Boot...' -C 15 }\n\t\t} ElseIf($ReopenAppsOnBoot -eq 1) {\n\t\t\tDisplayOut 'Enableing Re-Opening Apps on Boot (Apps reopen on boot)...' -C 11\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'DisableAutomaticRestartSignOn' -Type DWord -Value 0\n\t\t} ElseIf($ReopenAppsOnBoot -eq 2) {\n\t\t\tDisplayOut \"Disabling Re-Opening Apps on Boot (Apps won't reopen on boot)...\" -C 12\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'DisableAutomaticRestartSignOn' -Type DWord -Value 1\n\t\t}\n\t}\n\n\tIf($Win10Ver -ge 1803) {\n\t\tIf($Timeline -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Timeline...' -C 15 }\n\t\t} ElseIf($Timeline -eq 1) {\n\t\t\tDisplayOut 'Enableing Windows Timeline...' -C 11\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System' -Name 'EnableActivityFeed' -Type DWord -Value 1\n\t\t} ElseIf($Timeline -eq 2) {\n\t\t\tDisplayOut \"Disabling Windows Timeline...\" -C 12\n\t\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System' -Name 'EnableActivityFeed' -Type DWord -Value 0\n\t\t}\n\t}\n\n\tIf($LongFilePath -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Long File Path...' -C 15 }\n\t} ElseIf($LongFilePath -eq 1) {\n\t\tDisplayOut 'Enableing Long File Path...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\ControlSet001\\Control\\FileSystem' -Name 'LongPathsEnabled' -Type DWord -Value 1\n\t} ElseIf($LongFilePath -eq 2) {\n\t\tDisplayOut \"Disabling Long File Path...\" -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem' -Name 'LongPathsEnabled'\n\t\tRemove-ItemProperty -Path 'HKLM:\\SYSTEM\\ControlSet001\\Control\\FileSystem' -Name 'LongPathsEnabled'\n\t}\n\n\tIf($AppHibernationFile -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping App Hibernation File (Swapfile.sys)...' -C 15 }\n\t} ElseIf($AppHibernationFile -eq 1) {\n\t\tDisplayOut 'Enabling App Hibernation File (Swapfile.sys)...' -C 11\n\t\tRemove-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\" -Name \"SwapfileControl\"\n\t} ElseIf($AppHibernationFile -eq 2) {\n\t\tDisplayOut 'Disabling App Hibernation File (Swapfile.sys)...' -C 12\n\t\tSet-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management\" -Name \"SwapfileControl\" -Type Dword -Value 0\n\t}\n\n\tBoxItem \"'This PC' Items\"\n\tIf($DesktopIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Desktop folder in This PC...' -C 15 }\n\t} ElseIf($DesktopIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Desktop folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t}\n\t} ElseIf($DesktopIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Desktop folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($DesktopIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Desktop folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}'\n\t}\n\n\tIf($DocumentsIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Documents folder in This PC...' -C 15 }\n\t} ElseIf($DocumentsIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Documents folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{FDD39AD0-238F-46AF-ADB4-6C85480369C7}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t}ElseIf($DocumentsIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Documents folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\" }\n\t} ElseIf($DocumentsIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Documents folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{d3162b92-9365-467a-956b-92703aca08af}'\n\t}\n\n\tIf($DownloadsIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Downloads folder in This PC...' -C 15 }\n\t} ElseIf($DownloadsIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Downloads folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\"\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($DownloadsIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Downloads folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\" }\n\t} ElseIf($DownloadsIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Downloads folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{374DE290-123F-4565-9164-39C4925E467B}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{088e3905-0323-4b02-9826-5d99428e115f}'\n\t}\n\n\tIf($MusicIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Music folder in This PC...' -C 15 }\n\t} ElseIf($MusicIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Music folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{a0c69a99-21c8-4671-8703-7934162fcf1d}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{4BD8D571-6D19-48D3-BE97-422220080E43}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($MusicIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Music folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{a0c69a99-21c8-4671-8703-7934162fcf1d}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($MusicIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Music folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}'\n\t}\n\n\tIf($PicturesIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Pictures folder in This PC...' -C 15 }\n\t} ElseIf($PicturesIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Pictures folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{0ddd015d-b06c-45d5-8c4c-f59713854639}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{33E28130-4E1E-4676-835A-98395C3BC3BB}'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($PicturesIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Pictures folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{0ddd015d-b06c-45d5-8c4c-f59713854639}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($PicturesIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Pictures folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}'\n\t}\n\n\tIf($VideosIconInThisPC -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Videos folder in This PC...' -C 15 }\n\t} ElseIf($VideosIconInThisPC -eq 1) {\n\t\tDisplayOut 'Showing Videos folder in This PC...' -C 11\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\\PropertyBag'\n\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\t$Path2 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path2\" | Out-Null\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'BaseFolderId' -Type String -Value '{18989B1D-99B5-455B-841C-AB7C74E4DDFC}\"'\n\t\tIf($OSBit -eq 64){\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path2\" | Out-Null\n\t\t}\n\t} ElseIf($VideosIconInThisPC -eq 2) {\n\t\tDisplayOut 'Hiding Videos folder in This PC...' -C 12\n\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\\PropertyBag'\n\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name \"ThisPCPolicy\" -Type String -Value \"Hide\"\n\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t} ElseIf($PicturesIconInThisPC -eq 3) {\n\t\tDisplayOut 'Removing Videos folder in This PC...' -C 13\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{A0953C92-50DC-43bf-BE83-3742FED03C9C}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}'\n\t}\n\n\tIf($Win10Ver -ge 1709){\n\t\tIf($ThreeDobjectsIconInThisPC -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping 3D Object folder in This PC...' -C 15 }\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 1) {\n\t\t\tDisplayOut 'Showing 3D Object folder in This PC...' -C 11\n\t\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag'\n\t\t\t$Path1 = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path\" | Out-Null\n\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\$Path1\" | Out-Null\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\tIf($OSBit -eq 64){\n\t\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" | Out-Null\n\t\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Show'\n\t\t\t\tNew-Item -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path1\" | Out-Null\n\t\t\t}\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 2) {\n\t\t\tDisplayOut 'Hiding 3D Object folder in This PC...' -C 12\n\t\t\t$Path = '\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag'\n\t\t\tSet-ItemProperty -Path \"HKLM:\\SOFTWARE\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide'\n\t\t\tIf($OSBit -eq 64){ Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Wow6432Node\\$Path\" -Name 'ThisPCPolicy' -Type String -Value 'Hide' }\n\t\t} ElseIf($ThreeDobjectsIconInThisPC -eq 3) {\n\t\t\tDisplayOut 'Removing 3D Object folder in This PC...' -C 13\n\t\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t\tRemoveSetPath 'HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}'\n\t\t}\n\t}\n\n\tBoxItem 'Desktop Items'\n\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\ClassicStartMenu'\n\tIf($ThisPCOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping This PC Icon on Desktop...' -C 15 }\n\t} ElseIf($ThisPCOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing This PC Shortcut on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 0\n\t} ElseIf($ThisPCOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding This PC Shortcut on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' -Type DWord -Value 1\n\t}\n\n\tIf($NetworkOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Network Icon on Desktop...' -C 15 }\n\t} ElseIf($NetworkOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Network Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 0\n\t} ElseIf($NetworkOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Network Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' -Type DWord -Value 1\n\t}\n\n\tIf($RecycleBinOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Recycle Bin Icon on Desktop...' -C 15 }\n\t} ElseIf($RecycleBinOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Recycle Bin Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 0\n\t} ElseIf($RecycleBinOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Recycle Bin Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{645FF040-5081-101B-9F08-00AA002F954E}' -Type DWord -Value 1\n\t}\n\n\tIf($UsersFileOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Users File Icon on Desktop...' -C 15 }\n\t} ElseIf($UsersFileOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Users File Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name \"{59031a47-3f72-44a7-89c5-5595fe6b30ee}\" -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 0\n\t} ElseIf($UsersFileOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Users File Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' -Type DWord -Value 1\n\t}\n\n\tIf($ControlPanelOnDesktop -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Control Panel Icon on Desktop...' -C 15 }\n\t} ElseIf($ControlPanelOnDesktop -eq 1) {\n\t\tDisplayOut 'Showing Control Panel Icon on Desktop...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 0\n\t} ElseIf($ControlPanelOnDesktop -eq 2) {\n\t\tDisplayOut 'Hiding Control Panel Icon on Desktop...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons'\n\t\tSet-ItemProperty -Path \"$Path\\ClassicStartMenu\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path \"$Path\\NewStartPanel\" -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Photo Viewer Settings'\n\tIf($PVFileAssociation -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Photo Viewer File Association...' -C 15 }\n\t} ElseIf($PVFileAssociation -eq 1) {\n\t\tDisplayOut 'Setting Photo Viewer File Association for bmp, gif, jpg, png and tif...' -C 11\n\t\tForEach($type In @('Paint.Picture', 'giffile', 'jpegfile', 'pngfile')) {\n\t\t\tNew-Item -Path $(\"HKCR:\\$type\\shell\\open\") -Force | Out-Null\n\t\t\tNew-Item -Path $(\"HKCR:\\$type\\shell\\open\\command\") | Out-Null\n\t\t\tSet-ItemProperty -Path $(\"HKCR:\\$type\\shell\\open\") -Name 'MuiVerb' -Type ExpandString -Value \"@%ProgramFiles%\\Windows Photo Viewer\\photoviewer.dll,-3043\"\n\t\t\tSet-ItemProperty -Path $(\"HKCR:\\$type\\shell\\open\\command\") -Name '(Default)' -Type ExpandString -Value \"%SystemRoot%\\System32\\rundll32.exe `\"%ProgramFiles%\\Windows Photo Viewer\\PhotoViewer.dll`\", ImageView_Fullscreen %1\"\n\t\t}\n\t} ElseIf($PVFileAssociation -eq 2) {\n\t\tDisplayOut 'Unsetting Photo Viewer File Association for bmp, gif, jpg, png and tif...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Paint.Picture\\shell\\open'\n\t\tRemove-ItemProperty -Path 'HKCR:\\giffile\\shell\\open' -Name 'MuiVerb'\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open' -Name 'CommandId' -Type String -Value 'IE.File'\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open\\command' -Name '(Default)' -Type String -Value \"`\"$Env:SystemDrive\\Program Files\\Internet Explorer\\iexplore.exe`\" %1\"\n\t\tSet-ItemProperty -Path 'HKCR:\\giffile\\shell\\open\\command' -Name 'DelegateExecute' -Type String -Value '{17FE9752-0B5A-4665-84CD-569794602F5C}'\n\t\tRemoveSetPath 'HKCR:\\jpegfile\\shell\\open'\n\t\tRemoveSetPath 'HKCR:\\jpegfile\\shell\\open'\n\t}\n\n\tIf($PVOpenWithMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Photo Viewer Open with Menu...' -C 15 }\n\t} ElseIf($PVOpenWithMenu -eq 1) {\n\t\tDisplayOut 'Adding Photo Viewer to Open with Menu...' -C 11\n\t\tNew-Item -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\command' -Force | Out-Null\n\t\tNew-Item -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\DropTarget' -Force | Out-Null\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open' -Name 'MuiVerb' -Type String -Value '@photoviewer.dll,-3043'\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\command' -Name '(Default)' -Type ExpandString -Value \"%SystemRoot%\\System32\\rundll32.exe `\"%ProgramFiles%\\Windows Photo Viewer\\PhotoViewer.dll`\", ImageView_Fullscreen %1\"\n\t\tSet-ItemProperty -Path 'HKCR:\\Applications\\photoviewer.dll\\shell\\open\\DropTarget' -Name 'Clsid' -Type String -Value '{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}'\n\t} ElseIf($PVOpenWithMenu -eq 2) {\n\t\tDisplayOut 'Removing Photo Viewer from Open with Menu...' -C 12\n\t\tRemoveSetPath 'HKCR:\\Applications\\photoviewer.dll\\shell\\open'\n\t}\n\n\tBoxItem 'Lockscreen Items'\n\tIf($LockScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Lock Screen...' -C 15 }\n\t} ElseIf($LockScreen -eq 1) {\n\t\tIf($Win10Ver -In 1507,1511) {\n\t\t\tDisplayOut 'Enabling Lock Screen...' -C 11\n\t\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization' -Name 'NoLockScreen'\n\t\t} ElseIf($Win10Ver -ge 1607) {\n\t\t\tDisplayOut 'Enabling Lock screen (removing scheduler workaround)...' -C 11\n\t\t\tUnregister-ScheduledTask -TaskName 'Disable LockScreen' -Confirm:$False\n\t\t} Else {\n\t\t\tDisplayOut 'Unable to Enable Lock screen...' -C 13\n\t\t}\n\t} ElseIf($LockScreen -eq 2) {\n\t\tIf($Win10Ver -In 1507,1511) {\n\t\t\tDisplayOut 'Disabling Lock Screen...' -C 12\n\t\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization'\n\t\t\tSet-ItemProperty -Path $Path -Name 'NoLockScreen' -Type DWord -Value 1\n\t\t} ElseIf($Win10Ver -ge 1607) {\n\t\t\tDisplayOut 'Disabling Lock screen using scheduler workaround...' -C 12\n\t\t\t$service = New-Object -com Schedule.Service\n\t\t\t$service.Connect()\n\t\t\t$task = $service.NewTask(0)\n\t\t\t$task.Settings.DisallowStartIfOnBatteries = $False\n\t\t\t$trigger = $task.Triggers.Create(9)\n\t\t\t$trigger = $task.Triggers.Create(11)\n\t\t\t$trigger.StateChange = 8\n\t\t\t$action = $task.Actions.Create(0)\n\t\t\t$action.Path = 'reg.exe'\n\t\t\t$action.Arguments = \"add HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Authentication\\LogonUI\\SessionData /t REG_DWORD /v AllowLockScreen /d 0 /f\"\n\t\t\t$service.GetFolder('\\').RegisterTaskDefinition('Disable LockScreen', $task, 6, 'NT AUTHORITY\\SYSTEM', $null, 4) | Out-Null\n\t\t} Else {\n\t\t\tDisplayOut 'Unable to Disable Lock screen...' -C 13\n\t\t}\n\t}\n\n\tIf($LockscreenPassword -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Lock Screen Password...' -C 15 }\n\t} ElseIf($LockscreenPassword -eq 1) {\n\t\tDisplayOut 'Enabling Lock Screen Password...' -C 11\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 1\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 1\n\t} ElseIf($LockscreenPassword -eq 2) {\n\t\tDisplayOut 'Disabling Lock Screen Password...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 0\n\t\t$Path = CheckSetPath 'HKCU:\\Software\\Policies\\Microsoft\\Windows\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaverIsSecure' -Type DWord -Value 0\n\t}\n\t\n\tIf($PowerMenuLockScreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Power Menu on Lock Screen...' -C 15 }\n\t} ElseIf($PowerMenuLockScreen -eq 1) {\n\t\tDisplayOut 'Showing Power Menu on Lock Screen...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'shutdownwithoutlogon' -Type DWord -Value 1\n\t} ElseIf($PowerMenuLockScreen -eq 2) {\n\t\tDisplayOut 'Hiding Power Menu on Lock Screen...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'shutdownwithoutlogon' -Type DWord -Value 0\n\t}\n\n\tIf($CameraOnLockscreen -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Camera at Lockscreen...' -C 15 }\n\t} ElseIf($CameraOnLockscreen -eq 1) {\n\t\tDisplayOut 'Enabling Camera at Lockscreen...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization' -Name 'NoLockScreenCamera'\n\t} ElseIf($CameraOnLockscreen -eq 2) {\n\t\tDisplayOut 'Disabling Camera at Lockscreen...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Personalization'\n\t\tSet-ItemProperty -Path $Path -Name 'NoLockScreenCamera' -Type DWord -Value 1\n\t}\n\n\tBoxItem 'Misc Items'\n\tIf($ScreenSaver -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping ScreenSaver...' -C 15 }\n\t} ElseIf($ScreenSaver -eq 1) {\n\t\tDisplayOut 'Enabling ScreenSaver...' -C 11\n\t\t$Path = CheckSetPath 'HKCU:\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveActive' -Type DWord -Value 1\n\t} ElseIf($ScreenSaver -eq 2) {\n\t\tDisplayOut 'Disabling ScreenSaver...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\Control Panel\\Desktop'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveActive' -Type DWord -Value 0\n\t}\n\n\tIf($Win10Ver -ge 1803) {\n\t\tIf($AccountProtectionWarn -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Account Protection Warning...' -C 15 }\n\t\t} ElseIf($AccountProtectionWarn -eq 1) {\n\t\t\tDisplayOut 'Enabling Account Protection Warning...' -C 11\n\t\t\tRemove-ItemProperty 'HKCU:\\SOFTWARE\\Microsoft\\Windows Security Health\\State' -Name 'AccountProtection_MicrosoftAccount_Disconnected'\n\t\t} ElseIf($AccountProtectionWarn -eq 2) {\n\t\t\tDisplayOut 'Disabling Account Protection Warning...' -C 12\n\t\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Microsoft\\Windows Security Health\\State'\n\t\t\tSet-ItemProperty $Path -Name 'AccountProtection_MicrosoftAccount_Disconnected' -Type DWord -Value 1\n\t\t}\n\t}\n\n\tIf($ActionCenter -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Action Center...' -C 15 }\n\t} ElseIf($ActionCenter -eq 1) {\n\t\tDisplayOut 'Enabling Action Center...' -C 11\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableNotificationCenter'\n\t\tRemove-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications' -Name 'ToastEnabled'\n\t} ElseIf($ActionCenter -eq 2) {\n\t\tDisplayOut 'Disabling Action Center...' -C 12\n\t\t$Path = CheckSetPath 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableNotificationCenter' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\PushNotifications' -Name 'ToastEnabled' -Type DWord -Value 0\n\t}\n\n\tIf($StickyKeyPrompt -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sticky Key Prompt...' -C 15 }\n\t} ElseIf($StickyKeyPrompt -eq 1) {\n\t\tDisplayOut 'Enabling Sticky Key Prompt...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Accessibility\\StickyKeys' -Name 'Flags' -Type String -Value '510'\n\t} ElseIf($StickyKeyPrompt -eq 2) {\n\t\tDisplayOut 'Disabling Sticky Key Prompt...' -C 12\n\t\tSet-ItemProperty -Path 'HKCU:\\Control Panel\\Accessibility\\StickyKeys' -Name 'Flags' -Type String -Value '506'\n\t}\n\n\tIf($NumblockOnStart -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Num Lock on Startup...' -C 15 }\n\t} ElseIf($NumblockOnStart -eq 1) {\n\t\tDisplayOut 'Enabling Num Lock on Startup...' -C 11\n\t\tSet-ItemProperty -Path 'HKU:\\.DEFAULT\\Control Panel\\Keyboard' -Name 'InitialKeyboardIndicators' -Type DWord -Value 2147483650\n\t} ElseIf($NumblockOnStart -eq 2) {\n\t\tDisplayOut 'Disabling Num Lock on Startup...' -C 12\n\t\tSet-ItemProperty -Path 'HKU:\\.DEFAULT\\Control Panel\\Keyboard' -Name 'InitialKeyboardIndicators' -Type DWord -Value 2147483648\n\t}\n\n\tIf($F8BootMenu -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping F8 boot menu options...' -C 15 }\n\t} ElseIf($F8BootMenu -eq 1) {\n\t\tDisplayOut 'Enabling F8 boot menu options...' -C 11\n\t\tbcdedit /set `{current`} bootmenupolicy Legacy | Out-Null\n\t} ElseIf($F8BootMenu -eq 2) {\n\t\tDisplayOut 'Disabling F8 boot menu options...' -C 12\n\t\tbcdedit /set `{current`} bootmenupolicy Standard | Out-Null\n\t}\n\n\tIf($RemoteUACAcctToken -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Remote UAC Local Account Token Filter...' -C 15 }\n\t} ElseIf($RemoteUACAcctToken -eq 1) {\n\t\tDisplayOut 'Enabling Remote UAC Local Account Token Filter...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'LocalAccountTokenFilterPolicy' -Type DWord -Value 1\n\t} ElseIf($RemoteUACAcctToken -eq 2) {\n\t\tDisplayOut 'Disabling  Remote UAC Local Account Token Filter...' -C 12\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System' -Name 'LocalAccountTokenFilterPolicy'\n\t}\n\n\tIf($HibernatePower -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Hibernate Option...' -C 15 }\n\t} ElseIf($HibernatePower -eq 1) {\n\t\tDisplayOut 'Enabling Hibernate Option...' -C 11\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power' -Name 'HibernateEnabled' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowHibernateOption' -Type DWord -Value 1\n\t\tpowercfg /HIBERNATE ON\n\t} ElseIf($HibernatePower -eq 2) {\n\t\tDisplayOut 'Disabling Hibernate Option...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power' -Name 'HibernateEnabled' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowHibernateOption' -Type DWord -Value 0\n\t\tpowercfg /HIBERNATE OFF\n\t}\n\n\tIf($SleepPower -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Sleep Option...' -C 15 }\n\t} ElseIf($SleepPower -eq 1) {\n\t\tDisplayOut 'Enabling Sleep Option...' -C 11\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings'\n\t\tSet-ItemProperty -Path $Path -Name 'ShowSleepOption' -Type DWord -Value 1\n\t\tpowercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 1\n\t\tpowercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 1\n\t} ElseIf($SleepPower -eq 2) {\n\t\tDisplayOut 'Disabling Sleep Option...' -C 12\n\t\tSet-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings' -Name 'ShowSleepOption' -Type DWord -Value 0\n\t\tpowercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 0\n\t\tpowercfg /SETDCVALUEINDEX SCHEME_CURRENT SUB_BUTTONS SBUTTONACTION 0\n\t}\n\n\tIf($UnpinItems -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Unpinning Items...' -C 15 }\n\t} ElseIf($UnpinItems -eq 1) {\n\t\tDisplayOut \"`nUnpinning All Startmenu Items...\" -C 12\n\t\tIf($Win10Ver -le 1709) {\n\t\t\tGet-ChildItem -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\" -Include \"*.group\" -Recurse | ForEach-Object {\n\t\t\t\t$data = (Get-ItemProperty -Path \"$($_.PsPath)\\Current\" -Name \"Data\").Data -Join \",\"\n\t\t\t\t$data = $data.Substring(0, $data.IndexOf(\",0,202,30\") + 9) + \",0,202,80,0,0\"\n\t\t\t\tSet-ItemProperty -Path \"$($_.PsPath)\\Current\" -Name \"Data\" -Type Binary -Value $data.Split(\",\")\n\t\t\t}\n\t\t} Else {\n\t\t\t$key = Get-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*start.tilegrid`$windows.data.curatedtilecollection.tilecollection\\Current\"\n\t\t\t$data = $key.Data[0..25] + ([byte[]](202,50,0,226,44,1,1,0,0))\n\t\t\tSet-ItemProperty -Path $key.PSPath -Name \"Data\" -Type Binary -Value $data\n\t\t\tStop-Process -Name \"ShellExperienceHost\" -Force\n\t\t}\n\t}\n\n\tIf($DisableVariousTasks -eq 0) {\n\t\t#If($ShowSkipped -eq 1){ DisplayOut 'Skipping  Various Scheduled Tasks...' -C 15 }\n\t} ElseIf($DisableVariousTasks -eq 1) {\n\t\tDisplayOut \"`nEnabling Various Scheduled Tasks...`n------------------\" -C 12\n\t\tForEach($TaskN in $TasksList){ Get-ScheduledTask -TaskName $TaskN | Enable-ScheduledTask }\n\t} ElseIf($DisableVariousTasks -eq 2) {\n\t\tDisplayOut \"`nDisableing Various Scheduled Tasks...`n------------------\" -C 12\n\t\tForEach($TaskN in $TasksList){ Get-ScheduledTask -TaskName $TaskN | Disable-ScheduledTask }\n\t}\n\n\tIf(($ScreenSaverWaitTime -as [double]) -ne $null -and ($ScreenSaverWaitTime % 2) -In 0,1) {\n\t\tDisplayOut 'Setting ScreenSaver Wait Time to ',\"$ScreenSaverWaitTime Seconds\" -C 11,14\n\t\t$Path = CheckSetPath 'HKLM:\\Software\\Policies\\Microsoft\\Windows'\n\t\tSet-ItemProperty -Path  $Path -Name 'ScreenSaveTimeout' -Type DWord -Value $ScreenSaverWaitTime\n\t}\n\n\tBoxItem 'Application/Feature Items'\n\tIf($OneDrive -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping OneDrive...' -C 15 }\n\t} ElseIf($OneDrive -eq 1) {\n\t\tDisplayOut 'Enabling OneDrive...' -C 11\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive' -Name 'DisableFileSyncNGSC'\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSyncProviderNotifications' -Type DWord -Value 1\n\t} ElseIf($OneDrive -eq 2) {\n\t\tDisplayOut 'Disabling OneDrive...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive'\n\t\tSet-ItemProperty -Path $Path -Name 'DisableFileSyncNGSC' -Type DWord -Value 1\n\t\tSet-ItemProperty -Path 'HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced' -Name 'ShowSyncProviderNotifications' -Type DWord -Value 0\n\t}\n\n\tIf($OneDriveInstall -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping OneDrive Installing...' -C 15 }\n\t} ElseIf($OneDriveInstall -eq 1) {\n\t\tDisplayOut 'Installing OneDrive...' -C 11\n\t\t$onedriveS = \"$Env:WINDIR\\\"\n\t\tIf($OSBit -eq 64){ $onedriveS += 'SysWOW64' } Else{ $onedriveS += 'System32' }\n\t\t$onedriveS += '\\OneDriveSetup.exe'\n\t\tIf(Test-Path $onedriveS -PathType Leaf) { Start-Process $onedriveS -NoNewWindow }\n\t} ElseIf($OneDriveInstall -eq 2) {\n\t\tDisplayOut 'Uninstalling OneDrive...' -C 15\n\t\t$onedriveS = \"$Env:WINDIR\\\"\n\t\tIf($OSBit -eq 64){ $onedriveS += 'SysWOW64' } Else{ $onedriveS += 'System32' }\n\t\t$onedriveS += '\\OneDriveSetup.exe'\n\t\tIf(Test-Path $onedriveS -PathType Leaf) {\n\t\t\tStop-Process -Name OneDrive -Force\n\t\t\tStart-Sleep -s 3\n\t\t\tStart-Process $onedriveS '/uninstall' -NoNewWindow -Wait | Out-Null\n\t\t\tStart-Sleep -s 3\n\t\t\tStop-Process -Name Explorer -Force\n\t\t\tStart-Sleep -s 3\n\t\t\tRemove-Item \"$Env:USERPROFILE\\OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:LOCALAPPDATA\\Microsoft\\OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:PROGRAMDATA\\Microsoft OneDrive\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:WINDIR\\OneDriveTemp\" -Force -Recurse\n\t\t\tRemove-Item \"$Env:SYSTEMDRIVE\\OneDriveTemp\" -Force -Recurse\n\t\t\tRemove-Item -Path 'HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Recurse\n\t\t\tRemove-Item -Path 'HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}' -Force -Recurse\n\t\t}\n\t}\n\n\tIf($XboxDVR -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Xbox DVR...' -C 15 }\n\t} ElseIf($XboxDVR -eq 1) {\n\t\tDisplayOut 'Enabling Xbox DVR...' -C 11\n\t\tSet-ItemProperty -Path 'HKCU:\\System\\GameConfigStore' -Name 'GameDVR_Enabled' -Type DWord -Value 1\n\t\tRemove-ItemProperty -Path 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR' -Name 'AllowGameDVR'\n\t} ElseIf($XboxDVR -eq 2) {\n\t\tDisplayOut 'Disabling Xbox DVR...' -C 12\n\t\t$Path = CheckSetPath 'HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR'\n\t\tSet-ItemProperty -Path $Path -Name 'AllowGameDVR' -Type DWord -Value 0\n\t\tSet-ItemProperty -Path 'HKCU:\\System\\GameConfigStore' -Name 'GameDVR_Enabled' -Type DWord -Value 0\n\t}\n\n\tIf($MediaPlayer -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Windows Media Player...' -C 15 }\n\t} ElseIf($MediaPlayer -eq 1) {\n\t\tDisplayOut 'Installing Windows Media Player...' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'MediaPlayback').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'WindowsMediaPlayer' -NoRestart | Out-Null }\n\t} ElseIf($MediaPlayer -eq 2) {\n\t\tDisplayOut 'Uninstalling Windows Media Player...' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'MediaPlayback').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'WindowsMediaPlayer' -NoRestart | Out-Null }\n\t}\n\n\tIf($WorkFolders -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Work Folders Client...' -C 15 }\n\t} ElseIf($WorkFolders -eq 1) {\n\t\tDisplayOut 'Installing Work Folders Client...' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'WorkFolders-Client').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'WorkFolders-Client' -NoRestart | Out-Null }\n\t} ElseIf($WorkFolders -eq 2) {\n\t\tDisplayOut 'Uninstalling Work Folders Client...' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'WorkFolders-Client').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'WorkFolders-Client' -NoRestart | Out-Null }\n\t}\n\n\tIf($FaxAndScan -eq 0) {\n\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Fax And Scan...' -C 15 }\n\t} ElseIf($FaxAndScan -eq 1) {\n\t\tDisplayOut 'Installing Fax And Scan....' -C 11\n\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'FaxServicesClientPackage').State){ Enable-WindowsOptionalFeature -Online -FeatureName 'FaxServicesClientPackage' -NoRestart | Out-Null }\n\t} ElseIf($WFaxAndScan -eq 2) {\n\t\tDisplayOut 'Uninstalling Fax And Scan....' -C 14\n\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'FaxServicesClientPackage').State)){ Disable-WindowsOptionalFeature -Online -FeatureName 'FaxServicesClientPackage' -NoRestart | Out-Null }\n\t}\n\n\tIf($Win10Ver -ge 1607) {\n\t\tIf($LinuxSubsystem -eq 0) {\n\t\t\tIf($ShowSkipped -eq 1){ DisplayOut 'Skipping Linux Subsystem...' -C 15 }\n\t\t} ElseIf($LinuxSubsystem -eq 1) {\n\t\t\tDisplayOut 'Installing Linux Subsystem...' -C 11\n\t\t\tIf((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'Microsoft-Windows-Subsystem-Linux').State){\n\t\t\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock'\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowDevelopmentWithoutDevLicense' -Type DWord -Value 1\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowAllTrustedApps' -Type DWord -Value 1\n\t\t\t\tEnable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Windows-Subsystem-Linux' -NoRestart | Out-Null\n\t\t\t}\n\t\t} ElseIf($LinuxSubsystem -eq 2) {\n\t\t\tDisplayOut 'Uninstalling Linux Subsystem...' -C 14\n\t\t\tIf(!((Get-WindowsOptionalFeature -Online | Where-Object featurename -Like 'Microsoft-Windows-Subsystem-Linux').State)){\n\t\t\t\t$Path = 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock'\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowDevelopmentWithoutDevLicense' -Type DWord -Value 0\n\t\t\t\tSet-ItemProperty -Path $Path -Name 'AllowAllTrustedApps' -Type DWord -Value 0\n\t\t\t\tDisable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Windows-Subsystem-Linux' -NoRestart | Out-Null\n\t\t\t}\n\t\t}\n\t} ElseIf($LinuxSubsystem -ne 0) {\n\t\tDisplayOut \"Windows 10 Build isn't new enough for Linux Subsystem...\" -C 14\n\t}\n\n\tIf($AppxCount -ne 0) {\n\t\tBoxItem 'Waiting for Appx Task to Finish'\n\t\tWait-Job -Name \"Win10Script*\"\n\t\tRemove-Job -Name \"Win10Script*\"\n\t}\n\n\tIf($Restart -eq 1 -And $Release_Type -eq 'Stable') {\n\t\tClear-Host\n\t\tThanksDonate\n\t\t$Seconds = 15\n\t\tDisplayOut \"`nRestarting Computer in \",$Seconds,' Seconds...' -C 15,11,15\n\t\t$Message = 'Restarting in'\n\t\tStart-Sleep -Seconds 1\n\t\tForEach($Count In (1..$Seconds)){ If($Count -ne 0){ DisplayOut $Message,\" $($Seconds - $Count)\" -C 15,11 ;Start-Sleep -Seconds 1 } }\n\t\tDisplayOut 'Restarting Computer...' -C 13\n\t\tRestart-Computer\n\t} ElseIf($Release_Type -eq 'Stable') {\n\t\tDisplayOut 'Goodbye...' -C 13\n\t\tIf($Automated -eq 0){ Read-Host -Prompt \"`nPress any key to exit\" }\n\t\tExit\n\t} ElseIf($Automated -eq 0) {\n\t\tThanksDonate\n\t\tRead-Host -Prompt \"`nPress any key to Exit\"\n\t}\n}\n\n##########\n# Script -End\n##########\n\n# Used to get all values BEFORE any defined so\n# when exporting shows ALL defined after this point\n[System.Collections.ArrayList]$Script:WPFList = @()\n$AutomaticVariables = Get-Variable -Scope Script\n\nFunction SetDefault {\n#--------------------------------------------------------------------------\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!            SAFE TO EDIT VALUES             !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n# Edit values (Option) to your preference\n# Change to an Option not listed will Skip the Function/Setting\n\n# Note: If you're not sure what something does don't change it or do a web search\n\n# Can ONLY create 1 per 24 hours with this script (Will give an error)\n$Script:CreateRestorePoint = 0      #0-Skip, 1-Create --(Restore point before script runs)\n$Script:RestorePointName = \"Win10 Initial Setup Script\"\n\n#Skips Term of Use\n$Script:AcceptToS = 1               #1-See ToS, Anything else = Accepts Term of Use\n$Script:Automated = 0               #0-Pause at End/Error, Don't Pause at End/Error\n\n$Script:ShowSkipped = 1             #0-Don't Show Skipped, 1-Show Skipped\n\n#Update Related\n$Script:VersionCheck = 0            #0-Don't Check for Update, 1-Check for Update (Will Auto Download and run newer version)\n# Note: If found will Auto download and runs that, File name will be \"Win10-Menu.ps1\"\n\n$Script:InternetCheck = 0           #0 = Checks if you have Internet by doing a ping to GitHub.com\n                                    #1 = Bypass check if your pings are blocked\n\n#Restart when done? (I recommend restarting when done)\n$Script:Restart = 1                 #0-Don't Restart, 1-Restart\n\n#Windows Default for ALL Settings\n$Script:WinDefault = 2              #1-Yes*, 2-No\n# IF 1 is set then Everything Other than the following will use the Default Win Settings\n# ALL Values Above this one, All Windows Apps and OneDriveInstall (Will use what you set)\n\n#Privacy Settings\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:Telemetry = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:WiFiSense = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:SmartScreen = 0             #0-Skip, 1-Enable*, 2-Disable --(phishing and malware filter for some MS Apps/Prog)\n$Script:LocationTracking = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:Feedback = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:AdvertisingID = 0           #0-Skip, 1-Enable*, 2-Disable\n$Script:Cortana = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:CortanaSearch = 0           #0-Skip, 1-Enable*, 2-Disable --(If you disable Cortana you can still search with this)\n$Script:ErrorReporting = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:AutoLoggerFile = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:DiagTrack = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:WAPPush = 0                 #0-Skip, 1-Enable*, 2-Disable --(type of text message that contains a direct link to a particular Web page)\n\n#Windows Update\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:UpdateMSProducts = 0\t\t#0-Skip, 1-Enable, 2-Disable*\n$Script:CheckForWinUpdate = 0       #0-Skip, 1-Enable*, 2-Disable\n$Script:WinUpdateType = 0           #0-Skip, 1-Notify, 2-Auto DL, 3-Auto DL+Install*, 4-Local admin chose --(May not work with Home version)\n$Script:WinUpdateDownload = 0       #0-Skip, 1-P2P*, 2-Local Only, 3-Disable\n$Script:UpdateMSRT = 0              #0-Skip, 1-Enable*, 2-Disable --(Malware Software Removal Tool)\n$Script:UpdateDriver = 0            #0-Skip, 1-Enable*, 2-Disable --(Offering of drivers through Windows Update)\n$Script:RestartOnUpdate = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:AppAutoDownload = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:UpdateAvailablePopup = 0    #0-Skip, 1-Enable*, 2-Disable\n\n#Service Tweaks\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:UAC = 0                     #0-Skip, 1-Lower, 2-Normal*, 3-Higher\n$Script:SharingMappedDrives = 0     #0-Skip, 1-Enable, 2-Disable* --(Sharing mapped drives between users)\n$Script:AdminShares = 0             #0-Skip, 1-Enable*, 2-Disable --(Default admin shares for each drive)\n$Script:Firewall = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:WinDefender = 0             #0-Skip, 1-Enable*, 2-Disable\n$Script:HomeGroups = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:RemoteAssistance = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:RemoteDesktop = 0           #0-Skip, 1-Enable, 2-Disable* --(Remote Desktop w/o Network Level Authentication)\n\n#Context Menu Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:CastToDevice = 0            #0-Skip, 1-Enable*, 2-Disable\n$Script:PreviousVersions = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:IncludeinLibrary = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:PinToStart = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:PinToQuickAccess = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:ShareWith = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:SendTo = 0                  #0-Skip, 1-Enable*, 2-Disable\n\n#Task Bar Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:BatteryUIBar = 0            #0-Skip, 1-New*, 2-Classic --(Classic is Win 7 version)\n$Script:ClockUIBar = 0              #0-Skip, 1-New*, 2-Classic --(Classic is Win 7 version)\n$Script:VolumeControlBar = 0        #0-Skip, 1-New(Horizontal)*, 2-Classic(Vertical) --(Classic is Win 7 version)\n$Script:TaskbarSearchBox = 0        #0-Skip, 1-Show*, 2-Hide\n$Script:TaskViewButton = 0          #0-Skip, 1-Show*, 2-Hide\n$Script:TaskbarIconSize = 0         #0-Skip, 1-Normal*, 2-Smaller\n$Script:TaskbarGrouping = 0         #0-Skip, 1-Never, 2-Always*, 3-When Needed\n$Script:TrayIcons = 0               #0-Skip, 1-Auto*, 2-Always Show\n$Script:SecondsInClock = 0          #0-Skip, 1-Show, 2-Hide*\n$Script:LastActiveClick = 0         #0-Skip, 1-Enable, 2-Disable* --(Makes Taskbar Buttons Open the Last Active Window)\n$Script:TaskBarOnMultiDisplay = 0   #0-Skip, 1-Enable*, 2-Disable\n$Script:TaskBarButtOnDisplay = 0    #0-Skip, 1-All, 2-where window is open, 3-Main and where window is open\n\n#Star Menu Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:StartMenuWebSearch = 0      #0-Skip, 1-Enable*, 2-Disable\n$Script:StartSuggestions = 0        #0-Skip, 1-Enable*, 2-Disable --(The Suggested Apps in Start Menu)\n$Script:MostUsedAppStartMenu = 0    #0-Skip, 1-Show*, 2-Hide\n$Script:RecentItemsFrequent = 0     #0-Skip, 1-Enable*, 2-Disable --(In Start Menu)\n$Script:UnpinItems = 0              #0-Skip, 1-Unpin\n\n#Explorer Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:AccessKeyPrmpt = 0          #0-Skip, 1-Enable*, 2-Disable\n$Script:F1HelpKey = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:Autoplay = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:Autorun = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:PidInTitleBar = 0           #0-Skip, 1-Show, 2-Hide* --(PID = Processor ID)\n$Script:AeroSnap = 0                #0-Skip, 1-Enable*, 2-Disable --(Allows you to quickly resize the window you’re currently using)\n$Script:AeroShake = 0               #0-Skip, 1-Enable*, 2-Disable\n$Script:KnownExtensions = 0         #0-Skip, 1-Show, 2-Hide*\n$Script:HiddenFiles = 0             #0-Skip, 1-Show, 2-Hide*\n$Script:SystemFiles = 0             #0-Skip, 1-Show, 2-Hide*\n$Script:ExplorerOpenLoc = 0         #0-Skip, 1-Quick Access*, 2-ThisPC --(What location it opened when you open an explorer window)\n$Script:RecentFileQikAcc = 0        #0-Skip, 1-Show/Add*, 2-Hide, 3-Remove --(Recent Files in Quick Access)\n$Script:FrequentFoldersQikAcc = 0   #0-Skip, 1-Show*, 2-Hide --(Frequent Folders in Quick Access)\n$Script:WinContentWhileDrag = 0     #0-Skip, 1-Show*, 2-Hide\n$Script:StoreOpenWith = 0           #0-Skip, 1-Enable*, 2-Disable\n$Script:WinXPowerShell = 0          #0-Skip, 1-PowerShell*, 2-Command Prompt\n$Script:TaskManagerDetails = 0      #0-Skip, 1-Show, 2-Hide*\n$Script:ReopenAppsOnBoot = 0        #0-Skip, 1-Enable*, 2-Disable\n$Script:Timeline = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:LongFilePath = 0            #0-Skip, 1-Enable, 2-Disable*\n$Script:AppHibernationFile = 0      #0-Skip, 1-Enable*, 2-Disable\n\n#'This PC' Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:DesktopIconInThisPC = 0     #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:DocumentsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:DownloadsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:MusicIconInThisPC = 0       #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:PicturesIconInThisPC = 0    #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:VideosIconInThisPC = 0      #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n$Script:ThreeDobjectsIconInThisPC = 0   #0-Skip, 1-Show/Add*, 2-Hide, 3- Remove\n# CAUTION: Removing them can cause problems\n\n#Desktop Items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:ThisPCOnDesktop = 0         #0-Skip, 1-Show, 2-Hide*\n$Script:NetworkOnDesktop = 0        #0-Skip, 1-Show, 2-Hide*\n$Script:RecycleBinOnDesktop = 0     #0-Skip, 1-Show, 2-Hide*\n$Script:UsersFileOnDesktop = 0      #0-Skip, 1-Show, 2-Hide*\n$Script:ControlPanelOnDesktop = 0   #0-Skip, 1-Show, 2-Hide*\n\n#Lock Screen\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:LockScreen = 0              #0-Skip, 1-Enable*, 2-Disable\n$Script:LockscreenPassword = 0      #0-Skip, 1-Enable*, 2-Disable\n$Script:PowerMenuLockScreen = 0     #0-Skip, 1-Show*, 2-Hide\n$Script:CameraOnLockScreen = 0      #0-Skip, 1-Enable*, 2-Disable\n\n#Misc items\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:ScreenSaver = 0             #0-Skip, 1-Enable*, 2-Disable\n$Script:AccountProtectionWarn = 0   #0-Skip, 1-Enable*, 2-Disable\n$Script:ActionCenter = 0            #0-Skip, 1-Enable*, 2-Disable\n$Script:StickyKeyPrompt = 0         #0-Skip, 1-Enable*, 2-Disable\n$Script:NumblockOnStart = 0         #0-Skip, 1-Enable, 2-Disable*\n$Script:F8BootMenu = 0              #0-Skip, 1-Enable, 2-Disable*\n$Script:RemoteUACAcctToken = 0      #0-Skip, 1-Enable, 2-Disable*\n$Script:HibernatePower = 0          #0-Skip, 1-Enable, 2-Disable --(Hibernate Power Option)\n$Script:SleepPower = 0              #0-Skip, 1-Enable*, 2-Disable --(Sleep Power Option)\n\n# Photo Viewer Settings\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:PVFileAssociation = 0       #0-Skip, 1-Enable, 2-Disable*\n$Script:PVOpenWithMenu = 0          #0-Skip, 1-Enable, 2-Disable*\n\n# Application/Feature\n# Function = Option                 #Choices (* Indicates Windows Default)\n$Script:OneDrive = 0                #0-Skip, 1-Enable*, 2-Disable\n$Script:OneDriveInstall = 0         #0-Skip, 1-Installed*, 2-Uninstall\n$Script:XboxDVR = 0                 #0-Skip, 1-Enable*, 2-Disable\n$Script:MediaPlayer = 0             #0-Skip, 1-Installed*, 2-Uninstall\n$Script:WorkFolders = 0             #0-Skip, 1-Installed*, 2-Uninstall\n$Script:FaxAndScan = 0              #0-Skip, 1-Installed*, 2-Uninstall\n$Script:LinuxSubsystem = 0          #0-Skip, 1-Installed, 2-Uninstall* (Anniversary Update or Higher)\n\n# Custom List of App to Install, Hide or Uninstall\n# I dunno if you can Install random apps with this script\n[System.Collections.ArrayList]$Script:APPS_AppsUnhide = @()         # Apps to Install\n[System.Collections.ArrayList]$Script:APPS_AppsHide = @()           # Apps to Hide\n[System.Collections.ArrayList]$Script:APPS_AppsUninstall = @()      # Apps to Uninstall\n#$Script:APPS_Example = @('Somecompany.Appname1','TerribleCompany.Appname2','AppS.Appname3')\n# To get list of Packages Installed (in PowerShell)\n# DISM /Online /Get-ProvisionedAppxPackages | Select-string Packagename\n\n\n# Windows Apps\n# By Default Most of these are installed\n# Function  = Option  # 0-Skip, 1-Unhide, 2- Hide, 3-Uninstall (!!Read Note Above)\n$Script:APP_3DBuilder = 0           # 3DBuilder app\n$Script:APP_3DViewer = 0            # 3DViewer app\n$Script:APP_BingWeather = 0         # Bing Weather app\n$Script:APP_CommsPhone = 0          # Phone app\n$Script:APP_Communications = 0      # Calendar & Mail app\n$Script:APP_GetHelp = 0             # Microsoft's Self-Help App\n$Script:APP_Getstarted = 0          # Get Started link\n$Script:APP_Messaging = 0           # Messaging app\n$Script:APP_MicrosoftOffHub = 0     # Get Office Link\n$Script:APP_MovieMoments = 0        # Movie Moments app\n$Script:APP_Netflix = 0             # Netflix app\n$Script:APP_OfficeOneNote = 0       # Office OneNote app\n$Script:APP_OfficeSway = 0          # Office Sway app\n$Script:APP_OneConnect = 0          # One Connect\n$Script:APP_People = 0              # People app\n$Script:APP_Photos = 0              # Photos app\n$Script:APP_SkypeApp1 = 0           # Microsoft.SkypeApp\n$Script:APP_SolitaireCollect = 0    # Microsoft Solitaire\n$Script:APP_StickyNotes = 0         # Sticky Notes app\n$Script:APP_WindowsWallet = 0       # Stores Credit and Debit Card Information\n$Script:APP_VoiceRecorder = 0       # Voice Recorder app\n$Script:APP_WindowsAlarms = 0       # Alarms and Clock app\n$Script:APP_WindowsCalculator = 0   # Calculator app\n$Script:APP_WindowsCamera = 0       # Camera app\n$Script:APP_WindowsFeedbak1 = 0     # Microsoft.WindowsFeedback\n$Script:APP_WindowsFeedbak2 = 0     # Microsoft.WindowsFeedbackHub\n$Script:APP_WindowsMaps = 0         # Maps app\n$Script:APP_WindowsPhone = 0        # Phone Companion app\n$Script:APP_WindowsStore = 0        # Windows Store\n$Script:APP_XboxApp = 0             # All Xbox apps (There is a few)\n$Script:APP_ZuneMusic = 0           # Groove Music app\n$Script:APP_ZuneVideo = 0           # Groove Video app\n\n#These Items are NOT shown in GUI\n#These items must be set here or set in a loaded config file\n$Script:ScreenSaverWaitTime = \"NC\"  #Change \"NC\" to a number in seconds for the time\n$Script:DisableVariousTasks = 0     #0-Skip, 1-Enable, 2-Disable some scheduled tasks... This is Experimental\n#to see the scheduled tasks search for $TasksList (near top of script)\n# --------------------------------------------------------------------------\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n## !!                                            !!\n## !!        DO NOT EDIT PAST THIS POINT         !!\n## !!                                            !!\n## !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n}\nScriptPreStart\n"
  },
  {
    "path": "_Win10-Script-Run.bat",
    "content": "@ECHO OFF\n:: Version 1.1\n:: December 14th, 2017\n\n:: Instructions\n:: Bat, Script, and setting MUST be in same Folder\n:: Change Option to = one of the listed options (mostly yes or no)\n\nSet Run_Option=0\n:: Anything other than following does nothing\n:: 0 = Go to Script Menu\n:: 1 = Run Script with Settings in Script File\n:: 2 = Run Script with Windows Default\n:: 3 = Run Script with Your Setting file (Change file name bellow)\n:: 4 = Load Script with Windows Default (Does not run)\n:: 5 = Load Script with Your Setting file (Does not run)\n\n:: Name of Script File\nSet Script_File=Win10-Menu.ps1\n\n:: Name of Setting File (Change Mine.csv to your setting file, if you have one)\nSet Setting_File=Mine.csv\n:: DO NOT HAVE SPACES IN FILENAME\n\n:: Change these to yes or no\nSet Accept_ToS=no\n:: no = See ToS\n:: yes = Skip ToS (You accepted it)\n\nSet Create_Restore_Point=no\nSet Restore_Point_Name=Win10_Initial_Setup_Script\n:: DO NOT HAVE SPACES IN NAME\n\nSet Restart_when_Done=yes\n\n:: Update Checks   \n:: If update is found it will Auto-download and use that (with your settings)       \nSet Script=no\nSet Internet_Check=yes \n:: Internet_Check only matters If Script is yes and pings to github.com is blocked \n\n::----------------------------------------------------------------------\n:: Do not change unless you know what you are doing\nSet Script_Directory=%~dp0\nSet Script_Path=%Script_Directory%%Script_File%\n\n:: DO NOT CHANGE ANYTHING PAST THIS LINE\n::----------------------------------------------------------------------\nSETLOCAL ENABLEDELAYEDEXPANSION\n\nIf /i %Run_Option%==1 Set Run_Option=!Run_Option! -run\nIf /i %Run_Option%==2 Set Run_Option=!Run_Option! -run wd\nIf /i %Run_Option%==3 Set Run_Option=!Run_Option! -run %Setting_File%\nIf /i %Run_Option%==4 Set Run_Option=!Run_Option! -load wd\nIf /i %Run_Option%==5 Set Run_Option=!Run_Option! -load %Setting_File%\n\nIf /i %Accept_ToS%==yes Set Run_Option=!Run_Option! -atos\n\nIf /i %Create_Restore_Point%==yes Set Run_Option=!Run_Option! -crp %Restore_Point_Name%\n\nIf /i %Internet_Check%==no Set Run_Option=!Run_Option! -sic\n\nIf /i %Script%==yes Set Run_Option=!Run_Option! -usc\n\nIf /i %Restart_when_Done%==no Set Run_Option=!Run_Option! -dnr\n\necho \"Running !Script_File!\"\nPowerShell -NoProfile -ExecutionPolicy Bypass -Command \"& '!Script_Path!' !Run_Option!\" -Verb RunAs\nENDLOCAL DISABLEDELAYEDEXPANSION\n"
  },
  {
    "path": "todo.md",
    "content": "# To Do/Done\nNothing ATM (If you have a suggestion let me know)\n\n-------------------------------------------------------------------------------------------------------------\n# Working On/Testing\nNothing ATM\n\n-------------------------------------------------------------------------------------------------------------\n# Thinking of adding/Might add\n- [ ] Undo the change in Win+X menu in the creator's update (setting -> control panel) -- If i can find how to do\n- [ ] Ability to read current window settings and have gui select it (with a button)\n- [ ] Automatically saving script options + tos accept so the options are used on next run\n"
  }
]