I want to store configuration information for powershell script on network share. I just want to launch powershell script without passing information about configuration file and code will pull local computer name and try to match computer name to configuration file in configuration directory via wildcard match.
- Is it easier to store/retrieve information from XML or JSON or any other suggestions as far as format.
- How do I properly implement computername matching against individual files in folder if I want to support wildcard matching bearing in mind I can not name files having wildcards inside them.
The whole reason for this is that I want to implement robust IIS log compression where each set of servers would have to have different rules as far as how many logs to keep which websites logs needs to be copied and where etc.