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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetDWordValue issues

Status
Not open for further replies.

minoad

Programmer
Mar 28, 2001
138
US
I am attempting to use a script to enable rdp on xp pro. I have written two reg files that do the trick yet i need to convert these to a vbs file. This is the code:

regVal = 0
Set objReg = GetObject("winmgmts:\\" & strCompName & "\root\default:StdRegProv")
intRc = objReg.SetDWORDValue(HKLM, strKeyPath, "fDenyTSConnections", regVal)

If i turn on rdp and look in the registry, the dword value is ox00000000 . However when i use my script to set this it simply shows as 0.
For this reason my script is not working. Any ideas on how to convert this to hex. if i try and input 0x00000000 i get a type mismatch error.

Thanks
 
OK. I have lost my mind. I created the problem with a typo. Sorry for the post.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top