Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Managing Hostnames vs. GUIDs on a Pull Server

$
0
0

The approach I'm taking is to query the server's LCM directly when I run the DSC configuration script to generate a MOF.
I'm setting a parameter that expects a computer name when the configuration script is run and then it queries the server(s) defined to retrieve the GUID from LCM. It then uses that as the node name and generates a MOF file with the GUID as the file name. Saves a lot of hassle trying track GUID's and writing a ton of tools.


Viewing all articles
Browse latest Browse all 13067

Trending Articles