We help IT Professionals succeed at work.

Batch file adds reg key, user logs off as ADMIN?!

391 Views
Last Modified: 2013-12-03
I am using a batch file as a login script, and part of this script add's two registry keys to the users system.  It works fine but when the user logs off it has the administrator in the user name field.  The user was NOT logged in as an admin and only needs to type in there account info but this is annoying, anyone ever hear or this before?  150+PC's all WinXPSP2
Comment
Watch Question

I've never heard of it.  What are the two values?
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Ok I think I need to explain better.. AFTER the user logs off and a new user goes to login the login name cached in the field is administrator.  No noe was logged in as administrator...

Author

Commented:
These commands cause the issue:

regedt32 /s Z:\login\reg\LegalNoticeCaption.reg
regedt32 /s Z:\login\reg\LegalNoticeText.reg
regedt32 /s Z:\login\reg\vdd.reg
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I have tried by UNC and it still happens.  I also forgot to mention that it also changes the "logon to" field to the local PC, 99% of the end users would NEVER be able to figure that out..

Author

Commented:
The Z drive is mapped with the net use command right before those three steps.
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
No - the script dosnt even have the word administrator in it.. All drives are mapped as the user...   And yes I have tried regedit.
Top Expert 2007
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.