How can I work around Windows File Protection such that I can rename a system file?

1

1

How do I use PendingFileRenameOperations to rename a file which is in use? Especially system files, like tcpip.sys. I have created a key PendingFileRenameOperations (REG_MULTI_SZ) in

HKLM\System\CurrentControlSet\Control\Session Manager

And wrote there something like this:

\??\C:\windows\system32\tcpip.sys \??\C:\windows\system32\tcpip.bkp

I have found that Windows File Protection doesn't let me do that. What's wrong with it?

Searush

Posted 2012-09-22T19:26:04.963

Reputation: 781

Answers

1

It looks to me like you have an error in the long filename prefix syntax. Instead of \??\, try \\?\.

Nicole Hamilton

Posted 2012-09-22T19:26:04.963

Reputation: 8 987

I know it,but try to rename system file, like tcpip.sys .It's not working on system files :( – Searush – 2012-09-23T16:14:44.010

1I found that Windows File Protection (WFP) doesn't let me do that. But I don't know how to disable it.Help please. – Searush – 2012-09-24T15:38:53.397