Batch Script Add Windows Users using Netsh

This content is 3 years old.The following batch script will add a group of users to Windows, set no password, and require a password change at first logon. @echo off setlocal enabledelayedexpansion set user1=John Q. Smith set user2=Jane Doe set user3=Joe Montana set user4=Alicia Silverstone set users=(user1 user2 user3 user4 user5 user6) for %%u in … Read moreBatch Script Add Windows Users using Netsh

Batch Script to get Disk Usage of Folders Recursively

This content is 6 years old.Rob van der Woude has a nice batch script to get disk usage of folders & subfolders in Windows since there isn’t a built-in function.  This could be similar to Linux du command.   @ECHO OFF :: Use local variables IF "%OS%"=="Windows_NT" SETLOCAL :: Check command line arguments and Windows … Read moreBatch Script to get Disk Usage of Folders Recursively

Batch File to Cleanup Windows 2000, XP and Server 2003 User Profiles, Temp Folders, Internet Explorer Temporary Files

This content is 6 years old.I’ve had this around for the longest time and figured I better put it here before I lose it forever to the dying Microsoft releases. Note: This also cleans up VMware temporary files which build up over time. See this post for more information:  VMware Tray Dump Files Chewing up … Read moreBatch File to Cleanup Windows 2000, XP and Server 2003 User Profiles, Temp Folders, Internet Explorer Temporary Files

Batch Rename Files and/or Folders in Windows Command Line

This content is 6 years old.Batch rename files using Windows command line. for /d /r %x in (“*”) do pushd “%x” && ren *.eml *.msg && popd Recently restored about 18k emails in various folders from a PST file which exports as an .MSG formatted file. I then reconverted those .MSG to .EML format. Now, … Read moreBatch Rename Files and/or Folders in Windows Command Line