Set AD Dial in Options for VPN via Powershell

We had a customer that used the “dial in” options in AD to determine whether or not the users were allowed to use a VPN.  They didn’t want to change this to use groups or NPS.

 

The following powershell allowed us to set this policy based on a group:

$users=get-adgroupmember “Remote_users”

foreach ($user in $users)

{

    set-aduser $user -replace @{msnpallowdialin=$TRUE}

}

Leave a Reply

Your email address will not be published. Required fields are marked *