Jump to content

Shutting of WFP without hacking DLLs


fdv

Recommended Posts

I ran across this by accident.

If you want WFP shut off, just specify invalid paths in the registry, like so:

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","SFCDllCacheDir",,"z:"

HKLM,"SOFTWARE\Policies\Microsoft\Windows NT\Windows File Protection","SFCDllCacheDir",,"z:"

When these lines are inserted into one of the HIVE inf files before installing, this shuts WFP off.

No DLLs to hack.

There will be an error message in the Windows log saying WFP cannot find a valid path. I don't know if it has to be done before install or if it can also be done after. I actually like WFP so I'm not going to bother finding out. But if you want to disable WFP without hacking DLLs, there you go.

I apologize in advance if this is well known.

Link to comment
Share on other sites


I've gotten around it in the past by using NTFSDOS or a PE to unlock and replace the "backup" files. This way, when I boot back into Windows and delete a file, WFP replaces it with the "original" which happened to be the file I replaced. I suppose your way is easier.

Link to comment
Share on other sites

I ran across this by accident.

If you want WFP shut off, just specify invalid paths in the registry, like so:

HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","SFCDllCacheDir",,"z:"

HKLM,"SOFTWARE\Policies\Microsoft\Windows NT\Windows File Protection","SFCDllCacheDir",,"z:"

When these lines are inserted into one of the HIVE inf files before installing, this shuts WFP off.

No DLLs to hack.

There will be an error message in the Windows log saying WFP cannot find a valid path. I don't know if it has to be done before install or if it can also be done after. I actually like WFP so I'm not going to bother finding out. But if you want to disable WFP without hacking DLLs, there you go.

I apologize in advance if this is well known.

is it possible to made an batch file that can add this to the registry of the an unpacked iso file.

then how.

Link to comment
Share on other sites

"is it possible to made an batch file that can add this to the registry of the an unpacked iso file.

then how."

An unpacked ISO? If your ISO is unpacked and you have direct access to the files in I386, you could add these lines to an INF file like AXANT5 for example, then recreate the ISO. That's what I did, personally. I use HFSLIP, by the way.

I don't know of a way to add registry values with a batch file, but I know it can be done.

Edited by fdv
Link to comment
Share on other sites

"is it possible to made an batch file that can add this to the registry of the an unpacked iso file.

then how."

An unpacked ISO? If your ISO is unpacked and you have direct access to the files in I386, you could add these lines to an INF file like AXANT5 for example, then recreate the ISO. That's what I did, personally. I use HFSLIP, by the way.

I don't know of a way to add registry values with a batch file, but I know it can be done.

maybe i´m stupid but I don´t understand what you mean.

Does this work on both 2000 and XP.

Edited by Tripo
Link to comment
Share on other sites

You insert the relevant reg-keys fdv kindly provided, either directly into one of the hive files(or other suited setup INFs), or you make an INF/REG-file or NT Command Script(needs reg.exe) with the reg-keys and define it to be run at either T-13(svcpack.inf), T-12(cmdlines.txt), or first-logon(GuiRunOnce/RunOnce[Ex])...

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...