How to Automatically Elevate a Batch file to Run it as Administrator?

To elevate batch files manually, you would right-click on it and choose Run as Administrator. Here is a way to automatically elevate a batch file that requires elevated privileges to run correctly. This is equivalent to choosing “Run as Administrator” by right-clicking a batch file. In either case, the UAC prompt would still show up.

How to Run Programs as TrustedInstaller to Write to Certain Registry Keys or Files

Even when running programs elevated (Administrator), certain registry keys and files are not writable. This may be because the files are owned by TrustedInstaller, and no write access granted for Administrators. In that case, running the program as TrustedInstaller can help fix a locked registry key or clear a file that can’t be accessed anyway.

Backup Windows 10/11 Services Startup Type Configuration

services

After doing a fresh install of Windows, disabling unused Windows Services is one of the time-consuming tasks you perform. Once configured, you can back up the service startup state using a Script so that it can be used for subsequent installations or if you need to automate the task on several computers. Services state backups … Read more

How to Create System Restore Points using Script or Command-Line

System Restore is a valuable feature in Windows that helps you easily recover the system in the event of any misconfiguration. If you’ve been using the System Restore feature regularly, then you need to know how to create System Restore Points with a single click using the command-line. You can also do this by scripting … Read more