I currently have nodes set up to pull their configurations from a http pull server (lab environment). The LCMs of these nodes are using configuration names to find their mofs. If I manually modify a mof to be the same name as the configuration name and change the mof data to apply to all computers, they work. What I can not find is an easy way to generate mofs like this from the cmdlets.
Generated mof: servername.mof
@TargetNode='servername'...
Modified mof: configurationname.mof
@TargetNode='*'...
If I try to generate a mof without specifying a node name and having Node * {...}
in the configuration script I just get the following error:
out-file : Cannot perform operation because the wildcard path .\configurationname/*.mof did not resolve to a file.
If I create that directory and put exactly one mof in it, the cmdlet will overwrite it and change @TargetNode
to a wildcard. Multiple mofs in the directory will result in a different error.