rootSearch = New DirectorySearcher(root)
-
'.PropertiesToLoad.Add("accountexpires") '.PropertiesToLoad.Add("admincount") '.PropertiesToLoad.Add("adspath") '.PropertiesToLoad.Add("altrecipient") '.PropertiesToLoad.Add("authorigbl") '.PropertiesToLoad.Add("badpasswordtime") '.PropertiesToLoad.Add("badpwdcount") '.PropertiesToLoad.Add("c") '.PropertiesToLoad.Add("city") '.PropertiesToLoad.Add("cn") '.PropertiesToLoad.Add("co") '.PropertiesToLoad.Add("codepage") '.PropertiesToLoad.Add("company") '.PropertiesToLoad.Add("countrycode") '.PropertiesToLoad.Add("deleteditemflags") '.PropertiesToLoad.Add("deliverandredirect") '.PropertiesToLoad.Add("department") '.PropertiesToLoad.Add("description") '.PropertiesToLoad.Add("directreports") '.PropertiesToLoad.Add("displayname") '.PropertiesToLoad.Add("displaynameprintable") '.PropertiesToLoad.Add("distinguishedname") '.PropertiesToLoad.Add("dscorepropagationdata") '.PropertiesToLoad.Add("email") '.PropertiesToLoad.Add("extensionattribute10") '.PropertiesToLoad.Add("facsimiletelephonenumber") '.PropertiesToLoad.Add("firstname") '.PropertiesToLoad.Add("garbagecollperiod") '.PropertiesToLoad.Add("givenname") '.PropertiesToLoad.Add("home") '.PropertiesToLoad.Add("homedirectory") '.PropertiesToLoad.Add("homedrive") '.PropertiesToLoad.Add("homemdb") '.PropertiesToLoad.Add("homemta") '.PropertiesToLoad.Add("homephone") '.PropertiesToLoad.Add("info") '.PropertiesToLoad.Add("initials") '.PropertiesToLoad.Add("instancetype") '.PropertiesToLoad.Add("l") '.PropertiesToLoad.Add("lastlogoff") '.PropertiesToLoad.Add("lastlogon") '.PropertiesToLoad.Add("lastlogontimestamp") '.PropertiesToLoad.Add("lastname") '.PropertiesToLoad.Add("legacyexchangedn") '.PropertiesToLoad.Add("lockouttime") '.PropertiesToLoad.Add("logoncount") '.PropertiesToLoad.Add("logonhours") '.PropertiesToLoad.Add("mail") '.PropertiesToLoad.Add("mailnickname") '.PropertiesToLoad.Add("managedobjects") '.PropertiesToLoad.Add("manager") '.PropertiesToLoad.Add("mdbusedefaults") '.PropertiesToLoad.Add("memberof") '.PropertiesToLoad.Add("mobile") '.PropertiesToLoad.Add("msexchalobjectversion") '.PropertiesToLoad.Add("msexchhomeservername") '.PropertiesToLoad.Add("msexchmailboxguid") '.PropertiesToLoad.Add("msexchmailboxsecuritydescriptor") '.PropertiesToLoad.Add("msexchpoliciesincluded") '.PropertiesToLoad.Add("msexchuseraccountcontrol") '.PropertiesToLoad.Add("msmqdigests") '.PropertiesToLoad.Add("msmqsigncertificates") '.PropertiesToLoad.Add("msnpallowdialin") '.PropertiesToLoad.Add("name") '.PropertiesToLoa
-
'.PropertiesToLoad.Add("accountexpires") '.PropertiesToLoad.Add("admincount") '.PropertiesToLoad.Add("adspath") '.PropertiesToLoad.Add("altrecipient") '.PropertiesToLoad.Add("authorigbl") '.PropertiesToLoad.Add("badpasswordtime") '.PropertiesToLoad.Add("badpwdcount") '.PropertiesToLoad.Add("c") '.PropertiesToLoad.Add("city") '.PropertiesToLoad.Add("cn") '.PropertiesToLoad.Add("co") '.PropertiesToLoad.Add("codepage") '.PropertiesToLoad.Add("company") '.PropertiesToLoad.Add("countrycode") '.PropertiesToLoad.Add("deleteditemflags") '.PropertiesToLoad.Add("deliverandredirect") '.PropertiesToLoad.Add("department") '.PropertiesToLoad.Add("description") '.PropertiesToLoad.Add("directreports") '.PropertiesToLoad.Add("displayname") '.PropertiesToLoad.Add("displaynameprintable") '.PropertiesToLoad.Add("distinguishedname") '.PropertiesToLoad.Add("dscorepropagationdata") '.PropertiesToLoad.Add("email") '.PropertiesToLoad.Add("extensionattribute10") '.PropertiesToLoad.Add("facsimiletelephonenumber") '.PropertiesToLoad.Add("firstname") '.PropertiesToLoad.Add("garbagecollperiod") '.PropertiesToLoad.Add("givenname") '.PropertiesToLoad.Add("home") '.PropertiesToLoad.Add("homedirectory") '.PropertiesToLoad.Add("homedrive") '.PropertiesToLoad.Add("homemdb") '.PropertiesToLoad.Add("homemta") '.PropertiesToLoad.Add("homephone") '.PropertiesToLoad.Add("info") '.PropertiesToLoad.Add("initials") '.PropertiesToLoad.Add("instancetype") '.PropertiesToLoad.Add("l") '.PropertiesToLoad.Add("lastlogoff") '.PropertiesToLoad.Add("lastlogon") '.PropertiesToLoad.Add("lastlogontimestamp") '.PropertiesToLoad.Add("lastname") '.PropertiesToLoad.Add("legacyexchangedn") '.PropertiesToLoad.Add("lockouttime") '.PropertiesToLoad.Add("logoncount") '.PropertiesToLoad.Add("logonhours") '.PropertiesToLoad.Add("mail") '.PropertiesToLoad.Add("mailnickname") '.PropertiesToLoad.Add("managedobjects") '.PropertiesToLoad.Add("manager") '.PropertiesToLoad.Add("mdbusedefaults") '.PropertiesToLoad.Add("memberof") '.PropertiesToLoad.Add("mobile") '.PropertiesToLoad.Add("msexchalobjectversion") '.PropertiesToLoad.Add("msexchhomeservername") '.PropertiesToLoad.Add("msexchmailboxguid") '.PropertiesToLoad.Add("msexchmailboxsecuritydescriptor") '.PropertiesToLoad.Add("msexchpoliciesincluded") '.PropertiesToLoad.Add("msexchuseraccountcontrol") '.PropertiesToLoad.Add("msmqdigests") '.PropertiesToLoad.Add("msmqsigncertificates") '.PropertiesToLoad.Add("msnpallowdialin") '.PropertiesToLoad.Add("name") '.PropertiesToLoa
'.PropertiesToLoad.Add("Voted to remove message")
-
'.PropertiesToLoad.Add("accountexpires") '.PropertiesToLoad.Add("admincount") '.PropertiesToLoad.Add("adspath") '.PropertiesToLoad.Add("altrecipient") '.PropertiesToLoad.Add("authorigbl") '.PropertiesToLoad.Add("badpasswordtime") '.PropertiesToLoad.Add("badpwdcount") '.PropertiesToLoad.Add("c") '.PropertiesToLoad.Add("city") '.PropertiesToLoad.Add("cn") '.PropertiesToLoad.Add("co") '.PropertiesToLoad.Add("codepage") '.PropertiesToLoad.Add("company") '.PropertiesToLoad.Add("countrycode") '.PropertiesToLoad.Add("deleteditemflags") '.PropertiesToLoad.Add("deliverandredirect") '.PropertiesToLoad.Add("department") '.PropertiesToLoad.Add("description") '.PropertiesToLoad.Add("directreports") '.PropertiesToLoad.Add("displayname") '.PropertiesToLoad.Add("displaynameprintable") '.PropertiesToLoad.Add("distinguishedname") '.PropertiesToLoad.Add("dscorepropagationdata") '.PropertiesToLoad.Add("email") '.PropertiesToLoad.Add("extensionattribute10") '.PropertiesToLoad.Add("facsimiletelephonenumber") '.PropertiesToLoad.Add("firstname") '.PropertiesToLoad.Add("garbagecollperiod") '.PropertiesToLoad.Add("givenname") '.PropertiesToLoad.Add("home") '.PropertiesToLoad.Add("homedirectory") '.PropertiesToLoad.Add("homedrive") '.PropertiesToLoad.Add("homemdb") '.PropertiesToLoad.Add("homemta") '.PropertiesToLoad.Add("homephone") '.PropertiesToLoad.Add("info") '.PropertiesToLoad.Add("initials") '.PropertiesToLoad.Add("instancetype") '.PropertiesToLoad.Add("l") '.PropertiesToLoad.Add("lastlogoff") '.PropertiesToLoad.Add("lastlogon") '.PropertiesToLoad.Add("lastlogontimestamp") '.PropertiesToLoad.Add("lastname") '.PropertiesToLoad.Add("legacyexchangedn") '.PropertiesToLoad.Add("lockouttime") '.PropertiesToLoad.Add("logoncount") '.PropertiesToLoad.Add("logonhours") '.PropertiesToLoad.Add("mail") '.PropertiesToLoad.Add("mailnickname") '.PropertiesToLoad.Add("managedobjects") '.PropertiesToLoad.Add("manager") '.PropertiesToLoad.Add("mdbusedefaults") '.PropertiesToLoad.Add("memberof") '.PropertiesToLoad.Add("mobile") '.PropertiesToLoad.Add("msexchalobjectversion") '.PropertiesToLoad.Add("msexchhomeservername") '.PropertiesToLoad.Add("msexchmailboxguid") '.PropertiesToLoad.Add("msexchmailboxsecuritydescriptor") '.PropertiesToLoad.Add("msexchpoliciesincluded") '.PropertiesToLoad.Add("msexchuseraccountcontrol") '.PropertiesToLoad.Add("msmqdigests") '.PropertiesToLoad.Add("msmqsigncertificates") '.PropertiesToLoad.Add("msnpallowdialin") '.PropertiesToLoad.Add("name") '.PropertiesToLoa
-
'.PropertiesToLoad.Add("accountexpires") '.PropertiesToLoad.Add("admincount") '.PropertiesToLoad.Add("adspath") '.PropertiesToLoad.Add("altrecipient") '.PropertiesToLoad.Add("authorigbl") '.PropertiesToLoad.Add("badpasswordtime") '.PropertiesToLoad.Add("badpwdcount") '.PropertiesToLoad.Add("c") '.PropertiesToLoad.Add("city") '.PropertiesToLoad.Add("cn") '.PropertiesToLoad.Add("co") '.PropertiesToLoad.Add("codepage") '.PropertiesToLoad.Add("company") '.PropertiesToLoad.Add("countrycode") '.PropertiesToLoad.Add("deleteditemflags") '.PropertiesToLoad.Add("deliverandredirect") '.PropertiesToLoad.Add("department") '.PropertiesToLoad.Add("description") '.PropertiesToLoad.Add("directreports") '.PropertiesToLoad.Add("displayname") '.PropertiesToLoad.Add("displaynameprintable") '.PropertiesToLoad.Add("distinguishedname") '.PropertiesToLoad.Add("dscorepropagationdata") '.PropertiesToLoad.Add("email") '.PropertiesToLoad.Add("extensionattribute10") '.PropertiesToLoad.Add("facsimiletelephonenumber") '.PropertiesToLoad.Add("firstname") '.PropertiesToLoad.Add("garbagecollperiod") '.PropertiesToLoad.Add("givenname") '.PropertiesToLoad.Add("home") '.PropertiesToLoad.Add("homedirectory") '.PropertiesToLoad.Add("homedrive") '.PropertiesToLoad.Add("homemdb") '.PropertiesToLoad.Add("homemta") '.PropertiesToLoad.Add("homephone") '.PropertiesToLoad.Add("info") '.PropertiesToLoad.Add("initials") '.PropertiesToLoad.Add("instancetype") '.PropertiesToLoad.Add("l") '.PropertiesToLoad.Add("lastlogoff") '.PropertiesToLoad.Add("lastlogon") '.PropertiesToLoad.Add("lastlogontimestamp") '.PropertiesToLoad.Add("lastname") '.PropertiesToLoad.Add("legacyexchangedn") '.PropertiesToLoad.Add("lockouttime") '.PropertiesToLoad.Add("logoncount") '.PropertiesToLoad.Add("logonhours") '.PropertiesToLoad.Add("mail") '.PropertiesToLoad.Add("mailnickname") '.PropertiesToLoad.Add("managedobjects") '.PropertiesToLoad.Add("manager") '.PropertiesToLoad.Add("mdbusedefaults") '.PropertiesToLoad.Add("memberof") '.PropertiesToLoad.Add("mobile") '.PropertiesToLoad.Add("msexchalobjectversion") '.PropertiesToLoad.Add("msexchhomeservername") '.PropertiesToLoad.Add("msexchmailboxguid") '.PropertiesToLoad.Add("msexchmailboxsecuritydescriptor") '.PropertiesToLoad.Add("msexchpoliciesincluded") '.PropertiesToLoad.Add("msexchuseraccountcontrol") '.PropertiesToLoad.Add("msmqdigests") '.PropertiesToLoad.Add("msmqsigncertificates") '.PropertiesToLoad.Add("msnpallowdialin") '.PropertiesToLoad.Add("name") '.PropertiesToLoa
Your problem is you forgot to comment out sams account name.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.