Use following VBS script Startup or Shutdown script. vb Option Explicit Dim objItem, colItems, objWMIService, strComputer, objShell strComputer = “.” Set objShell = CreateObject(“WScript.Shell”) Set objWMIService = GetObject(“winmgmts:\” & strComputer & “rootcimv2”) Set colItems = objWMIService.ExecQuery(“Select * from Win32_OperatingSystem”,,48) For Each objItem in colItems If InStr(objItem.Caption,”2000″) Then ‘Add your line here for 2000 objShell.Run “regedit”, 1, True End If If
Author: Saugata Datta
I’m an IT/DevOps professional with many years of hands-on experience across Windows, Linux, Automation, Backup and Cloud. I love building real-world automations to make infrastructure reliable, secure, and self-healing. Through this blog, I share practical learnings from enterprise projects and my home-lab experiments on Cloudflare, Self-Hosting and everything in between. Always tinkering, always improving.

