Category: Batch File Scripting
Batch file set year into the future
Simple batch to set a variable 2 years into the future, works out Year, plus 2 and then adds to […]
Powershell issue with output characters changing to ?
On PowerShell command pipe to export CSV add Encoding Unicode if characters change to ? Credit: Idera execute xp_cmdshell ‘powershell […]
Maintain regtrans-ms and blf files generated by Georgia UTS sessions
A little script I schedule for servers using Georgia UTS. Below I use Robocopy to move files older than 3 […]
Georgia Telnet or SSH generate a list of users for GS_L_User.txt
Georgia Telnet can restrict the number of users that connect to Telnet or SSH. I am lazy so I tend […]
Creating a shortcut to a non existent location on Windows
Credit: ServerFault Credit: Craig Tolley I came across the need to create a shortcut to a non existent file share […]
Batch script to help with launching files for correct version of Windows
We encountered an issue during a migration to Windows 10 where I had missed a program which had hard coded […]
Generate a text file with subfolders in a location on explorer
I needed to generate a list of folders and their subfolders, I used a simple command for dir command and […]
Display advanced properties of scheduled tasks in command line
The following command requests a detailed display of the tasks on the local computer. It uses the /v parameter to […]
A simple batch file which compresses every folder into a 7z Archive
For backing up old files I tend to sort into lots of different folders, anything I am finished with I […]
Rebuild a V1 DBCapture Database Queue
We have an issue where on a rare occasion a scan from V1 DBScanner to DBCapture can corrupt the queue […]