File not found reported by fileinfo on Windows server 2019

If you get the output like this then your YAML file formatting is not correct.
The indentation is very important. It is possible to use a YAML syntax checker on the net or in your editor of choice.
I personally only do a two space indentation in my files.

Your screenshot shows first 5 spaces, then 4 spaces and then 10 spaces.

Example from my test system.

fileinfo:
  path:
    - 'C:\Temp\*.ps1'
1 Like