• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
WebSetNet

WebSetNet

Technology News

  • Technology News
    • Mobile
    • Games
  • Internet Marketing
  • System Admin
    • Windows
    • Linux
    • Mac & Apple
    • Website Scripts
      • Wordpress

Run Windows 10 Setup Script after installation to customize the OS

August 30, 2020 by billy16

Windows 10 Setup Script is a PowerShell script designed to be run right on the first run after Windows 10 was installed and set up on a computer. The main idea behind the script is to give administrators ample options to customize the experience, e.g. by modifying privacy related settings, making other tweaks, or removing built-in applications.

Note: Windows 10 Setup Script is an advanced script that should not be run on Windows 10 installations that are not new. Additionally, since it can potentially change many settings and options on the system, it is advised to create a backup before you run the script.

Tip: check out our overview of privacy tools for Windows 10.

Windows 10 Setup Script

Using the script requires some preparation. First, it is important that you download the script for the target version of Windows 10 that you want to modify. The developer offers scripts for Windows 10 version 1903, 1909, 2004 and Windows 10 LTSC 1809. A test version for Windows 10 21H1 is in the works right now as well.

Once you have downloaded and extracted the right version, it is necessary to open the script in a text editor or PowerShell IDE as it needs to be configured before it should be run. While you can, in theory, run the script and use all of the defaults, it is better to go through the script to enable or disable the options to be in line with your expectations.

windows 10 setup script

Users who cannot read PowerShell scripts may still do that as documentation is provided in the form of comments. Still, it is best suited for advanced users who will feel more comfortable doing that. The Windows 10 version 2004 script has a total of 3488 lines and that takes some time to go through, even if you are an advanced user.

So, what modifications does the script support? Among others (the full list is here):

  • Set up Privacy & Telemetry
  • Turn off diagnostics tracking scheduled tasks
  • Set up UI & Personalization
  • Uninstall OneDrive “correctly”
  • Change %TEMP% environment variable path to %SystemDrive%Temp
  • Change location of the user folders programmatically (without moving user files) within interactive menu using up/down arrows and Enter key to make a selection
  • Uninstall UWP apps from all accounts with exception apps list with pop-up form written in WPF
  • Turn off Windows features
  • Remove Windows capabilities with pop-up form written in WPF
  • Create a Windows cleaning up task in the Task Scheduler
  • Unpin all Start menu tiles
  • Pin shortcuts to Start menu using syspin.exe
  • Three shortcuts are preconfigured to be pinned: Control Panel, “old style” Devices and Printers, and Command Prompt
  • Turn on Controlled folder access and add protected folders using dialog menu
  • Add exclusion folder from Microsoft Defender Antivirus scanning using dialog menu
  • Add exclusion file from Microsoft Defender Antivirus scanning using dialog menu
  • Refresh desktop icons, environment variables and taskbar without restarting File Explorer

All you need to do is use comments # to enable or disable certain tweaks in the script. Just place these in the front of commands to skip them when the script is run. Save the script once you have modified it.

Now it is necessary to run it on the system. This requires that you set the execution policy to bypass as Windows 10 will refuse to run the script otherwise.

  1. Open an elevated PowerShell prompt, e.g. by displaying the “secret” menu with Windows-X and selecting the option.
  2. Run the command: Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force
  3. Run the PowerShell script or Start.cmd as administrator afterwards.

The program may display some choices to you, e.g. a list of apps to uninstall, depending on your editing of the script.

Closing Words

Windows 10 Setup Script is an advanced tool for advanced users and system administrators who want to modify new installations of Windows 10 right from the get-go. It takes quite a bit of preparing as you need to go through the script to make sure that everything is set up according to the needs before the script is run.

All in all, a great tool for advanced users who want to modify the system heavily.

Now You: do you use privacy tools?

Thank you for being a Ghacks reader. The post Run Windows 10 Setup Script after installation to customize the OS appeared first on gHacks Technology News.

Related posts:

  1. The ultimate guide to fixing problems with the May 2020 Update
  2. PowerShell Core 6.0 and Why Windows PowerShell Is No Longer Being Developed
  3. Running out of storage? Try these tips to free up space on Windows 10
  4. Best free Android apps of 2017: 100 you must download
  5. Using Windows PowerShell Modules in PowerShell 7
  6. 25 of the Best Form Builder Tools for 2020
  7. Samsung Galaxy S20 tips and tricks: The insider’s guide to the S20FE, S20, S20+ and S20 Ultra
  8. Samsung Galaxy S20 tips and tricks: The insider's guide to the S20, S20+ and S20 Ultra
  9. Samsung Galaxy S21 tips and tricks: Master the S21, S21+ and S21 Ultra
  10. Samsung Galaxy S22 tips and tricks: Master the S22, S22+, S22 Ultra

Filed Under: Windows

Primary Sidebar

Trending

  • How to fix Windows Update Error 80244019
  • Windows 10 Update keeps failing with error 0x8007001f – 0x20006
  • How To Change Netflix Download Location In Windows 10
  • Troubleshoot Outlook “Not implemented” Unable to Send Email Error
  • How do I enable or disable Alt Gr key on Windows 10 keyboard
  • How To Install Android App APK on Samsung Tizen OS Device
  • 3 Ways To Open PST File Without Office Outlook In Windows 10
  • FIX: Windows Update error 0x800f0986
  • How to Retrieve Deleted Messages on Snapchat
  • Latest Samsung Galaxy Note 20 leak is a spec dump revealing key features
  • Install Android 7.0 Nougat ROM on Galaxy Core 2 SM-G355H
  • 192.168.1.1 Login, Admin Page, Username, Password | Wireless Router Settings
  • Websites to Watch Movies Online – 10+ Best Websites Without SignUp/Downloading
  • How to Backup SMS Messages on Your Android Smartphone
  • How to delete a blank page at the end of a Microsoft Word document
  • Fix: The Disc Image File Is Corrupted Error In Windows 10
  • Android 11 Custom ROM List – Unofficially Update Your Android Phone!
  • Samsung Galaxy Z Fold 3 could be scheduled for June 2021, with S Pen support

Footer

Tags

Amazon amazon prime amazon prime video Apple Application software epic games Galaxy Note 20 Galaxy S22 Plus Galaxy S22 Ultra Google Sheets headphones Huawei icloud Instagram instant gaming ip address iPhone iphone 12 iphone 13 iphone 13 pro max macOS Microsoft Microsoft Edge Mobile app office 365 outlook Pixel 6 Samsung Galaxy Samsung Galaxy Book 2 Pro 360 Samsung Galaxy Tab S8 Smartphone speedtest speed test teams tiktok Twitter vpn WhatsApp whatsapp web Windows 10 Windows 11 Changes Windows 11 Release Windows 11 Update Windows Subsystem For Android Windows 11 Xiaomi

Archives

  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org