Page 1 of 1 1
Topic Options
#36129 - 2003-02-06 04:28 PM remove win9x pwl files
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Hi,

I want to add a script that takes care of the problem that all the pwl files are saved. I have read a document about this (long time ago).
Can u help me??

Thanks,

Michel

Top
#36130 - 2003-02-06 04:32 PM Re: remove win9x pwl files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
What part do you 'want to take care of'? Remove existing .PWL files or preventing the creation og .PWL files?

Have you tried searching the KiXtart BBS for this?
_________________________
There are two types of vessels, submarines and targets.

Top
#36131 - 2003-02-06 04:41 PM Re: remove win9x pwl files
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
the remove of the existing pwl files and preventing win9x from creating the files. I have done a search but haven't found it yet.
Top
#36132 - 2003-02-06 06:15 PM Re: remove win9x pwl files
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
If you wish to disable local password caching (i.e. prevent creation of pwl files) use this registry key in Win9x. If you set this during logon it will become effective on the next logon.

code:
Registry Settings 
System Key: [HKEY_LOCAL_MACHINE\Network\Logon]
Value Name: NoDomainPwdCaching
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = disabled, 1 = enabled)

For deletion, just delete all *.pwl files during logon.

After doing this, they should not come back any more.
_________________________
Jack

Top
#36133 - 2003-02-07 01:22 PM Re: remove win9x pwl files
vanloon Offline
Fresh Scripter

Registered: 2002-05-27
Posts: 34
Jack,

This works fine for the network passwords. But now I get a popup screen for the windows password, en I cannot get it to stay away.

Do u have a hint for me???

Thanks,

Michel

Top
#36134 - 2003-02-07 02:33 PM Re: remove win9x pwl files
whaler Offline
Fresh Scripter

Registered: 2002-11-27
Posts: 20
Loc: Mississauga, Canada
Here is an old one that we used long time ago. You can see the code is a little out of date, esp. the "loop" command. [Smile] But this should give you the basics. When we ran this, the only thing the user ever got asked for was their "domain" logon ID.

code:
;		checking registry - if already disabled, 
; skips to next section

? "Checking registry, if password caching already disabled skipping to the next section"

$Index = 0
:LOOP1
$Cache = ENUMVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Network", $Index)
IF @ERROR = 0
IF $Cache = DisablePwdCaching
? "Password Caching already disabled, skipping to next section"
GOTO ENDCACHE
ENDIF
$Index = $Index + 1
GOTO LOOP1
ENDIF
; password caching being disabled

? "Password Caching being disabled"

EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\NETWORK")
IF @ERROR = 0
GOTO NOPWD
ENDIF

EXISTKEY("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES")
If @ERROR = 0
GOTO NETWORK
ENDIF
ADDKEY("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES")

:NETWORK
ADDKEY("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\NETWORK")

:NOPWD
WRITEVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\NETWORK", "DisablePwdCaching","1","REG_SZ")
IF @ERROR = 0
? "Password Caching DISABLED"
ENDIF

:ENDCACHE

Hope this helps the way you wanted...

Top
#36135 - 2003-02-07 02:36 PM Re: remove win9x pwl files
Jack Lothian Offline
MM club member
*****

Registered: 1999-10-22
Posts: 1169
Loc: Ottawa,Ontario, Canada
Are you logging on to an NT network or is this a peer-to-peer network or standalone client or what?

I am not sure of your circumstances but here is a variety of articles you could look at:

http://www.cybertechhelp.com/html/tutorials/tutorial.php/id/21
http://support.microsoft.com/?kbid=152104
http://searchwin2000.techtarget.com/tip/1,289483,sid1_gci827127,00.html
http://www.faqs.org/faqs/windows/win95/faq/part07/preamble.html
http://www.winbookcorp.com/_technote/WBTA17000470.htm
http://www.windows-help.net/windows95/tune-14.shtml
http://www.ecn.purdue.edu/AAEsite/netset95.html

You might also enable this registry key:

code:
Key : HKLM \Network \Logon
Entry : MustBeValidated
System : 95, 95+IE4.x, 98, ME
Type : REG_DWORD
Range : 0 or 1
Default : 0



[ 07. February 2003, 15:11: Message edited by: Jack Lothian ]
_________________________
Jack

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 840 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org