Windows 10 1803 Optimisation Script

Windows 10 1803 Optimisation Script.

Tested on: Windows 10 1803 (up to build 16299.785)

Description: This script disables services, disables scheduled tasks and modifies the registry to optimise system performance on Windows 10 1803 running in a Citrix VDI environment.

Note: This script makes changes to the system registry and performs other configuration changes. As such a full backup of the machine or snapshot if running in a virtual environment is strongly recommended. Carry out full testing before introducing the optimised image to production.
You should review ALL optimisations this script makes and determine if they fit in to your environment. Not all optimisations will suit all environments.
To avoid failure, run PowerShell as an administrator before running this script and make sure you are using the 64-bit version of PowerShell.

Download (click below):

Windows 10 1803 Optimisation Script (17209 downloads)

Any problems with the script or if you want to make your own suggestions then comment below.

Open the script using a text editor or PowerShell ISE to see what exactly the script does.


22 Comments

  • Moe433

    January 16, 2019

    I love what the script does, and it’s totally possible I’m doing something wrong, but it runs, completes, the settings/apps are changed/removed in the OS layer, but when I publish a full image and log in, things like Solitaire, Paint, etc are still there. I reboot when the script is complete then finalize the layer. Any thoughts?

    Reply
    • George Spiers

      January 25, 2019

      You are running 1803 right? Sounds like what you are seeing is Live Tiles. If you log on as a user and run “Get-AppXPackage | select Name” you will probably not see any of those applications you mention in the list. I just re-ran the script on my 1803 test machine and it removes the UWP applications fine apart from Photos, Calculator and Sticky Notes (intended).

      Reply
  • Thomas

    January 17, 2019

    the script completely remove the wifi, how to fix it?

    Reply
    • George Spiers

      January 25, 2019

      Start the “WlanSvc” service again. WLAN AutoConfig.

      Reply
  • Maciek

    January 21, 2019

    Good work!

    Reply
  • john

    March 14, 2019

    i receive access denied error how can i fix it?

    Reply
  • Rohan

    March 21, 2019

    Would it make sense if I run Citrix Optimizer and your script on the master image ? Or both optimizers doing the same thing ?

    Reply
    • George Spiers

      March 21, 2019

      Just run one or the other. My script is more aggresive (it tweaks more things) but I have used it in production without issue. Also, Optimizer is also safe as well. My script does pretty much everything that the Optimizer does plus some more.

      Reply
  • Maximiliano

    March 25, 2019

    Hi, with this script can I run a sysprep ?

    Reply
    • George Spiers

      March 25, 2019

      Yes that should be possible.

      Reply
  • Pingback: Citrix VDI Windows 10 1803优化脚本 – KB随手记

  • Moises Arana

    April 15, 2019

    Hi, Will this work for 1809 release? Thank you.

    Reply
    • George Spiers

      April 16, 2019

      It will and some people have had success using it. It doesn’t cover anything new in 1809 such as any new services etc. but the majority should still apply.

      Reply
      • john gorena

        April 30, 2019

        Hi there

        I used your script on a 1809 version and corrupts Windows Defender, the icon for windows defender is gone as well all GUI

        Reply
        • George Spiers

          May 3, 2019

          It does disable Windows Defender. If you open the script, search for “Defender” then comment out any line you don’t want to prevent it from executing.

          Reply
  • Werner

    July 29, 2019

    Could you optimize your script also for the new 1903 build? Many thanks 😉

    Reply
    • George Spiers

      July 31, 2019

      It’s in my mind to do so yes 🙂

      Reply
  • Vinny

    August 16, 2019

    Can I use this script for the new 1903?

    Reply
    • George Spiers

      August 19, 2019

      I haven’t tried it so use at your own risk and make sure to test and take a snapshot of your testing machine for roll-back.

      Reply
  • Marc

    September 17, 2019

    Since applying this to an 1809 Build it´s showing no Internet Connection and O365 Apps can´t activate. Any clue which setting causes this behaviour?

    Reply
  • Owen Reynolds

    July 17, 2020

    Thank you for this, George!

    With a few edits to leave a few apps/services in place, I recently used the code within your Win 10 1803-based script to optimize my Win 10 2004 golden image at home. I didn’t run into any issues despite your script warning me it was designed for an older version of windows. Thanks again and keep up the great work

    Owen

    Reply
  • Jim

    November 5, 2020

    Im not great at scripting, any idea how I can run it remotely on a list of computers?

    Reply

Leave a Reply