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 […]