Script & Terminal > Batch/CMD

These batch scripts are designed to run in computers with Windows 7/8/10 operating systems with language and regional settings set to English-US.

How to map a WiFi via CMD?

To connect a Windows computer to a WiFi network using the command-prompt, you can use the netsh command. Open the Command Prompt and type the following command to view the available wireless networks: Locate the network you want to connect to, and note its SSID, authentication and encryption methods. You ...

How to set 7Zip as the default application to open certain compressed files type via script?

If you use 7-Zip in your organization and need to override the default applications set in Windows 10 or 11. This script will do it for you. As an example, I deleted some file associations in 7-Zip File Manager. Its represented by the blanks in the screen shot bellow. The ...

FreeFileSync automatically during Windows 10 startup

In a previous post I recommended FreeFileSync as a synchronization tool that automatically creates and manages backup copies of files. To ensure that all your important files stored on your computer are backed up every time your computer turns on, its possible to create .ffs_batch within FreeFileSync. The files can ...

Manage volume activation of Office 2016 through Command Line

Volume activation allows companies to automate and manage the activation of Microsoft products across an organization. This post will focus on the key commands for Office 2016, but if you would like to know more about volume licensing for other Microsoft products visit this page. If you you would like ...

Confirm if two folders are identical with Batch

Through the usage of hashing algorithms its possible to verify the integrity of files, which is very handy to compare if a single file was changed, or confirm if two folders synchronized correctly. I choose SHA-256 hashing available in 7-Zip through command line, to calculate the hash and compare the ...

Wake-On-LAN from a list in a text file

In a previous post, I shared a script that turned on by default 3 computers in the same subnet, but more could be added if the script was modified. To ease turning on more computers, I created a version of the script that will attempt to turn on all the ...

Wake-On-LAN multiple computers at once!

If you need to turn on or awake several computers at once, or perhaps, just need to do it remotely, whether they are near or far away, the Wakeup-On-LAN feature is a fantastic method. Wakeup-On-LAN turns on a computer when it receives network special message, called a "Magic Packet" ...

How to add drivers to a Windows 10 image with DISM?

In this post, I will try to give a quick overview and guide on how to add drivers quickly to a Windows 10 installation from USB using DISM. DISM is an acronym that stands for "Deployment Image Servicing and Management", and it's a built-in Windows command-line tool that helps with ...

Convert images in CMD with ImageMagick

ImageMagick is an application with command-line utilities for manipulating size and resolution, correcting orientation, shearing and transforming images, correcting colors, and, even converting images over a wide range of formats. The application accepts commands thought the CLI or by using scripts (such as Windows batch files). For the examples I ...

Open Command Line in the current directory with a click!

Command Line can be used in all of Windows operating system directories, not only to move files between them, but also execute actions such as copying and deleting files. Launching Command Line in the correct directory as Administrator is a multi-step process. One way, to ease the task, involves adding ...

Need to uninstall the latest Windows Hot Fix?

More or less every second Tuesday of every Julian calendar month, Microsoft publishes the latest Windows updates and/or hot fixes. Sometimes they might cause unintended issues or reduce the performance of the business environment. If an issue is traced back to an update or troubleshooting demands to uninstall it, the ...

Copy all Chrome favourites with a Batch script

This script copies all favorites between computers who have Chrome, but it replaces what is there already. So its mostly useful for computer migrations or adding favorites to new users ...
Loading...