Get print server information via PowerShell

This weekend I found myself in a situation where I needed to find print server information, such as the default spool directory and restart job timeout value.
You can use the System.Printing assembly for that.
Here’s a function that provides you some basic print server information: