title: Enable Macros via Powershell
body: <p>I have a Powershell script that creates an Excel File, and within that runs a macro to embed an OLEObject.  This is going to be used by field engineers and therefore on different computers.  To run the script, the macro settings need to be set to "Enable all macros..." and "Trust access to the VBA project object model." 
  Is there any way this can be incorporated into the Powershell script? Ideally to be activated and then deactivated at the end.
  I suspect this is something that can't be automated, and will need to be done manually to run the script.
  Any suggestions would be much appreciated.</p>