Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"You have not Logged on to this ..." dll file 1

Status
Not open for further replies.

Mark2K

MIS
Oct 11, 2000
50
GB
Hi,

I work in a school where we have edited a few dll files to disable some functins. For example, we have edited the Mprserv.dll to disable the Domain text box on the logon dialog and in Msnet32.dll we have modified it to stop students confirming their password.

Our last idea is to disable the "You have not Logged on to this computer, would you like to save your profile.." box to stop the students saving their profiles. I know that this resides in a dll file as I have found it in the past and can't remember which dll file it was in.

Does anyone have any ideas?
Mark
 
Hello Mark2K

You dont have to mess with dll files to achive this.
Just Click on Start -> Settings -> Control Panel -> Password -> User Profiles -> All users use the same desktop settings (I hope I remember it right... Probably not).
That should do it.

Now I have a question for you, when you wrote "Msnet32.dll we have modified it to stop students confirming their password" did you mean that you can disable the local Windows Logon dialog box? If so then How?

Daniel Svensson
 
Hi Daniel,

Thanks for that. However, we tried that but it stopped the policies (config.pol) working. And as such, that isn’t an option. :-(

How I done it.

First I would like to apologies, as it is the mprserv.dll that I changed to do this. The MSNET32.dll I changed to remove the Cancel button on the “Please wait while your logon script executes” dialog box.

When our users log on to the Domain, they enter their username and password. After they have logged on and the logon script has ran, (and before the desktop is shown) they have another box asking them to confirm their password (another thing to do with the profiles I guess). If they do this, it stores their password on the local machine (*.pwl). It is this box that I have modified. I did this using Borland’s Resource Workshop 4.52. You will find that there are lots of different Dialog boxes you can modify and not just within the mprserv.dll.

Hope this helps. If not let me know and I will try and help you more.

Mark
 
Mark,

I'm not sure which one it is either, put run a utility thart shows all processes and dll modules that are in memory. This freeware utility will help:

Sinfo (System Information) is designed to help advanced users and programmers by providing information on several behind-the-scenes aspects of Windows. Here's a link:
Has many other uses (closes the advert.dll hidden window, can move positions of windows, can re-name window titles, closes banner advertisments, and has an excelent Screen Capture built in.

You'll have a shorter list to go through.
Good job, I did that myself using Resource Hacker.

reghakr
 
Hi, Mark

You are obviously using policies, so why not use the option in poledit to disable password caching, that should stop the second box asking them to confirm there password from appearing. I have done this successfully at several schools. We also have the profile option turned off which basically disables the group policies from working. The confirm password option will still appear as it is to do with the password caching. I hope this helps
 
Regarding the final question in the post from Svensson,
see Microsoft KB article Q152104 on how to prevent a
Windows ME/98/95 logon prompt.
 
Hello.
Thank you Mark2K and PAndersen but I dont think your solutions will help me.
I have a lot of Windows 98 SE computers with a lot of different users and every time they log on to a new computer they are prompted for a Windows (local) password. This becomes a problem when they write their NetWare password again instead of just clicking Cancel or erasing the asterix and clicking OK.
The next time they change their NetWare password they still have the old password on the computers where they have logged on localy.
I dont use any Microsoft profiles or policies.

Daniel Svensson
 
Hi Svensson,

This is the same problem we had, and hence I modified the local password box to display an OK button which was actually the Cancel button and hid the actual OK button.

The other way to do it would be to enter in the Autoexec.bat file “Deltree /Y C:\Windows\*.pwl” this will delete all the locally stored passwords and will remove the problem when they change their Netware password.

If you want a copy of the modified dll file so you can see what it is like let me know and I can email it to you.

Mark
 
Hello Mark2K!

Yes I would appreciate if you gave me that file.
In your solution, the local Windows password dialog box always appears right?
If the users deletes the password asterix before they click the OK button they wont be prompted for the local password again, even if they change their NetWare password. Thats what I want my users to remember...

My e-mail address is daniel.svensson@utb.halmstad.se

Thanks.
Daniel Svensson
 
Thank you Mark2K!
It was nearly perfect the only thing that could be improved would be if the password asterix was deleted automatic and the cancel button was removed instead of the OK button. That way the users would only have to click the OK button the first time they log on to a new computer.
Do you know if this is against the license aggrement?

I would like to learn how to modifie Windows dialog boxes myself, any tips?

Thank you.

Daniel Svensson
 
Hi Svensson,

That would be a good thing, the only problem is, I can only edit the look of the box, I can't edit the code and so I think it wouldn't be possible to do that.

Is it agenst the license, I would have thought so.

To do it your self, just get a copy of a resource editor, I use Borland's Resource Workshop 4.5 and open the dll file.

You could disable the password caching by editing the registry. The key is: HKEY_LOCAL_MACHINE\Network\Logon
In there create a DWORD value "NoDomainPwdCaching" with the vaule of 1. Reboot the computer and this will disable password caching.

Hope this helps
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top