|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Script to enable user access from Dial in tab in ADUCIs there a script to enable the allow access option in Dial in tab??? Thx in
advance. -- myinzu "Myinzu" <thuz***@lfgloan.com> wrote in message From the Microsoft script center:news:5138AA67-A26B-474B-9D7D-5470FE8BAA62@microsoft.com... > Is there a script to enable the allow access option in Dial in tab??? Thx > in > advance. > -- myinzu http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/modify/usmdvb24.mspx To enable dialin you need only assign True to the msNPAllowDialin attribute of the user. So: ============= Set objUser = GetObject _ ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") objUser.Put "msNPAllowDialin", TRUE objUser.SetInfo Richard, thx a lot. That would help me a lot. I'm just so new to scripts in
AD. In what type of scripting that i should use this?? ADSI.. -- Show quoteHide quoteMyinzu "Richard Mueller [MVP]" wrote: > > "Myinzu" <thuz***@lfgloan.com> wrote in message > news:5138AA67-A26B-474B-9D7D-5470FE8BAA62@microsoft.com... > > Is there a script to enable the allow access option in Dial in tab??? Thx > > in > > advance. > > -- myinzu > > From the Microsoft script center: > > http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/modify/usmdvb24.mspx > > To enable dialin you need only assign True to the msNPAllowDialin attribute > of the user. So: > ============= > Set objUser = GetObject _ > ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") > > objUser.Put "msNPAllowDialin", TRUE > objUser.SetInfo > > -- > Richard Mueller > Microsoft MVP Scripting and ADSI > Hilltop Lab - http://www.rlmueller.net > -- > > > The scripts are VBScript programs. You can use either the Wscript or Cscript
hosts to run them. If the script is saved in a file called Dialin.vbs, it can be run at a command prompt with the command: cscript Dialin.vbs If you are not in the directory where the file Dialin.vbs is saved, specify the path. In most cases you can double click the *.vbs file to run it with the default host (either wscript or cscript). Show quoteHide quote "Myinzu" <thuz***@lfgloan.com> wrote in message news:F569EE13-8927-4E57-B1DB-4D18DD6009F4@microsoft.com... > Richard, thx a lot. That would help me a lot. I'm just so new to scripts > in > AD. > In what type of scripting that i should use this?? ADSI.. > > > -- > Myinzu > > "Richard Mueller [MVP]" wrote: > >> >> "Myinzu" <thuz***@lfgloan.com> wrote in message >> news:5138AA67-A26B-474B-9D7D-5470FE8BAA62@microsoft.com... >> > Is there a script to enable the allow access option in Dial in tab??? >> > Thx >> > in >> > advance. >> > -- myinzu >> >> From the Microsoft script center: >> >> http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/modify/usmdvb24.mspx >> >> To enable dialin you need only assign True to the msNPAllowDialin >> attribute >> of the user. So: >> ============= >> Set objUser = GetObject _ >> ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com") >> >> objUser.Put "msNPAllowDialin", TRUE >> objUser.SetInfo >> >> -- >> Richard Mueller >> Microsoft MVP Scripting and ADSI >> Hilltop Lab - http://www.rlmueller.net >> -- >> >> >>
how to modify dial-in property for a user account
Creating user's CN from Last and First name Moving files from one directory to subdirectories Using Windows Script that Zip Files using Winzip Trying to copy files\folders to UserProfile\Application Data List all users from a different domain How to script Share Permissions Delete all files of certain type in folder and all subfolders Script software install if certain hardware exists How to find all mp3 files and delete them |
|||||||||||||||||||||||