$Search = New-Object DirectoryServices.DirectorySearcher([ADSI]“”) $Search.filter = “(&(objectClass=user)(sAMAccountName=$User))” $Search.Findall()
|Powershell code used to work||7||43|
|How can I sort the data shown in Sheet 1 and copy it to Sheet 2?||8||26|
|Need a script to get all the disabled accounts in an OU||4||33|
|Migration of AD user accounts from Server 2003 to 2012R2||5||17|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
18 Experts available now in Live!