Scripting do not display last user name

B

bill

Is there a script that will set the local policy of Do Not
Display last user name on WIN2K boxes.

I attempted to use this

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
It sets the key but when you restart the machine the last
user name is still visable

thank you
 
B

bill

thank you

just a bit of clarification

I have 400 pcs I need to do this on

So can I run the gredit.msc and change the settings by a
script or do I need to touch each and everyone of these
boxes?

-----Original Message-----
Run gpedit.msc, then follow this path:

Local Computer Policy / Computer Configuration / Windows Settings /
Security Settings / Local Policies / Security Options /
Do not display last user name


bill said:
Is there a script that will set the local policy of Do Not
Display last user name on WIN2K boxes.

I attempted to use this

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
It sets the key but when you restart the machine the last
user name is still visable

thank you


.
 
R

Ricardo M. Urbano - W2K/NT4 MVP

bill said:
Is there a script that will set the local policy of Do Not
Display last user name on WIN2K boxes.

I attempted to use this

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
It sets the key but when you restart the machine the last
user name is still visable

thank you

bill, I checked a server on which I disabled the display last username,
and that reg value is still set to 0, so the policy setting must set
another reg value. I was certain it was that reg value too (from NT4),
but I guess it changed for W2K. I'll post back if I find it.

hth
 
P

Pegasus \(MVP\)

Here is what I would do in such a case:
- Start Win2000 on a test PC.
- Start gpedit.msc (not gredit.msc, as you write!),
and navigate to the correct spot.
- Run sysdiff.exe (Win2000 Resource Kit) to capture
the current machine state.
- Make the desired adjustment under gpedit.exe
- Run syddiff.exe again, to capture the change made by
gpedit.
- Examine the diff file to determine what part of the registry
underwent a change.
- Test that change, by modifying the registry manually.
- Write a small script to modify the registry, using regedit.exe.
- Apply the script to your machines remotely, by using
psexec.exe (free from www.sysinternals.com).

If this sounds like a lot of work, think of the many applications
the technique will have after you get on top of it! I used to
control over 1000 PCs from my desk with this approach.


bill said:
thank you

just a bit of clarification

I have 400 pcs I need to do this on

So can I run the gredit.msc and change the settings by a
script or do I need to touch each and everyone of these
boxes?

-----Original Message-----
Run gpedit.msc, then follow this path:

Local Computer Policy / Computer Configuration / Windows Settings /
Security Settings / Local Policies / Security Options /
Do not display last user name


bill said:
Is there a script that will set the local policy of Do Not
Display last user name on WIN2K boxes.

I attempted to use this

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
It sets the key but when you restart the machine the last
user name is still visable

thank you


.
 
B

bill

I found the key that neds to be changed for Win2K

it is

hkey_local_machine on local machine

software\ms\windows\currentversion\policies\system

Dontdisplaylastusername:Reg_DWord:

the value needs to be set to 0x1

When i try to run a script setting it in as 0x1 it
changes the key to

Reg_SZ 0x1
not
Reg_dword 0x1 it needs to be.

Any ideas how to get the change made?
When I try to put the
-----Original Message-----
bill said:
Is there a script that will set the local policy of Do Not
Display last user name on WIN2K boxes.

I attempted to use this

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"DontDisplayLastUserName"="1"
It sets the key but when you restart the machine the last
user name is still visable

thank you

bill, I checked a server on which I disabled the display last username,
and that reg value is still set to 0, so the policy setting must set
another reg value. I was certain it was that reg value too (from NT4),
but I guess it changed for W2K. I'll post back if I find it.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top