Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1706

@regexist function does not unload (offline) registry with loaded hives

$
0
0
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

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

Viewing all articles
Browse latest Browse all 1706

Trending Articles