Splitting CSV files in PowerShell with Split-Csv

In the course of my work, I am often times dealing with large CSV files that need to be broken up into smaller files, for whatever reason.  If the CSV file has a header, I can't simply use something that breaks up the file by number of lines because I need to retain the header … Continue reading Splitting CSV files in PowerShell with Split-Csv

Moving an AD User from One Group to Another via PowerShell

This week I had a request that seemed rather simple.  Given a CSV file containing the User Principal Name of the user, determine if the user is a member of a specific Active Directory group, remove it, and add it as a member to another specific Active Directory group.  I am not sure of what … Continue reading Moving an AD User from One Group to Another via PowerShell