Ue4.19 build always giving errors

I always get errors with ue4.19 when building the development editor.I have tried vs2015 and 2017.
I downloaded the release branch in github extracted and and run the setup and ran geneprojfile -2017.i opened vs 2017 and built it and errors just keep coming.here’s common error
outputCode Description Project File Line
Failed to produce item: D:\UnrealEngine-release\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UE4 D:\UnrealEngine-release\Engine\Intermediate\ProjectFiles\ERROR 1
Please help
Also wanted to know what is the server target for ue4.19
Thanks
***Contact: Discord= , Server - ***

Output Log
https://pastebin.com/8rBbZ4xQ

Here is the error list
or(error list)
Code Description Project File Line
C1083 Cannot open include file: ‘nldef.h’: No such file or directory ShaderCompileWorker C:\Program Files (x86)\Windows Kits\8.1\include\shared\ipmib.h 37

Code Description Project File Line
C1083 Cannot open include file: ‘nldef.h’: No such file or directory UE4 C:\Program Files (x86)\Windows Kits\8.1\include\shared\ipmib.h 37

Code Description Project File Line
Failed to produce item: D:\UnrealEngine-release\Engine\Intermediate\Build\Win64\UnrealHeaderTool\Development\UnrealHeaderTool-Core.lib UE4 D:\UnrealEngine-release\Engine\Intermediate\ProjectFiles\ERROR 1

===Code Description Project File Line
MSB3075 The command “…..\Build\BatchFiles\Build.bat ShaderCompileWorker Win64 Development -WaitMutex -FromMsBuild -2017” exited with code 5. Please verify that you have sufficient rights to run this command. ShaderCompileWorker D:\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

===
Code Description Project File Line
MSB3075 The command “…..\Build\BatchFiles\Build.bat UE4Editor Win64 Development -WaitMutex -FromMsBuild -2017” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 D:\Visual Studio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets 44

===
Code Description Project File Line
UBT ERROR: Failed to produce item: D:\UnrealEngine-release\Engine\Intermediate\Build\Win64\ShaderCompileWorker\Development\ShaderCompileWorker-Core.lib ShaderCompileWorker D:\UnrealEngine-release\Engine\Intermediate\ProjectFiles\UnrealBuildTool 1

===Code Description Project File Line
UnrealHeaderTool failed for target ‘UE4Editor’ (platform: Win64, module info: D:\UnrealEngine-release\Engine\Intermediate\Build\Win64\UE4Editor\Development\UE4Editor.uhtmanifest, exit code: OtherCompilationError (5)). UE4 D:\UnrealEngine-release\Engine\Intermediate\ProjectFiles\EXEC 1

Using ue4.19, Visual Studio 2017 installed dev with c++.(MISC)Just uninstalled vs 2015 and install 2017.Tried multiple times with vs2015 and 2017 still gettings errors.

I am also getting the same errors, and I’m wondering if anyone has found a solution to this issue

Ok so I was actually able to get it to work, but I had to reinstall VS 2017. I removed VS 2015, removed VS 2017, deleted any remaining folders in my program files folder, and then installed VS 2017 with the proper settings. It started working fine after that.

Hi I was wondering if you remember the settings that you used when reinstalling VS 2017? I have the exact same problem.

I think i solved it. I just reset my pc and installed vs 2015 and it worked