I am trying to create a user using an ADSI object if it does not already exist. Here are the weird results I get
#Check a user that I know exists [ADSI]::Exists("WinNT://localhost/micah,user")
The last line makes no sense to me. Why throw an exception when I indicate that I am specifically looking for a user, but when I DONT indicate that I want the user to work fine? It seems completely unintuitive to me. What am I missing?
Micah source share