Home All Groups Group Topic Archive Search About

Script to enable user access from Dial in tab in ADUC



Author
8 Nov 2007 5:39 PM
Myinzu
Is there a script to enable the allow access option in Dial in tab???  Thx in
advance.
-- myinzu

Author
8 Nov 2007 7:15 PM
Richard Mueller [MVP]
"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
--
Author
9 Nov 2007 12:08 AM
Myinzu
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

Show quote
"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
> --
>
>
>
Author
9 Nov 2007 1:03 AM
Richard Mueller [MVP]
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
--

Show 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
>> --
>>
>>
>>

AddThis Social Bookmark Button