Mandatory parameters in PowerShell

  One of the most frequently question I get when teaching parameters in PowerShell is regarding mandatory parameters. To answer that, let us back up a little bit and talk about parameters in general. We know that in a script (or function) we can use $args to capture any argument that is passed and is…

0

Creating non-user-specific printer mappings

Note that this is a re-post from my article at: http://blogs.msdn.com/b/pfedev/archive/2009/11/25/creating-non-user-specific-printer-mappings.aspx   I was delivering a PowerShell class, and the question of how to create a remote printer mapping came up. Turns out that enterprise administrators may have the need to help users with their printer connections, setting them up for them. As I started…

0