After using the @regexist function with a offline registry the loaded registry can't unloaded.
We get a access denied message.
tested:
type regexist_loaded_hives.bat
Read more
We get a access denied message.
tested:
type regexist_loaded_hives.bat
Code:
setlocal
unalias *
echo TCCver=%@VerInfo[%_cmdspec,FileVersion] OSbuild=%_OSBuildEx
set msRegHKCU=HKCU\Software\Microsoft\Clipboard
set msRegLoadedHKCU=HKLM\HiveHKCU\Software\Microsoft\Clipboard
set HKCUFile=R:\NTUSER.DAT
echo.
reg load HKLM\hiveHKCU %HKCUFile>nul
echo Online registry key exist = %@regexist[%msRegHKCU]...
Read more