Mass importing users with Powershell
I've got a bit of a love-hate relationship with Powershell, but in this case it's turned into a bit of love. Importing users with Powershell is relatively easy to do when combined with ActiveRoles Management Shell for Active Directory, from Quest, which adds a handful of rather useful functions. PSCXsupposedly has something similar, but I'm obviously missing them completely.
import-csv C:\Path\To\Users.csv | foreach-object {
New-QADUser -FirstName $_.givenname
-LastName $_.surname
-SamAccountName $_.
VPS.net
Being the good little customer that I am, I tend to try and keep an eye on what upstream are doing. To that end I've been keeping an eye on VPS.net; UK2.net's newest business venture. I'm one of the lucky 80 or so that have gotten into the beta, and I've got to say, I'm really impressed with what the guys have put together so far.
Basically what they're providing is a fault tolerant, brilliantly easy to use virtual server infrastructure, based on Linux and Xen.
Uptime monitoring, using Munin, on Linux
Since I didn't come across an existing plugin after a quick google, and nor is there one in the official Munin repository that works on my Debian installations, I thought I'd post my implementation. It's exceptionallysimple, however it might save someone 10 seconds of research and coding in the future.
#!/usr/bin/perl
if ($ARGV[0] and $ARGV[0] eq "config")
{
print "graph_args –base 1000 -l 0\n";
print "graph_title Uptime in days\n";
print "graph_category system\n";
print "graph_vlabel uptime\n";
print "uptime.
Xen, Vyatta, Happy New Year
New Years eve the extra bits of hardware I needed for my Xenbox arrived (cheapo motherboard for VMX (Intel VT-x in my case) and power supply). As you can imagine with a house full of people, and corresponding day of pain afterwards, it wasn't the best time to be faffing with setting it all up. However, a few days later and it's all there and working like a dream.
I have to say that I'm pleasantly surprised and also taken back by a few things.
Reviewing ‘Running Xen: A Hands-On Guide to the Art of Virtualization’
Like all books I was hoping for something that delivered a little bit more than the man pages and online docs. Sadly this wasn't really the case.
Now I'm not saying that ‘Running Xen’ is a bad book. It's not. It's just missing that “something more”, that “je ne sais quoi” (I cannot believe I've just typed that and not removed it). If you're going to somewhere without man pages or online docs, then it's an invaluable reference.
Recent Adobe products don't like…
…redirected App data directories, and causes a crash (Visual C++ Runtime error). Unfortunately after updating one or two of our customers at work it appeared that a few user accounts still had a redirected app data directory, presumably because they weren't around when it was removed.
Thankfully fixing it is pretty easy (although potentially time consuming depending on your setup), if the redirection policy isn't active and is simply a case of changing the relevant entry under HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders, and then logging off and back on, and migrating the redirected files back into the local profile directory.
Windows DFS shares, junctions and permissions
Here's another one that caught me out today, but I've never come across before.
Under a DFS share, any linked shares are created as junctions. It appears that the permissions on these junctions do affect the permissions of the data within the linked share. Whilst this is logical, given how junction points work, what really threw me was that the wonderful, wonderful GUI didn't reflect this and the permissions on the junction point had been inadvertently changed.