Free, ready-to-run scripts and tools from HTDNET. Read exactly what each one does, download it, and run it on your own machine. Provided for your convenience and used at your own risk.
Please read before downloading. These scripts are provided by HTDNET LLC “as is” and without warranty of any kind. Some are intended as useful fixes and some are just for fun. You download and run them entirely at your own risk. HTDNET LLC shall be held harmless and is not responsible or liable for any damage, data loss, downtime, system changes, or other consequences arising from the download, use, or misuse of any script or software provided here. Downloading or running a script does not create any service, support, or contractual relationship between you and HTDNET LLC.
Some scripts are intended to be run as an administrator and will request elevation; if elevation is unavailable, the script will tell you how to run it as an administrator. If a download is blocked by a Windows security warning, here is how to unblock the file. Scripts marked with a gold star in the upper-right corner of their tile should be run from an elevated Command Prompt or PowerShell window. Some scripts are provided as a ZIP file and will extract to C:\Temp\ScriptName for use. Every script describes exactly what it will do before it runs, and each one requires you to type Y to confirm you understand this disclaimer before it will make any change.
If you run into a problem, please use our contact form to let us know. We cannot guarantee a fix in a future version, but we appreciate the feedback and will take it into consideration.
Run as Administrator
PowerShell (.ps1)
Install Google Drive for Desktop
Silently installs Google Drive for Desktop for every user on the PC using the Windows Package Manager (winget). Skips the install if it is already present.
Run as Administrator
Batch (.bat)
Disable OneDrive
Stops, uninstalls, and disables Microsoft OneDrive machine-wide, and removes it from startup and the File Explorer sidebar. Your files stay safe online at onedrive.com. See More info for an important note before running it.
Run as Administrator
PowerShell (.ps1)
Easy App Installer
Pick from a checklist of common apps (Chrome, Zoom, Teams, 7-Zip, and more) and install them all in one go with winget.
No scripts match your search.
Install Google Drive for Desktop
PowerShell script · InstallGoogleDrive.ps1 · run as administrator
What it does, in order
Checks whether it is running as administrator and self-elevates (UAC prompt) if it is not.
Shows the full disclaimer and a plain-English summary of every action, then waits for you to type Y to accept before changing anything.
Creates a log folder at %ProgramData%\HTDNET\Logs and writes a timestamped log file.
Confirms the Windows Package Manager (winget) is available, checking the App Installer location as a fallback.
Checks whether Google Drive for Desktop is already installed; if it is, the script stops and makes no changes.
If it is not installed, silently installs Google Drive for Desktop for all users (machine scope) from the official Google package via winget.
Reports success, failure, or that a reboot is required to finish.
Requires: Windows 10 or 11 with winget (App Installer) and administrator rights. Network: downloads the installer from Google through winget. Reboot: may be required.
Disable OneDrive
Batch script · DisableOneDrive.bat · run as administrator
Before you run this: Disabling OneDrive turns off syncing for any folders OneDrive is backing up, which can include your Desktop, Documents, and Pictures. Those files stay safe and available online at onedrive.com, but they will stop syncing to this PC, which means they may also appear to disappear from this computer. Do not worry: this script does NOT delete any files or folders. It simply removes OneDrive from your PC. Your files are still safe online at onedrive.com, where you can download them again, and then remove them from onedrive.com afterward for your privacy and peace of mind.
What it does, in order
Checks whether it is running as administrator and self-elevates (UAC prompt) if it is not.
Shows the full disclaimer and a plain-English summary of every action, then waits for you to type Y to accept before changing anything.
Stops the running OneDrive process.
Uninstalls the OneDrive client from both the 32-bit and 64-bit system locations.
Disables OneDrive file sync machine-wide through Group Policy registry keys.
Removes OneDrive from startup and from the File Explorer sidebar (machine and current-user keys).
Prevents OneDrive from being set up for new Windows user profiles.
Restarts Windows Explorer so the sidebar change takes effect.
Requires: administrator rights. Note: this edits the registry and removes OneDrive for everyone on the PC, and Explorer briefly restarts. To reverse it you would re-enable the policies and reinstall OneDrive.
If Windows blocks the file
SmartScreen / “this file came from another computer”
Windows adds a safety flag to anything downloaded from the internet. To clear it for one file:
Right-click the downloaded file and choose Properties.
On the General tab, find the Security line near the bottom that reads “This file came from another computer and might be blocked…”
Check the Unblock box, then click Apply and OK.
Run the file again.
This affects only that one file and changes no system settings. Windows 11 Smart App Control is stricter and may still block unsigned scripts by design; on those PCs, contact us.
Easy App Installer
PowerShell script · HTDNET-App-Installer.ps1 · run as administrator
What it does, in order
Checks whether it is running as administrator and self-elevates (UAC prompt) if it is not.
Shows the full disclaimer and a summary of every action, then waits for you to type Y to accept.
Confirms the Windows Package Manager (winget) is available.
Opens a window with a checklist of about 28 common apps grouped by category; you tick the ones you want (a numbered menu is used if the window is unavailable).
Optionally lets you paste extra winget package IDs to add.
Installs each selected app one at a time from its official package, skipping anything already installed.
Prints a color-coded summary of what installed, was skipped, or failed.
Requires: Windows 10 or 11 with winget (App Installer) and administrator rights. Note: each app is provided by its own publisher under its own license, downloaded from its official source via winget.
About winget and safety
This tool uses winget, Microsoft’s official Windows Package Manager. Packages in the community repository are scanned for malware automatically and reviewed by hand for their details and download links, and installs run alongside your existing antivirus.
Worth keeping in mind: winget downloads each installer directly from the publisher’s own website, so a publisher site that is ever compromised could affect a download. Less common or newly added packages can occasionally slip through scanning, and some installers may still offer bundled extras, so read each installer’s prompts. Stick to well-known, verified apps, and you can review any package’s publisher and manifest on Microsoft’s official repository at github.com/microsoft/winget-pkgs.
Cookie Consent
We use cookies to improve your experience on our site. By using our site, you consent to cookies.