Bash Script: Set Favorite Servers In “Connect To…” Menu

The Connect To… menu (Command+K) lets you quickly connect to a server using different protocols.  If you are deploying these settings to a bunch of computers, it can be done quickly using a simple bash script.  Just replace or add whatever servers you want into the servers variable (one per line in single quotes). Continue reading “Bash Script: Set Favorite Servers In “Connect To…” Menu”

OS X Yosemite Notification Center Command Line Utility For Scripting And More

Download

NCutil.py – Mavericks and Yosemite

Use Case

OS X administrators can appreciate a good command line utility.  In enterprise environments, it is useful to be able to send out settings to multiple computers at once.  This is part of the reason I started NCutil.py.  I wanted to be able to change the Notification Center alert duration via a script.  I also wanted to be able to remove items from Notification Center that I didn’t want. Continue reading “OS X Yosemite Notification Center Command Line Utility For Scripting And More”

De Java Vu: Java 8 Update 40–again!

Java has been messing with MN’s testing software TestNav 7.5 by Pearson, which I have written about in detail.  Oracle’s latest update makes things more challenging.  There is also other states having issues with Pearson. Continue reading “De Java Vu: Java 8 Update 40–again!”

Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)

I love when Windows command line tools are actually useful and friendly.  wmic  is a rare one that fits the bill.  I use the following command to uninstall programs silently (using Java as an example).

Find The Program Name

Run this command first to get the list of programs you can uninstall:

wmic product get name

Continue reading “Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)”

Send Commands To All Installed Printers

Using a simple for  loop, you can send a PJL command to all of the printers installed on your machine.  For instance, if you wanted to change the display message on all your networked HP printers, you could loop through all the IP addresses and send it a command. Continue reading “Send Commands To All Installed Printers”

Altiris: Fix Error 1618: Another Installation Is Already In Progress

I’m still stuck using Altiris 6.9DS.  It works, but it’s also finicky.  I often run into error 1618, which means another install is in progress (download the full error list here).  This is not always the case, but sometimes, other jobs can make it seem this way.  I run a simple command to clear out this error and then I can finish running the failing job. Continue reading “Altiris: Fix Error 1618: Another Installation Is Already In Progress”

Bash Script: Reset Root Volume Name To Macintosh HD

In true Borg fashion, I like to keep the devices I manage consistent.  This includes the volume name: Macintosh HD.  I have a simple shell script that will restore the name if it happens to be changed to something else. Continue reading “Bash Script: Reset Root Volume Name To Macintosh HD”

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”

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”