Fails to build New Projects with C++

When I try to create a new project I get the following error.

After opening it in VS and attempting to compile it I get these errors when building the source with “Development Editor|Win64”.

Severity	Code	Description	Project	File	Line	Suppression State
Error		Failed to start build.	Project	D:\UE4\Project\Intermediate\ProjectFiles\EXEC	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error		UBT ERROR: Failed to produce item: D:\UE4\Project\Binaries\Win64\UE4Editor-Project-2754.dll	Project	D:\UE4\Project\Intermediate\ProjectFiles\UnrealBuildTool	1	

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3075	The command ""D:\Program Files\Epic Games\UE_4.19\Engine\Build\BatchFiles\Build.bat" ProjectEditor Win64 Development "D:\UE4\Project\Project.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.	Project	C:\VStudio\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets	44	

I believe I have the permissions though, I have given the parent and children folders every permission, for account administrators, power user, local, all application packages, system, local service, home users, authenticated users, backup operators, down to the username account.

It compiled fine when I changed it to “Development Editor|Win32” though.

The OS is Win 8.1 Pro 64-bit verified using cmd prompt.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\name>wmic OS get OSArchitecture
OSArchitecture
64-bit

EDIT:
I have also tried reinstalling VStudio 2017 Community from scratch.

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks