While researching for a logon script setup for mapping network printers using Windows PowerShell, I thought of using the Windows native tool printui.dll for the actual printer mappings.
However, I was
nt quite sure how to check for a users group membership in Active Directory. This sure can be accomplished with a tool like Quest
s PowerShell Commands for Active Directory. However, installing this on every domain computer wasnt an option.
Then I found Andy Grogan
s PowerShell function for determining AD group membership.
You may also want to check out “PrintUI.DLL User’s Guide and Reference“.
Tested with Windows PowerShell v 1.0/2.0 and Windows XP/Vista/7.
As an alternative, you may also want to check out this blog post on mapping printers using Group Policy.