Hi, We have automated the installation of servers, and now want to use DSC. Because the just built server will not yet have a static ip and therefore not in DNS right away, we will use the uuid of the server for its .mof. I have already scripted the DSC client configuration for the new server, but now I’m on to the installation of software via the pull server.
Here is what I want to do, but I’m not sure of how to do it:
- after the server has been built, I will run a configuration script called InstallSoftware using $computername and $uuid which I supply.
- the mof file is placed in a directory called c:\dsc, and is named servername.mof
But when I then copy the file to a uuid.mof (because I want the servername.mof to remain), the $computername and $uuid values are no longer valid, so the copy won’t work. Also, I then cannot create the hashfile either.
So, how do I call the InstallSoftware config script with computername and uuid parameters, then be able to copy the file to another directory and create the checksum file?
Would someone please help?