I am trying to run a bat script containing only this line
aws s3 sync .... I have tested it and it works well, however the script must run on server shutdown.
I added a group policy and put the script in
C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown but it doesn't work. When I look at the events log for the group policy I only see a "Starting Shutdown script" with the code 4018 followed by "Completed Shutdown script" with the code 5018.
I even tried added a policy on Startup to test it but that doesn't work either. I also tried using a PowerShell script instead.
Why isn't this working?