This post provides a simple example of how we can use 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” #AD … Continue reading →
This post provides a simple example of how we can use 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 if … Continue reading →
This post will examine the difference between 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 name … Continue reading →
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 ADSI to migrate AD group … Continue reading →
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 →
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 →
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 →