Trouble UE4 in Visual Studio

Today I am trying to build Unreal Engine from the github and am running into errors during the build. Can anyone assist me?

Here is the error I am getting. I have tried everything I can think of, and tried what I can find from searches… Please help. Thank you!

1>------ Build started: Project: ShaderCompileWorker, Configuration: Development_Program x64 ------
1>Performing 35 actions (4 in parallel)
1>Module.DesktopPlatform.cpp
1>Module.Core.8_of_9.cpp
1>Module.Core.9_of_9.cpp
1>Module.ShaderFormatD3D.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>Module.ShaderFormatOpenGL.cpp
1>Module.MetalShaderFormat.cpp
1>Module.ShaderCompileWorker.cpp
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
1>ERROR : UBT error : Failed to produce item: C:\Flex417\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker-Core.lib
1>Total build time: 4.60 seconds (Local executor: 0.00 seconds)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project “ShaderCompileWorker.vcxproj” – FAILED.
2>------ Build started: Project: UE4, Configuration: Development_Editor x64 ------
2>Creating makefile for UE4Editor (no existing makefile)
2>Performing full C++ include scan (no include cache file)
2>Building UnrealHeaderTool…
2>Performing 10 actions (4 in parallel)
2>Module.Core.9_of_9.cpp
2>Module.Core.8_of_9.cpp
2>Module.UnrealHeaderTool.cpp
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
2>C:\Program Files (x86)\Windows Kits\8.1\include\um\combaseapi.h(229): error C2760: syntax error: unexpected token ‘identifier’, expected ‘type specifier’
2>ERROR : UBT error : Failed to produce item: C:\Flex417\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib
2>Total build time: 6.14 seconds (Local executor: 0.00 seconds)
2>EXEC : error : UnrealHeaderTool failed for target ‘UE4Editor’ (platform: Win64, module info: C:\Flex417\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)).
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command “…..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -waitmutex” exited with code 5. Please verify that you have sufficient rights to run this command.
2>Done building project “UE4.vcxproj” – FAILED.
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========

I Fixed this error by verifying my Windows 10 User account. Went to all settings then users then my account and there was a little blue verify link. I clicked the link verified my account and all errors were gone including the no permissions

Hope this helps.

I did verify my account however I still getting the same errors, I have also restarted my computer. Any other advise?

I have same issue and blocked.
I’m trying to compile Unreal Engine version 4.17 with Visual Studio 2017 Community Edition.
I followed the ReadMe.md file instruction.
But I got same error.
I wonder if this is related Windows SDK version (C:\Program Files (x86)\Windows Kits), but not sure.
Any suggestions?