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 - Page 2

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


Use ADSI to List Nested Members of an AD Group (Updated)

Posted on February 26th, 2021

This post includes an example of how we can use ADSI to list nested members of an AD group.  In other words, if the group contains nested groups, it will iteratively search all the members of those nested groups too. … Continue reading →

Tagged ADSI |

Use PowerShell ADSI to Modify an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to modify an AD group.  In this example, we modify the description attribute of an AD group.  You can also use ADSI to clear the attributes for … Continue reading →

Tagged ADSI, modify AD group |

Use PowerShell ADSI to Create an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to create an AD group. $adGroupType = @{ Global = 0x00000002 DomainLocal = 0x00000004 Universal = 0x00000008 Security = 0x80000000 } #OU containing the AD group $adGroupOU=”OU=Application,OU=Groups,DC=alkanesolutions,DC=co,DC=uk” … Continue reading →

Tagged ADSI, create AD group |

Use PowerShell ADSI to Delete an AD Group

Posted on February 26th, 2021

This post provides a simple example of how we can use PowerShell ADSI to delete an AD group. #OU containing the AD group $adGroupOU=”OU=Application,OU=Groups,DC=alkanesolutions,DC=co,DC=uk” #AD group name $addADGroup = “CN=alkane_ad_group” #Full distinguished name of AD group $distinguishedName = “$addADGroup,$adGroupOU” #check … Continue reading →

Tagged ADSI, delete ad group |

The Difference Between PowerShell ADSI and ADSISearcher

Posted on February 25th, 2021

This post will examine the difference between PowerShell ADSI and ADSISearcher when using PowerShell to query Active Directory. ADSI and ADSISearcher are used to query Active Directory (AD) using Lightweight Directory Access Protocol (LDAP). What is LDAP? LDAP, as the … Continue reading →

Tagged ADSI, ADSISearcher |

Use PowerShell ADSI to Migrate AD Group Members

Posted on February 24th, 2021

UPDATE: I’ve updated this script because LDAP does not return all Active Directory group members if there are more than 1500 members in the group. This post provides a function which enables us to use PowerShell ADSI to migrate AD … Continue reading →

Tagged ADSI, migrate AD group |

Use ADSI to Find Logon Workstations in Active Directory

Posted on November 22nd, 2020

This post provides an example of how we can use ADSI to find logon workstations in Active Directory. I recently needed to search through all users in Active Directory and find logon workstations for those accounts that had them.  Logon … Continue reading →

Tagged ADSI, logon workstations |

Use ADSI to Check if a Computer is a Member of an AD Group

Posted on June 29th, 2017

This post provides an example of how we can use ADSI to check if a computer is a member of an AD Group using the [ADSISearcher] type accelerator: #remember that this is used as a regular expression (using -match), so … Continue reading →

Tagged ADSISearcher |

Use ADSI to Check if a User is a Member of an AD Group

Posted on May 13th, 2016

This post will provides an example of how we can use ADSI to check if a user is a member of an AD Group using the [ADSISearcher] type accelerator: #remember that this is used as a regular expression (using -match), … Continue reading →

Tagged ADSISearcher |

« Previous Page
Next Entries »

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