I am trying to run a .bat
file with audit policy settings inside an azure vm. For this I used a terraform vm custom script extension to call a .ps
file which calls another .2ndps
file.
The .2ndps
file includes just the following:
start-process .\setAuditPolicies.bat
However, the .bat
file doesn't get run or audit policies doesn't get set.
Am I calling the .bat
file wrong, within the powershell script?