Null session in Windows 2000

Normally in Windows 2000, anonymous users can list the names of accounts and network shares...

to change this behavior run the application regedit.exe and select the following key:

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\lanmanserver\parameters]

edit or create (if doesn't exist) the following value:

"RestrictNullSessionAccess"=dword:1