主权项 |
1. A computer-implemented method to preserve network settings for a computing device in a pre-boot environment, comprising:
detecting, by a processor, initiation of a shut down process for the computing device, the shut down process comprising shutting down an operating system of the computing device; upon detecting the initiation of the shut down process, identifying, by the processor, an internet protocol (IP) address assigned to the computing device; determining whether the IP address assigned to the computing device is allocated by a dynamic host configuration protocol (DHCP) server; generating, by the processor, a timestamp for the identified IP address assigned to the computing device; storing the identified IP address assigned to the computing device and the associated timestamp in a storage medium on the computing device; upon determining the IP address assigned to the computing device is allocated by a DHCP server, identifying an IP address of the DHCP server and storing the IP address of the DHCP server in the storage medium; detecting a startup process of the computing device after detecting initiation of the shut down process; and retrieving the IP address assigned to the computing device from the storage medium after detecting the startup process and before the operating system of the computing device is booted. |