I'm just creating a simple powershell script to check if a service is running, and if not, to send an email. (This is already working).
What I would like to do is, to have config file, where I can set some attributes like mail recipient, service name(s), and some more.
Question: Which type should I choose for my config file (is there a better way than .txt?)? The background of this question is, that I don't want to parse a txt file in my powershell script to get all these attribute values. Is there a way to declare these attributes in my config file to get and address them easily in powershell later? (Like a global variable set in the config-file and retrievable in my .ps1-file;)