Alkane Solutions
Alkane Solutions Fixed-Price Apps | Trusted IT Partner
Alkane Solutions | G-Cloud Supplier Alkane Solutions | Microsoft Partner

Main menu

Skip to primary content
Skip to secondary content
  • Application Packaging Services
    • Why Application Packaging?
    • MSIX Application Packaging Services
    • Application Packaging Service for the NHS
    • Application Packaging for MECM
    • Intune Application Packaging Services
    • Evergreen Application Packaging Services
  • About
    • Team
    • Case StudiesCase studies of the work we have done for our clients.
  • Contact Us
  • Log In
  • Register
  • Submit a Guest Post!
  • Recommended Reading
  • Fixed-Price Quote

Home - PowerShell ADSI and Active Directory

Use ADSI and the ADSISearcher with LDAP when querying Active Directory.


PowerShell Active Directory People Picker

Posted on March 21st, 2024

This post contains a PowerShell Active Directory people picker, which is useful when we develop PowerShell forms that require searching for Active Directory users via their display name or username. It’s a very similar concept to our PowerShell Active Directory … Continue reading →

Tagged ADSI, ADSISearcher, PeoplePicker |

PowerShell Active Directory Group Picker

Posted on March 19th, 2024

This post provides an example of a PowerShell Active Directory Group Picker.  You can also find a similar example of our PowerShell Active Directory People Picker. When using one of my PowerShell GUI tools, we needed to select a valid … Continue reading →

Tagged Active Directory, ADSI, ADSISearcher |

List All User and Computer LDAP Attributes using PowerShell and ADSI

Posted on September 1st, 2023

There comes a time when we want to read or write an Active Directory attribute, yet we don’t know the name of the attribute we’re looking for!  This handy script will list all user and computer LDAP attributes using PowerShell … Continue reading →

Tagged ADSI, ADSISearcher |

LDAP Does Not Return All Active Directory Group Members

Posted on June 1st, 2021

LDAP does not return all Active Directory group members if there are more than 1500 members in the group.  It will return the first 1500, but none thereafter. LDAP Does Not Return All Active Directory Group Members Luckily when a … Continue reading →

Tagged ADSISearcher, LDAP 1500 Limit |

Search Active Directory using PowerShell ADSISearcher Filters

Posted on March 3rd, 2021

This post discusses how we can search Active Directory using PowerShell ADSISearcher filters.  Using search filters can improve search performance significantly. Consider the following where we create a default ADSISearcher to begin searching Active Directory (AD): $objSearcher=[adsisearcher]”” If we used … Continue reading →

Tagged ADSISearcher, LDAP Filters |

Use PowerShell ADSI to Search Groups in Active Directory

Posted on March 2nd, 2021

This post provides a simple example of how we can use PowerShell ADSI to search groups in Active Directory.  You may wish to further optimise this by using LDAP filters. #only groups $objSearcher=[adsisearcher]'(&(objectCategory=group))’ $objSearcher.PageSize = 200 #specify properties to include … Continue reading →

Tagged ADSISearcher |

Use PowerShell ADSI to Search Computers in Active Directory

Posted on February 27th, 2021

This post provides a simple example of how we can use PowerShell ADSI to search computers in Active Directory.  You may wish to further optimise this by using LDAP filters. #only computers $objSearcher=[adsisearcher]'(&(objectCategory=computer))’ $objSearcher.PageSize = 200 #specify properties to include … Continue reading →

|

Use PowerShell ADSI to Search Users in Active Directory

Posted on February 27th, 2021

This post provides a simple example of how we can use PowerShell ADSI to search users in Active Directory.  You may wish to further optimise this by using LDAP filters. $searcher=[adsisearcher]'(&(objectCategory=person)(objectClass=user))’ $searcher.PageSize = 200 $colProplist = “samaccountname” foreach ($i in … Continue reading →

Tagged ADSI, ADSISearcher |

Use PowerShell and ADSI to Add, Update, Clear and Append Active Directory Attributes

Posted on February 27th, 2021

This post provides an example of how we can use PowerShell and ADSI to add, update, clear and append Active Directory attributes. Use Put() to Set an Active Directory Attribute using PowerShell In its simplest form, we can use the … Continue reading →

Tagged ADSI |

Use ADSI and FromFileTime to Convert Datetime Attributes in Active Directory

Posted on February 26th, 2021

This post explains how we can use ADSI and FromFileTime to convert datetime attributes in Active Directory to a human-readable date and time. You’ll notice when you return attributes such as lastlogon, lastlogontimestamp and lastpwdset that the format of the … Continue reading →

Tagged ADSI, datetime |

« Previous Entries
Next Page »

Recommended Reading

Over

10,000

Applications
Packaged

Over

18

Successful
Migrations

Over

50

Happy
Clients

Application Packaging Services in Manchester, UK.
12b Kennerleys Lane, Wilmslow, England, SK9 5EQ

Application Packaging Services in London, UK.
152-160 City Road, London, EC1V 2NX.

© Alkane Solutions Ltd 2025
Privacy Policy | Modern Slavery | LinkedIn | Blog Posts

APPLICATION PACKAGING QUOTE!

✔ Fixed Price.
✔ Experienced IT Professionals.
✔ Highly Competitive Prices.
✔ 12 Month Warranty.






    This will close in 0 seconds