#36129 - 2003-02-06 04:28 PM
remove win9x pwl files
|
vanloon
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
|
|
|
|
#36131 - 2003-02-06 04:41 PM
Re: remove win9x pwl files
|
vanloon
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
|
|
|
|
#36133 - 2003-02-07 01:22 PM
Re: remove win9x pwl files
|
vanloon
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
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. 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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1110 anonymous users online.
|
|
|