Prøv at ta' et kik på denne adresse:
http://users.andara.com/~dblondeau/downloads.htmHer kan du downloade et godt eksempel.
Bemærk flg. fra ReadMe.txt:
Note: This sample is loosely translated from sample code found in the Microsft Platform SDK - February 2001 edition.
To run this sample, you must have WMI (version 1.5 and isntalled on the targetcomputer. ADSHLP.PAS are helper functions for the few AD calls used
in the program. YOu also have to import the following type libraries:
1) Active DS Type Library (Version 1.0)
2) Microsoft WMI Scripting v1.1 Library (Version 1.1)
Altså skal du for at arbejde med WMI importere ovenstående 2 libraries.