Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear the PendingFileRenameOperations registry value

One of my troubleshooting steps is to clear the PendingFileRenameOperations registry value to avoid rebooting a server.

What I would like to do is clear this through a batch file, I don't want to delete it, just clear it.

It's the following registry value

HKEY_LOCAL_MACHINE/SOFTWARE/Session Manager/PendingFileRenameOperations
like image 427
Mike Avatar asked Oct 27 '25 05:10

Mike


2 Answers

The command

%SystemRoot%\System32\reg.exe add "HKLM\System\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /t REG_MULTI_SZ /d "" /f

replaces current value of multi-string value PendingFileRenameOperations with an empty string.

The path you wrote in the question does not exist on my Windows 7 x64 machine.

For details on command reg open a command prompt window and run there first reg /? and second reg add /?

But why clearing this registry value used to delete or replace (usually update) files after reboot before Windows loads drivers and starts processes and applications should avoid rebooting a Windows server is beyond my understanding.

like image 50
Mofi Avatar answered Oct 30 '25 10:10

Mofi


Some software just checks for the key existence and doesn't care if its blank,So For deleting Key,Use My Way :

reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations /f
like image 24
slacky Avatar answered Oct 30 '25 10:10

slacky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!