I was able to use the dialinprivilege property mentioned in the MS KB article to toggle the settings. Here are the code:
$User = GetObject("WinNT://"+$Domain+"/"+$Userid)
$User.DialinPrivilege = -1
$RC = $User.SetInfo