Cool Tool.bat

I made a batch script at work today to automate a few things as I was working on 15 PCs at once…

Thoguht I would share it here in case someone who happens to be in the same situation stumbles on it!

It has a number of features for example changing the PC name, changing the key for MS Office and then activating it, activating the local admin account and setting a password, auto logging a user in, and REBOOT =D

Its probably buggy, but worked 13 times out of 15 for me! so deal with it..

oh, install office doesnt work but meh. 😀

here she be:

 

@echo OFF
TITLE Cool Tool
color f0
:MENU
CLS
ECHO ============= COOLTOOL =============
ECHO ————————————-
ECHO 0. Install Office
ECHO 1. Activate Local Admin (Blank Password)
ECHO 2. Rename PC
ECHO 3. Auto Login “Administrator”
ECHO 4. Install office key and activate. (WARNING: INSTALL OFFICE x64 FIRST + CONNECT TO NET)
ECHO 5. Reboot PC To apply changes.
ECHO ==========PRESS ‘Q’ TO QUIT==========
ECHO.

SET INPUT=
SET /P INPUT=Please select a number:

IF /I ‘%INPUT%’==’0’ GOTO OFFICE
IF /I ‘%INPUT%’==’1’ GOTO ADMIN
IF /I ‘%INPUT%’==’2’ GOTO RENAME
IF /I ‘%INPUT%’==’3’ GOTO LOGIN
IF /I ‘%INPUT%’==’4’ GOTO OFFICEKEY
IF /I ‘%INPUT%’==’5’ GOTO REBOOT
IF /I ‘%INPUT%’==’Q’ GOTO Quit

:OFFICE
office\setup.exe

GOTO MENU

:LOGIN
echo 1st run.
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d User /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d Password /f
echo 2nd run..
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d User /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d Password /f
echo 3rd run…
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d User /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d Password /f
echo 4th run….
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v AutoAdminLogon /t REG_SZ /d 1 /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultUserName /t REG_SZ /d User /f
REG ADD “HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon” /v DefaultPassword /t REG_SZ /d Password /f
done. =D
GOTO MENU

:RENAME
SET INPUT=
SET /P INPUT=Input Computer Number:

echo PCs new name will be: %INPUT%
pause
wmic path win32_computersystem where “Name=’%computername%'” CALL rename name=’%INPUT%’

GOTO MENU

:ADMIN
net user administrator /active:yes
net user administrator “Password”

GOTO MENU

:OFFICEKEY
cd “C:\Program Files\Microsoft Office\Office14\”
delay 3
cscript ospp.vbs /inpkey:xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
echo I SET THE KEY FOR YA. Now to activate…
cscript ospp.vbs /act
echo DONE!

 

By the way,

The auto login runs a bunch of times because sometimes it works but doesnt…work..?
😀

The eero Wireless thing

eero10

Just a little post to voice my opinion about the eero wireless device that surfaced overnight,

From what I have read about this device, it is a mesh networking device that is simple to use down to the point of needing almost no user interaction.

In fact, I believe they are claiming that after the initial setup there is no specific need for human interaction at all, it should take care of itself, including rebooting if the DSL/net drops out (straya m8) |

My first impression is that it looks like a poor mans Cisco Meraki,
which is what I use at home (one station, MR18)

I do feel they are going to have a hard time becoming popular though as they are asking a lot of money for them!
For the discounted pre-order price of the eero ($125 each or three for $299) you can already get a high end wireless router, and probably even a decent wireless repeater on top of that considering you would probably want more than one to take full advantage of the purpose of the device!

 

I would also like to note im a bit sceptical about its claim to be able to fix WiFi problems automatically, what if the DSL drops out?

It cant reset the DSL modem ?
The eero itself is just a router..

 

but oh well, I haven’t actually used the device.

I may send them an email about getting a unit to loan out and review properly.