[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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 … Continue reading →
This is a simple script to list AD sites and subnets using PowerShell. $sites = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Sites foreach ($site in $sites) { write-host “(site) $site” foreach ($subnet in $site.Subnets) { write-host “….(subnet) $subnet” foreach ($server in $site.Servers) { write-host “……..(server) $server” … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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 … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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 … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] This post provides a simple example of how we can use ADSI to modify an AD group. In this example, we modify the description attribute … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] This post provides a simple example of how we can use ADSI to create an AD group. $adGroupType = @{ Global = 0x00000002 DomainLocal = … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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 … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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 … Continue reading →
[catlist name=”PowerShell ADSI and Active Directory” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] 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. … Continue reading →
[catlist name=”PowerShell Forms” conditional_title=”Other Posts in this Series:” numberposts=5 pagination=yes customfield_orderby=”series_post_order” order=”asc”] This post provides an example of creating a pretty PowerShell combobox using a custom DrawMode. Instead of using the default fonts and colours, we can override this setting … Continue reading →