Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set a null value 1

Status
Not open for further replies.

unclerico

IS-IT--Management
Jun 8, 2005
2,738
0
0
US
Hey all, I have a HTA application setup to allow non IT people to enable or disable dial-in access for certain users. The script I have can successfully disable dial-in access (msNPAllowDialIn = FALSE), but when I test re-enabling to the default of controlling dial-in access via policy (msNPAllowDialIn = null) it will not set it properly. Just so I'm not going nuts I should be able to code:

curUser.Put "msNPAllowDialin", vbnull
curUser.SetInfo

and it should in effect set the dial-in property to the default, right??

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
I think it's for objects but may work with vars.

Code:
msNPAllowDialIn = nothing

-Geates
 
>curUser.Put "msNPAllowDialin", vbnull
[tt]'ADS_PROPERTY_CLEAR=1
'The 3rd argument is soft, vbnull or 0 etc would be taken gracefully
curUser.Put[red]Ex[/red] 1, "msNPAllowDialin", vbnull[/tt]
 
Thanks tsuji, it works like a charm!!

I hate all Uppercase... I don't want my groups to seem angry at me all the time! =)
- ColdFlame (vbscript forum)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top