petermolit
asked on
VBscript to check computer account in AD for trusted for delegation?
How can we use vbscript to check for an computer account in AD for the trusted for delegation setting?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try this script
Const ADS_UF_TRUSTED_FOR_DELEGAT
Set objUser = GetObject _
("LDAP://cn=xxx,ou=xxx,dc=
intUAC = objUser.Get("userAccountCo
objUser.Put "userAccountControl", intUAC OR ADS_UF_TRUSTED_FOR_DELEGAT
objUser.SetInfo