Windows AWS EC2 Userdata now saving a file where I expect it to be

  amazon-web-services, windows

I am running aws ssm get-parameter --name example > C:example defined in userdata to be run at launch. The instance role has all the necessary permissions but the file is not where I expect it to be (C:) when I RDP onto the instance, I can run that command whilst RDPed to get the file into the C: drive it just doesn’t work at boot from the userdata.

Is the file being saved elsewhere perhaps or is there something I am overlooking?

(I am used to Linux rather than Windows, sorry if a fairly basic question)

Source: Windows Questions