Categories
System Administration Uncategorized

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.

Categories
Tips and Tricks Uncategorized

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.

Categories
System Administration Uncategorized

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: config profile lock down file and preferences script sent via management software package a .db file and deploy it via management software

Categories
Raspberry Pi Uncategorized

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.

Categories
System Administration Uncategorized

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

Categories
Raspberry Pi Uncategorized

Instant Raspberry Pi Ad-blocker

This Will Install The New Version Of The Pi-hole Only! Run this command only on a clean install of the Raspberry Pi running Raspbian.  Your results may vary if you try to run this on an existing system, so it is not recommended.

Categories
System Administration

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

Categories
System Administration Uncategorized

The Visual pmset Cheat Sheet

Categories
Tips and Tricks Uncategorized

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

Categories
System Administration Uncategorized

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).