Use DNS name when creating a folder

(imported topic written by RSeymour91)

Hi, I am a complete novice with BigFix and have stumbled with my first action.

I need to collect a folder of configuration files from all the servers in our estate and copy them back to a central location ahead of a major upgrade. I am fine with the relevance and action parts of the process, but how can I have the DNS name of the source server used as the folder name when copying the directory back to a central server?

What I would like to end up with is a folder on my file server with several hundred sub-folders all named the same as the DNS name of the machine they were copied from.

Thanks in advance

(imported comment written by NoahSalzman)

Well, presumably you have a line of Action Script somewhere that does the copy.

Just use Relevance substitution in the Action Script with the machine’s DNS name using {dns name}

For example:

waithidden xcopy c:\stuff d:\stuff_from_{dns name} /s /i

(imported comment written by RSeymour91)

This is perfect, thank you!

I had forgotten the joy of {curly brackets}