Thanks
The attribute to set is: MsNPAllowDialin
There are other attributes also.
MSNPCallingStationID
MSNPSavedCallingStationID
MSRadiusCallbackNumber
MSRadiusFramedRoute
MSRadiusFramedIPAddress
MSRASSavedCallbackNumber
MSRASSavedFramedIPAddress
MSRASSavedFrameRoute
I'd suggest that you modify an existing user account to set the parametes you want for the users.
Once this is done, Use the ADSI edit snapin to view the attributes that are affected and then set the script to modify them.
Let me know how it works.
Here's a code snippet for you.
'Create the user account.
Set OUobj = GetObject(ldappath)
'Create the user account
Set UserData = OuObj.Create("user", CommonName)
UserData.Put "sAMAccountName", LoginName
UserData.Put "userPrincipalName", LoginName & "@" & DomainSuffix
UserData.put "givenName", givenName
UserData.put "sn", sn
UserData.put "name", FullName
UserData.put "displayName", FullName
UserData.put "mail", LoginName & "@" & DomainSuffix
'Save the changes
UserData.SetInfo
'Set additional parameters.
'Enable the account
UserData.accountdisabled = false
'Enable dialin access
UserData.MsNPAllowDialin = True
UserData.Setinfo
Thanks a million
"Big Brother" <knows...@hotmail.com> wrote in message
news:ipn0ft0cihmg6v4oq...@4ax.com...