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 to open up. This is the case for the school I work at. My solution was to create a LaunchDaemon that would automatically detect and un-pause paused printers. Continue reading “Bash Script: Fix Paused Printers In OS X”
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! Continue reading “Twin Cities Mac Admins Presentation: Under Cover Of Shell (Scripting)”
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 on at once and crash the server when they all try to contact it at once. It is also a little easier on the power grid. Continue reading “Python Script: pmset–Set Energy Saver Settings For Multiple Computers At Once”
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”
NCutil.py – Mavericks and Yosemite
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”
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!”
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)”
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”
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”