set wshshell=wscript.CreateObject("wscript.shell") wshshell.RegDelete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations" set wshshell=nothing