The next thing is to enable BranchCache using powershell. I did this by looking at the registry and seeing which values were changed each time I adjusted the GPO manually and then used the following Powershell code:

So long as you can figure out which registry value is being ‘tweaked’ via your GPO then it’s very easy to achieve the same thing using Powershell. I’m not going to show you the other settings for BranchCache as I think you’ll agree that this is now pretty easy to figure out yourself based on the above examples.

As always, the help files in Powershell proved awesome in figuring this out.