Page 1 of 1

3dsMax_Win11_24H2_Path_Fix.bat

Posted: Fri Aug 15, 2025 1:09 am
by Elvissuperstar007
I made a simple script that will help you get rid of this problem.

:: A free script to fix the Windows 11 24H2 error,
:: due to which 3ds Max does not see user scripts, macros and plugins.
:: The script removes system/hidden attributes from AppData and Local,
:: and also automatically corrects paths for all installed versions of 3ds Max.

this bug in Windows 11 24H2 is due to the fact that Max in new builds uses useUserProfiles=1, and as a result, usermacros and scripts go to %APPDATA% instead of the local Max folder.

.bat actually:
Makes the AppData folder visible.
Backups usermacros to a separate directory.
Changes useUserProfiles=1 to useUserProfiles=0 in InstallSettings.ini.
Run as an administrator!

https://3ddd.ru/forum/thread/show/3ds_max_2024_v_novoi_versii_windows_11_24h2_problema#post1773399


@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

REM === Remove attributes from AppData and Local folders ===
cd /d %USERPROFILE%
attrib -h AppData
cd AppData
attrib -s Local

REM === Search all installed 3ds Max versions and apply fix ===
set "BASE_PATH=C:\Program Files\Autodesk"
set "BACKUP_ROOT=C:\3dsMax_usermacros_backup"

for /d %%D in ("%BASE_PATH%\3ds Max*") do (
set "MAX_PATH=%%~fD"
set "USERMACROS=!MAX_PATH!\usermacros"
set "INI_FILE=!MAX_PATH!\InstallSettings.ini"

echo Found: !MAX_PATH!

if exist "!USERMACROS!" (
set "BACKUP_PATH=%BACKUP_ROOT%\%%~nxD"
xcopy /E /I /Y "!USERMACROS!" "!BACKUP_PATH!" >nul
echo usermacros backup done
) else (
echo usermacros folder not found
)

if exist "!INI_FILE!" (
powershell -Command "(Get-Content '!INI_FILE!') -replace 'useUserProfiles=1','useUserProfiles=0' | Set-Content '!INI_FILE!'"
echo useUserProfiles set to 0
) else (
echo InstallSettings.ini not found
)
)

echo All done. Restart 3ds Max.
pause
ENDLOCAL

Re: 3dsMax_Win11_24H2_Path_Fix.bat

Posted: Tue Aug 19, 2025 8:09 am
by Jani
Thank Elvis,

it completely broke down my 3ds Max, I now have to run it as administrator, so I can only open scenes if I open a fresh Max, otherwise I get a shit ton of errors for missing files/plugins/dlls and what not. I also constantly have to re-do the UI because it resets to default.

Can you suggest a method to revert what you did?

Because I can't work like this I'm thinking of re-installing everything.

Cheers