Before we use PowerShell's DNS, let us investigate the master cmdlet
Get-WmiObject. In particular, we need to understand the syntax of
parameters such as -Class and -ComputerName. Incidentally, you can
use the alias gwmi instead of of Get-WmiObject.
# Help with PowerShell WMI object: Get-help Get-WmiObject
Note 1: If you prefer to see examples append
-full, thus: help Get-WmiObject -full
Windows Server appears to have the necessary files, dnsschema.mof and dnsprov.dll, it's just they are not registered by default.
Guy Recommends: Solarwinds' Free Bulk Import Tool
Import users from a spreadsheet. Just provide a list of the
users with their fields in the
top row, and save as .csv file. Then launch this FREE utility and match
your fields with AD's
attributes, click to import the users. Optionally, you can
provide the name of the OU where the new accounts will be born.
There are also two bonus tools in this free download, and all 3 have been approved by Microsoft:
The agony would be if you went ahead and copied the files in dnsprov.zip. The problem is that these are Windows 2000 files and may not have a good effect on a Windows 2003 Server.
The ecstasy came when studying the readme file. This file showed me that the files I needed were, dnsschema.mof and dnsprov.dll. When I looked in the...\wbem folder I saw that the Windows
Server 2003 version of the files were already there, thus all that I needed to do was to register them.
How To install the dns provider (You have to do this manually)
Check that dnsschema.mof and dnsprov.dll are in %windir%\system32\wbem.
This is how you register the class information from the Run box:
Click on Start, in the Run box type: "mofcomp dnsschema.mof"
This is how to register the .dll. At the run box copy and paste: "regsvr32 dnsprov.dll"
Please email me if you have a script examples. Also please report any factual mistakes, grammatical errors or broken links, I will be happy to correct the fault.
Windows Management Instrumentation (WMI) is one of the hidden
treasures of Microsoft operating systems.
Fortunately, Solarwinds
have created the
Free WMI Monitor so that you can actually see and understand these gems of
performance information. Take the guess work out of which
WMI counters to use for applications like Microsoft Active Directory,
SQL or Exchange Server.