Categories
System Administration Uncategorized

Bash Script: Fix Paused Printers In OS X

You need an administrator password to un-pause a printer in OS X.  It is possible to add a user to the lpadmin group. sudo dseditgroup -n /Local/Default -o edit -a username lpadmin This will give them rights to the printer, but if your users aren’t admins of their machines, this might not be something you want […]

Categories
System Administration Uncategorized

Twin Cities Mac Admins Presentation: Under Cover Of Shell (Scripting)

On April 23 at JAMF headquarters in downtown Minneapolis, I will be presenting at the April MSP Mac Admins Meetup.  My presentation will cover real-life examples of how scripting can be used.  You don’t need to know a single line of code to enjoy this presentation, but it might pique your interest to learn some!

Categories
System Administration Uncategorized

Python Script: pmset–Set Energy Saver Settings For Multiple Computers At Once

If you have 1,000 computers and don’t want them all to power on at the same time, but rather come on at different times, you can use a simple Python script to do so.  I use this in an educational setting where each lab needs a different power setting so that they don’t all power […]

Categories
System Administration Uncategorized

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

Categories
System Administration Uncategorized

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

Categories
System Administration Uncategorized

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.

Categories
System Administration Uncategorized

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

Categories
System Administration Uncategorized

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.

Categories
System Administration Uncategorized

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

Categories
System Administration Uncategorized

Java

Oracle, please stop the madness.