No valid Visual C++ toolchain was found /VS 2022 must be installed

Hi All,

Hoping this is the right category - apologies if not.

I’m hoping someone can advise on a build issue we’re having with UE and VS 2022. Our devices have just been moved to AzureAD/InTune. By default, users have no admin rights on the devices.

If I try to generate project files, i’m now receiving this error;

C:\Program Files\Epic Games\UE_5.5\Engine\Binaries\DotNET\UnrealBuildTool>dotnet UnrealBuildTool.dll -projectfiles -project=“D:/redacted/redacted.uproject” -game -rocket -progress
Log file: C:\Users\John\AppData\Local\UnrealBuildTool\Log_GPF.txt

Generating VisualStudio project files:
Discovering modules, targets and source code for project…
No valid Visual C++ toolchain was found (minimum version 14.38.33130, preferred version 14.38.33130). Please download and install Visual Studio 2022 17.8 or later and verify that the “MSVC v143 - VS 2022 C++ x64/x86 build tools (v14.38-17.8)” component is selected in the Visual Studio 2022 installation options.
Total execution time: 0.46 seconds
Visual Studio 2022 x64 must be installed in order to build this target.

I’ve reinstalled the latest version of VS 2022 Professional twice, and made sure that MSVC v143 x64/x86 build tools (v14.38-17.8) has been installed, but it continues to error. I’ve also confirmed the MSVC files/folders are there.

however as a test, if we elevate CMD and run the following;

"C:/Program Files/Epic Games/UE_5.5/Engine/Build/BatchFiles/Build.bat" -projectfiles -project="D:/redacted/redaced.uproject" -game -rocket -progress 

It will generate the files without errors, and it detects the C++ build tools and VS 2022 x64.

Does UE need to run with with privileges, is there a registry that needs to be adjusted or am I missing something? Will these devices need to be local devices? All policies have been previously removed from the device as part of testing.

Any wisdom would be appreciated!

Thanks

if you mean admin privileges, then no.
im assuming you’ve restarted right? that is necessary to update the path.