Just got a shiny new IBM Carbon computer and was trying to join it to the domain throught the connect computer wizard on their SBS 2011 Essentials. It stopped right away with «A pemding reboot is preventing you from installting the connector software». Ok, I will just have to reboot. So I did. But the same error happened again. and again. I checked the classic PendingFileRenameOperations in the registry and I found some depending reboots there. But each time i deleted this it just came back! So, what was causing this..? Well, the file it referred to was this: wpro_41_2001woem.tmp
After a few seconds with my friend google it seems to be related with the WinPap professional software which is used to capture client/network traffic. But I couldn’t find this software on the computer but after some googling it seems that this file is a part of the Intel Smart Connect software. After deleting this software, and a reboot, the PendingFileRenameOperations was gone and the computer could join the domain just fine.
Here is also a little vb-script which you can save to a .vbs file and run with «wscript.exe nameoffile.vbs» in an elevated cmd.exe which will show you files which have a lock during a pending reboot.
‘Programmer: Tom Mills/Microsoft Corp.
‘Purpose: Checks registry key for pending file rename operations
CONST HKEY_LOCAL_MACHINE = &H80000002
strComputer = «.»
strFileOps = «»
strComputer & «rootdefault:StdRegProv»)
strKeyPath = «SYSTEMCurrentControlSetControlSession Manager»
strValueName = «PendingFileRenameOperations»
Return = objReg.GetMultiStringValue(HKEY_LOCAL_MACHINE,strKeyPath,_
If (Return = 0) And (Err.Number = 0) Then
For Each strValue In arrValues
strFileOps = strFileOps & chr(13) & strValue
WScript.Echo «Pending File Rename Operations Found: » & strFileOps
If Err.Number = 0 Then
Wscript.Echo «No Pending File Operations Found»
Wscript.Echo «Check Pending File Operations failed. Error = » & Err.Number