'Setting IP address from a file with Desired State Configuration DSC
I need to write a Desired State Configuration (DSC) that ensures the private IP address of my Windows VM stays the same at boot.
My machine is used by people who might accidentally change or renew the IP address and that breaks my environment. So it is necessary that the machine always boots with the initial IP address which was assigned by the DHCP. (I don't have access to the DHCP server).
I have a script that saves the original IP into the ipaddress.txt file.
I'm very new to windows configuration and Powershell so any help is very appreciated.
Thanks a lot!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
