Find user accounts in nested groups

Does anyone else have this problem, or is it just me? Every now and then I get stuck: Somewhere there is a distribution group which in turn contains other distribution groups as members, as can be seen here in the example: In practice, there are usually distribution groups such as "Finance", and then "Finance - ... Read more

Quick & Dirty: Inventory HP C7000 Blade Enclosure via PowerShell

Here is another small script from the Quick & Dirty series. If you use HP Blade Enclosures and want to have a quick and easy overview of which blades are in which enclosures, the following script could be useful for you. The script queries all registered blade enclosures and lists the blades per enclosure ... Read more

PowerShell script for testing a mail domain

At the weekend there is a PowerShell script that can be used to test a domain for mail problems: The script returns the MX, PTR, SPF and DMARC entries of a domain and checks whether one of the IPs is on a blacklist. It also checks whether port 25 (SMTP) is accessible. The script is simply executed with ... Read more

Add users to groups remotely

Today there is another useful PowerShell script that can be used to add remote users to local groups on servers or computers. The script expects a CSV file with computer names and then processes the list. The CSV file must be formatted as follows: An example is included in the archive. The first 5 lines ... Read more

Script for testing MX records

If you also need to make frequent DNS queries to the MX records or SPF and reverse records, this little script may help: Test-MXSettings.ps1 The script has a few parameters, which can quickly check all Exchange accepted domains, or any domain, also a DNS server for the query can be specified. The following parameters ... Read more

Exchange 2010/2013: Query the calendar of a room mailbox with EWS

Hier mal wieder in kleines Script aus der Quick&Dirty Ecke. Abfragen des Kalenders eines Raumpostfachs per EWS und Powershell. Das Script holt alle Kalendereinträge ab dem aktuellen Zeitpunkt bis 365 Tage in die Zukunft, bzw. maximal 200 Einträge. Die Ergebnisse werden in der Variable $results gespeichert und können dann weiter verarbeitet werden. $MailboxName = "Besprechungsraum@frankysweb.de" … Read more

Exchange 2010/2013: Assigning permissions to folders and subfolders in a mailbox

Here is a small script that assigns permissions to folders and subfolders in a mailbox for users. Unfortunately, it is not yet possible to inherit permissions within a mailbox. Therefore here is a small workaround: $mailbox = read-host "mailbox" $folder = read-host "mailbox folder" $user = read-host ... Read more