Rename your computer using it’s service tag number

How to rename your computer using it’s service tag number Below is a short script that is handy in renaming your computer using the service tag or serial number of the machine. setlocal wmic bios get serialnumber | find /I /V “SerialNumber” > “%temp%\sn.txt” set /p comp_name=<“%temp%\sn.txt” wmic computersystem where name=”%computername%” rename name=%comp_name% del “%temp%\sn.txt” […]

ssh to OpenSSH running on Windows cron is not working

When trying to ssh to OpenSSH running on Windows cron is not working However if you run the script manually it executes correctly. After days of research and asking everyone I know I finally stumbled across a solution which fixes the problem. This whole conundrum occurred after my excitement of OpenSSH being released for Windows which […]

Compacting virtual disks on Generation 2 Linux Hyper-V 2012 R2 VM’s

Compacting virtual disks on Generation 2 Linux Hyper-V 2012 R2 VM’s I had a very interesting battle with  Gen 2 RHEL/CentOS/OracleLinux 7.x VM’s vhdx files not compacting. Below are a couple of things that made this more difficult than expected: Hypervisor: Hyper-V 2012 R2 Generation of VM: Generation 2 Boot loader: UEFI without secure boot […]

Backup Outlook 2016 settings script

Backup Outlook 2016 settings script Ever have Outlook 2016 perfectly configured and setup and then have something go wrong and either have to uninstall and reinstall and do everything all over again? Or say your hard drive died and you have to reinstall everything. So I’m thinking, theres got to be a way to backup […]

How to run a powershell script silently

How to run a powershell script silently Running a powershell script silently can be handy at times, especially if you schedule a task to run your scripts and want them to stay in the background instead of cluttering up your desktop environment. This has been useful with some of my monitoring scripts such as scraping modem […]