Bash Script: Remove An SSID From The Preferred Network List

I use this script to remove the Guest network from staff computers.  It can be adapted for any network.  Just modify the variable to be the SSID you want to remove. Continue reading “Bash Script: Remove An SSID From The Preferred Network List”

Find Your Windows Product Key Without Any Software

One thing I have always found frustrating about buying a PC with windows re-installed (among many things) is you don’t always have easy access to the product code.  Sometimes it is posted on a sticker, but often it is not.  How To Geek shows how to get the product code using a simple script. Continue reading “Find Your Windows Product Key Without Any Software”

OS X: Enforce Wallpaper On Mavericks and Yosemite With launchd And Python

If you always want a Mac to have the same wallpaper no matter what, you need a way to enforce it and there are many ways to do this:

Continue reading “OS X: Enforce Wallpaper On Mavericks and Yosemite With launchd And Python”

Blocking Ads From 120,000+ Domains

Thanks to some members of the community, I was able to improve the speed and number of domains that the gravity-adv.sh script.  This script is for use with the Raspberry Pi ad-blocking Pi-hole, which can now be installed automatically.  It now can block over 120,000 ad domains.  Thanks everyone who helped. Continue reading “Blocking Ads From 120,000+ Domains”

Prevent Access To Certain Wi-Fi Network SSIDs Via Bash Script

In enterprise environments, there is often an open guest network and a secured enterprise network.  Often, you do not want users to connect to the guest network because it is throttled down and does not grant access to organizational network resources.  Below is a script that can be run as a Launch Daemon, which will turn the wireless off and display a dialog if a user connects to the wrong network. Continue reading “Prevent Access To Certain Wi-Fi Network SSIDs Via Bash Script”

Change The Serial Number On HP Printers Using Printer Job Language And netcat (or ftp)

Serial numbers sometimes default to XXXXXXXXXX after having a component replaced or the firmware being updated.  The Web interface does not offer a way to set the serial number, but this can be accomplished with some Terminal commands.

For the sake of this walkthrough, it is recommend to use vim to edit the file.  However, since it is difficult to learn (but not really), I will do a very detailed step-by-step so there are no issues.  If you are already familiar with vim, then you will probably cruise through this. Continue reading “Change The Serial Number On HP Printers Using Printer Job Language And netcat (or ftp)”

Customize The OS X Yosemite Login Screen

Give the OS X Yosemite login window a personalized look using your own image.  This is a simple trick to do.  Just save your desired image as:

/Library/Caches/com.apple.desktop.admin.png

Then, just log out to apply the change.  You should immediately see your new image.  If you don’t make sure you put it in the correct Library folder and that the permissions are correct. Continue reading “Customize The OS X Yosemite Login Screen”

Manage Windows Printers At The Command Line

Install An IP Printer

This will create a new printer port at the IP address 10.10.10.10 and name it IP_10.10.10.10.

cscript %windir%\system32\printing_admin_scripts\en-us\prnport.vbs -a -r IP_10.10.10.10 -h 10.10.10.10 -o raw -n 9100

Then this will add the printer to that port with the correct driver (found on a network share). Continue reading “Manage Windows Printers At The Command Line”