Lees hier de laatste IGA-ontwikkelingen

PowerShell: assign send-as permissions to Exchange 2003 mailbox

On Exchange 2007 this is easy, but what if you have PowerShell without the Exchange 2007 provider? See below to assign send-as to a mailbox on regular PowerShell for Exchange 2003. The GUID as used in the script is an ExtendedRight which is listed on the Microsoft site (http://www.microsoft.com/technet/scriptcenter/topics/security/allrights.mspx).

Lees meer

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

VBScript to read exchange permissions (msexchmailboxsecuritydescriptor)

Since the permissions involving sending and reading mail are stored in different places, you need to read both the AD object permissions as well as the Exchange security descriptor.

Lees meer