#165017 - 2006-07-24 04:37 PM
Re: WRITEVALUE brings up "script error : unknown command !."
|
DrillSergeant
MM club member
   
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
LOL, Mart
btw, I was thinking of removing the quotes around the zero, and I found this:
Quote:
Windows 2000 or XP Open [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] and create a new string value, or modify the existing value, called "DontDisplayLastUserName" and set it to "1" to enable or "0" to disable the restriction.
Windows NT Open [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] and create a new string value, or modify the existing value, called "DontDisplayLastUserName" and set it to "1" to enable or "0" to disable the restriction.
and if you'd like to use it in your logon-script you'd probably want to set it in the HKEY_CURRENT_USER because the users can't write in the HKEY_LOCAL_MACHINE.
Quote:
User Key: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] Value Name: DontDisplayLastUserName Data Type: REG_DWORD (DWORD Value) Value Data: (1 = remove username)
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|