Script to enable user access from Dial in tab in ADUC

Discussion in 'Scripting' started by Myinzu, Nov 8, 2007.

  1. Myinzu

    Myinzu Guest

    Is there a script to enable the allow access option in Dial in tab??? Thx in
    advance.
    -- myinzu
     
    Myinzu, Nov 8, 2007
    #1
    1. Advertisements

  2. 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 [MVP], Nov 8, 2007
    #2
    1. Advertisements

  3. Myinzu

    Myinzu Guest

    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, Nov 9, 2007
    #3
  4. 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).

    --
    Richard Mueller
    Microsoft MVP Scripting and ADSI
    Hilltop Lab - http://www.rlmueller.net
    --

     
    Richard Mueller [MVP], Nov 9, 2007
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.