Skip to content

{ Tag Archives } PowerShell

Modifying DNS records with WMI

Using WMI it is possible to modify any existing record hosted on a Microsoft DNS Server. The method used varies slightly depending on which record type we want to change.

Also tagged , , ,

NTFS, PowerShell, Get-ACL & listing explicit rights

A short script to list explicit rights assigned to a directory structure. It uses the recursive option of ls (an Alias for Get-ChildItem) to drop down through the directory structure.

Also tagged , , ,

Exchange 2007 & Manager Can Update Membership List

I recently went through another migration. One of the post migration tasks was to fix permission to update lists. The “ManagedBy” attribute had been copied across, but not the security descriptor from the group. This show PowerShell script can be run from the Exchange Management Shell to grab the value from ManagedBy and write it [...]

Also tagged , ,

Listing all domains in a forest

These snippets of code shows how to search Active Directory using LDAP to return all domains in the current Forest (based on current authentication).

Also tagged , , , , ,

Microsoft DNS & stale records

This post explains how to identify and report on stale records in a dynamically updated Microsoft DNS zone.

Also tagged , , , , , , ,

Microsoft DNS & static records

Windows 2008 has an improved user interface for DNS. The main console includes details of a records time stamp and whether or not the record is Static. Life isn’t quite so easy with Windows 2003. However, as each static record has a time stamp set to 0 they can be found with a little work.

Also tagged , , , , , , ,