options: -s single-line mode -m multi-line mode -i ignoreCase -G global -R from right to left -E extended-regexp pattern ERE -e ="PAT-regexp" -C ="strToOperate" -F fixed-strings fgrep -c ="num" print only a count of matching first lines per file -n
#################################################################
# This scr ipt will help to move bulk ad computer accounts into target OU
# Written 08/08/15 Casey, Dedeal
# Fell free to change use any part of this scr ipt
# http://www.smtp25.blogsp
# Import AD Module
import-module ActiveDirectory
# Import CSV
# Import the data from CSV file and assign it to variable
$Imported = Import-Csv -Path "C:\tool\move-user.csv"
$Imported | ForEach-Object {
# Retrieve DN of User.
$UserDN =