Remove win10 upgrade option through group policy with .bat script

gordoclimbs

New member
Local time
1:18 AM
Messages
17
Location
Halifax, NS, Canada
So I found a thread by "Brink" that suggests removing the option to upgrade your OS (therefore remove the pesky win10 prompts) from the group policy editor. This is only available on win 7 pro. I work with many small networks literally over 1500 individual machines sub divided into hundreds of networks. I want to keep all these machines on win7 pro. So I'm wondering since this group policy editor change is so simple and effective can I script a .bat file deploy it out to all my machines and have the users run it once to make the change then its done. Otherwise I'm going to have to remote into each machine and do it manually or send out a word based doc. with screen shots on how to do it to my users. Much appreciate any help in advance.. Gordo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self made custom
OS
64 bit win7 pro
CPU
AMD 8 core 8320
Motherboard
gigabyte UD3
Memory
24 GB Kingston Fury DDR3 1600
Graphics Card(s)
Gigabyte windforce R9 280X
Monitor(s) Displays
2X Asus VS228
Screen Resolution
1920 X 1080p
Hard Drives
OCZ 240GB SSD

2 X 1TB
PSU
Cooler master 750
Case
Antec
Internet Speed
Bell Aliant fiber op
Antivirus
Malwarebytes premium
Browser
Chrome
Hi Gordo, I don't know if there is any way of creating a batch file to change Group policies, somebody may be able to correct me on that though.
However, you could create a batch file using the below entries to remove all Windows 10 related updates and use that on each system. Then keep those updates hidden perhaps?
Here are the updates I would consider Windows 10 related, but you may want to google each one and see which ones you think are worth removing/keeping? The Windows update client updates seem to be updated every month though, so you may need to keep an eye on that each month.

wusa /uninstall /kb:2952664 /quiet /norestart
wusa /uninstall /kb:2990214 /quiet /norestart
wusa /uninstall /kb:3021917 /quiet /norestart
wusa /uninstall /kb:3022345 /quiet /norestart
wusa /uninstall /kb:3035583 /quiet /norestart
wusa /uninstall /kb:3050265 /quiet /norestart
wusa /uninstall /kb:3065987 /quiet /norestart
wusa /uninstall /kb:3068708 /quiet /norestart
wusa /uninstall /kb:3075249 /quiet /norestart
wusa /uninstall /kb:3075851 /quiet /norestart
wusa /uninstall /kb:3080149 /quiet /norestart
wusa /uninstall /kb:3083324 /quiet /norestart
wusa /uninstall /kb:3083710 /quiet /norestart
wusa /uninstall /kb:3102810 /quiet /norestart
wusa /uninstall /kb:3112343 /quiet /norestart
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate, Win 8.1 Pro, Linux Mint 19 Cinnamon (All 64-Bit)
CPU
Intel i5 4690K
Motherboard
Gigabyte Z97X-UD3H
Memory
Corsair Vengeance LP 32GB DDR3
Graphics Card(s)
MSI GTX 1060 GAMING X 6GB
Sound Card
Onboard
Hard Drives
Samsung 850 EVO 250GB SSD (x2)
Samsung 860 EVO 1TB SSD (x2)
Crucial MX300 525GB SSD
WD Blue 2TB 5400rpm Intellipark Disabled (x2)
PSU
Corsair HX750i
Case
Phanteks Enthoo Pro
Cooling
CM Hyper 212 EVO on CPU, Noctua Redux NF-P14S 1500rpm (x6)
Keyboard
Corsair K70 RGB LUX
Mouse
Corsair Sabre RGB
Antivirus
Avast Free, MalwareBytes, SAS & CryptoPrevent
Browser
Chrome
Other Info
StarTech PEXESAT322I 2 Port PCI-E SATA Card
ASUS PCE-AC56 Dual-band AC1300 Wireless Card
Akasa FC.Six Manual Fan Controller
And a Partridge in a Pear Tree!
Hi Brds7t7, thanks I think that you are correct that this method would be a temp fix and that it possibly would require monthly maintenance as they are really pushing win10 on users. However I am thinking more of a simple long term fix. I guess I also wasn't exactly clear earlier either.

What I ment is that when one makes the change through Group Policy it changes one registry key and I'd like to write a .bat to make that reg. change instead.

HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{E40E0910-88C2-4920-A10E-DFE6B595998F}Machine\Software\Policies\Microsoft\Windows\WindowsUpdate\DisableOSUpgrade this is the key that is changed.

I have also found that this other key essentially does the same thing it is just stored in another part of the registry
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\windowsUpdate\DisableOSUpgrade


I think this should be possible I am just a manual regedit kinda guy... thanks Gordo
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self made custom
OS
64 bit win7 pro
CPU
AMD 8 core 8320
Motherboard
gigabyte UD3
Memory
24 GB Kingston Fury DDR3 1600
Graphics Card(s)
Gigabyte windforce R9 280X
Monitor(s) Displays
2X Asus VS228
Screen Resolution
1920 X 1080p
Hard Drives
OCZ 240GB SSD

2 X 1TB
PSU
Cooler master 750
Case
Antec
Internet Speed
Bell Aliant fiber op
Antivirus
Malwarebytes premium
Browser
Chrome
Hi Gordo,

From what I've been reading and some reports on here just changing the registry entry doesn't always stick after some Windows updates. Some people have reported even though they have set it, after another Windows update client update it's been reset and it's started downloading the 10 upgrade files.

I personally haven't experienced this happen myself though. At least not yet anyway. 10 is getting nowhere near my system! :D
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate, Win 8.1 Pro, Linux Mint 19 Cinnamon (All 64-Bit)
CPU
Intel i5 4690K
Motherboard
Gigabyte Z97X-UD3H
Memory
Corsair Vengeance LP 32GB DDR3
Graphics Card(s)
MSI GTX 1060 GAMING X 6GB
Sound Card
Onboard
Hard Drives
Samsung 850 EVO 250GB SSD (x2)
Samsung 860 EVO 1TB SSD (x2)
Crucial MX300 525GB SSD
WD Blue 2TB 5400rpm Intellipark Disabled (x2)
PSU
Corsair HX750i
Case
Phanteks Enthoo Pro
Cooling
CM Hyper 212 EVO on CPU, Noctua Redux NF-P14S 1500rpm (x6)
Keyboard
Corsair K70 RGB LUX
Mouse
Corsair Sabre RGB
Antivirus
Avast Free, MalwareBytes, SAS & CryptoPrevent
Browser
Chrome
Other Info
StarTech PEXESAT322I 2 Port PCI-E SATA Card
ASUS PCE-AC56 Dual-band AC1300 Wireless Card
Akasa FC.Six Manual Fan Controller
And a Partridge in a Pear Tree!
Hey Brds7t7,

I really hope that does not happen, first I work with lots of machines in the hospitality industry we sell POS systems for retail, restaurants and bars and none of our software solutions work with win10 so its really bad when one of our clients unknowingly upgrades as everything breaks and can bring their whole system down. Its pretty inconsiderate of MS to not consider our needs and that for lots of industry using win7 they will never want to upgrade to 10. Hopefully there is light at the end of the tunnel as MS is only offering win10 free until July of 2016 so hopefully the intrusion into our systems will stop at that time. I have done the registry changes on a few of our most recent builds and also uninstalled and hid updates related to win10 on others and will continuously monitor them to see which ones take and keep everyone posted. Thanks Gordo
 
Last edited:

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self made custom
OS
64 bit win7 pro
CPU
AMD 8 core 8320
Motherboard
gigabyte UD3
Memory
24 GB Kingston Fury DDR3 1600
Graphics Card(s)
Gigabyte windforce R9 280X
Monitor(s) Displays
2X Asus VS228
Screen Resolution
1920 X 1080p
Hard Drives
OCZ 240GB SSD

2 X 1TB
PSU
Cooler master 750
Case
Antec
Internet Speed
Bell Aliant fiber op
Antivirus
Malwarebytes premium
Browser
Chrome

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 Home Premium
CPU
i5-3570k
Motherboard
ASUS Sabertooth z77
Memory
16 GB DDR3 G Skill Sniper
Graphics Card(s)
GIGABYTE GeForce GTX 970 GV-N970WF3OC-4GD
Monitor(s) Displays
ASUS ROG PG278Q
Screen Resolution
2560x1440@60Hz/120Hz/144Hz
Hard Drives
56GB KINGSTON SVP200S37A60G
512GB Crucial MX100
1863GB Seagate ST2000DM001-1CH164
2795GB Seagate ST3000DM001-9YN166
PSU
Corsair GS800
Case
Storm Trooper Stryker White
Keyboard
Logitech G910 Orion Spark
Mouse
Logitech G502
Antivirus
MSE
Browser
Firefox/Chrome
Other Info
Logitech G633
Logitech Mouse Matt
Back
Top