Hi Harrison,
Thanks for your posting here.
To set "Control access through Remote-Access-Policy" Remote Access
Permission for a user object in the Active Directory, please refer to the
sample script below:
'VB Script Example
Const ADS_PROPERTY_CLEAR = 1
set oUser = GetObject("LDAP://cn=myuser,cn=users,dc=test,dc=com")
oUser.PutEx ADS_PROPERTY_CLEAR, "msnpallowdialin", 0
oUser.SetInfo
Have a nice day!
Regards,
Bob Qin
Product Support Services
Microsoft Corporation
Get Secure! -
www.microsoft.com/security
====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.