Archive: WriteRegDWORD Doesn't Work???

WriteRegDWORD Doesn't Work???
I am totally lost... I am trying to add a user account into the SpecialAccounts user list in the registry to prevent the user account from showing up at the login screen. I've even went as far to create a script that does nothing but that (see below) to try to troubleshoot but nothing. As far as I can tell, my code is correct, but it doesn't work. It doesn't add the SpecialAccounts key, the UserList key or the DWORD to the registry. Can someone please help me figure out what I'm doing wrong??

PS: I've tried using 0x00000000, 0 and "0" but none of them has worked.

PPS: Information on the the SpecialAccounts registry key.

NSIS Script:

; Script generated by the HM NIS Edit Script Wizard.

; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "!Tech Installer"
!define PRODUCT_VERSION "1.1"
!define PRODUCT_PUBLISHER "Swall's Business Consultants"

OutFile "D:\Temp\TechSetup.exe"
RequestExecutionLevel admin
InstallDir "C:\"
Icon "D:\Temp\SwallsIconDownArrow.ico"

Section "MainSection" SEC01
WriteRegDWORD HKLM "Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList" "ITSupport" 0x00000000

Section -Post
SetAutoClose true

Is this a 64 bit system?

Try running Process Monitor...

Yes, this is a 64-bit system.

I'm curious though... wouldn't that only matter if I was trying to input a QWORD? Is there something special I need to do to add a DWORD to a 64 bit OS?


Thanks sooo much! I didn't even know of the existence of that command before. I think my eyes were already crossed by the time I got to that part of the scripting reference :)