LISTING 1: VBScript via WSH Syntax
strDomain = "Lab"
Set oDomain = GetObject("WinNT://" & strDomain, Domain)
iMinPWLength = oDomain.Get("MinPasswordLength") ' Method invocation via dot operator.
oDomain.MinPasswordLength = 3 ' Property access via dot operator.
oDomain.SetInfo ' Another method call.
Set oDomain = Nothing