Fill AD groups with content from txt files (users can manage AD groups without AD console)

Some time ago a customer asked me to create a small powershell script which can read users from text files and add them to special Active Directory groups once a day via scheduled task. The goal is letting some “admin” users change AD groups via text file by adding the SamAccountName to these text files, …

Checking exchange schema version with powershell

In my daily work I often see lots of different active directory and exchange environments, so I need a short method to determine witch exchange schema version is installed. Also it is important to check the schema version after schema upgrade or Cumulative Update. Yes there are some links you ‘ll find, but every website …

Find all the DC-Locator SRV entries from all ad-sites within a domain

Find all the DC-Locator SRV entries from all ad-sites within a domain It is always necessary to control the DC Locator SRV entries of the sites within a domain with several sites. With one or two sites that is not a big issue. But when it comes to 5-10 sites or more, it  looks quite …

Set expirationdate with powershell from csv bulk import

Set expirationdate with powershell from csv bulk import In many companies you can find useraccounts which are not used anymore in the company but which are still active. A good option is to provide the account with an expiration date. For this I developed a small script. First of all here is a command to …