Thanks for the info, amymor.
glad if i helped you, also found another way to disable creation of that folder, currently i use this method for the jpgcrop, the trick is changing value of "EnableVirtualization" from 1 to 0 in registry ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"), again idk what the side effect is, so do it at your own risk, i dont recommend it for the average user who downloads nasty things from the internet because virtualization seems to be a layer of security to prevent infection. but i always disable almost all security stuff like Defender, DEP, Specter and Meltdown etc, and in my personal experience my system has not been harmed at all. i also have Kaspersky offline virus removal tool as a backup, it is not installed but i will run it if i think there is a problem. the last run was about 3-4 years ago when my brother accidentally sent a trojan from his flash drive to my system.
and here is my ready made batch script to Enable or Disable it alongside Enable or Dislable UAC. it checks current status of UAC and Virtualization and report back it to user, so you know that they are disabled or enabled. and then ask you to press the following:
- Number 1 => Disable UAC
- Number 2 => Enable UAC
- Number 3 => Disable Virtualization
- Number 4 => Enable Virtualization
Code:
@echo off & cd /d "%~dp0"
fsutil dirty query %systemdrive% >nul && goto:GA || echo pls run it as administrator & pause & exit /b
:GA
:check
echo.
echo [33m Check current state:[0m
reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" | find "EnableLUA REG_DWORD 0x1" >nul
if not errorlevel 1 (echo. UAC ----------[92m Enabled! [0m) else (echo. UAC ----------[91m Disabled! [0m)
reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" | find "EnableVirtualization REG_DWORD 0x1" >nul
if not errorlevel 1 (echo. VirtualStore -[92m Enabled! [0m) else (echo. VirtualStore -[91m Disabled! [0m)
echo.
echo [93m Pls Restart after operation [0m
echo.
echo [33m 1 = Disable UAC:[0m Breaks fullscreen in certain UWP applications(Minecraft) It is also less secure to disable UAC.
echo [33m 2 = Enable UAC [0m
echo.
echo [33m 3 = Disable Virtualization[0m (Old apps cant save settings in either Windows folder or AppData\Local\VirtualStore)
echo [33m 2 = Enable Virtualization[0m (Old apps save settings in AppData\Local\VirtualStore instead of Windows folder)
echo.
echo [96m my choice: 2 and 3 [0m
echo.
choice /C:1234
if %errorlevel%==1 goto UAC_Disable
if %errorlevel%==2 goto UAC_Enable
if %errorlevel%==3 goto VirtualStore_Disable
if %errorlevel%==4 goto VirtualStore_Enable
:UAC_Disable
echo [91m
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f
echo [0m
timeout 5
cls
goto :check
:UAC_Enable
echo [92m
reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "1" /f
echo [0m
timeout 5
cls
goto :check
:VirtualStore_Disable
echo [91m
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableVirtualization" /t REG_DWORD /d "0" /f
echo [0m
timeout 5
cls
goto :check
:VirtualStore_Enable
echo [92m
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableVirtualization" /t REG_DWORD /d "1" /f
echo [0m
timeout 5
cls
goto :check