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.
Provided the configuration information is represented as an object with properties, both CLIXML and JSON are probably equally easy to use. JSON is perhaps easier to hand-edit, if needed.
Seems like what you're trying to do is re-create portions of Desired State Configuration, though. If your network share was a DSC Pull Server (and it could be – an SMB Pull Server is nothing more than a file share), it seems like you could do a lot of this with DSC instead of hand-coding something yourself.
You must be logged in to reply to this topic.