Lees hier de laatste IGA-ontwikkelingen

VBScript to determine logical disk with most free space using wmi

strComputer = wscript.arguments(0) tempFreespace = 0 Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\" _ & strComputer & "rootcimv2")

Lees meer

VBScript to automatically insert strings into word document, print and close it

Make sure you have the file "document.doc" and it contains the bookmarks as you can see (Text1-7). The VBScript will open the document, insert all strings into the bookmarks, print and close it without saving so you can re-use it.

Lees meer

LDAP search filter to check if user is member of a group

The member attribute (or memberOf) is a multi-valued DN list. Fortunately, in LDAP the = operator automatically does a "contains" instead of "equals" when dealing with multi-values. So to check if an object is member of a certain group no matter if he/she is member of lots of groups, you can use:

Lees meer