I want to write a Powershell script that is conditional on group and or Active Directory OU. Has any one written a function that will return group member ship then run a command, say map a network drive based on a current users's group memebership.
If you have every run Kix scripts. I want a replacement for InGroup function. I would like to perform the same operation for OUs if possible.