I’m looking to silently continue on this portion, not the entire script so therefore I do not want to set $ErrorActionPreference = "SilentlyContinue"
Is there a reason why this is still spitting out errors when I purposely enter in an invalid username.
submitted by /u/gabyred884
[link] [comments]
The post Get-ADUser $logonname -ErrorAction SilentlyContinue appeared first on How to Code .NET.