MilesLogan
asked on
add error checking to powershell script
Hi EE
Can someone help me add error checking to this so it shows on the screen on successful changes and failures ?
Can someone help me add error checking to this so it shows on the screen on successful changes and failures ?
Import-module ActiveDirectory
Import-CSV "C:\X\UpdateMail.csv" | % {
Set-ADUser $_.User -Mail $_.Mail
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER