Adding powershell code to cycle through SQL Rows

This is a sample of powershell code I used today at add functionality from a text file to AD while crossing the data to an SQL Server.
This script does a few useful things that I like, Starting with refreshing the Debug Environment, then opening an SQL connection, Parsing a textfile that’s ‘|’ pipe delimited then comparing with row’s returned from an SQL Query.

Leave a comment

Your email address will not be published.