Using the Netsh Command:

  • To set the DNS server, utilize the following command:
1netsh interface ip set dns name=ethernet static 192.168.0.10

Integrating the Change into Your Boot Environment

To ensure the DNS settings are applied every time you boot into WinPE, you can modify the startnet.cmd file. Here’s how:

dism /mount-wim /wimfile:"\\%servlandesk%\ldmain\landesk\vboot\boot_x64.wim" /index:1 /mountdir:c:\mount
Notepad C:\mount\Windows\System32\startnet.cmd
:: Add this command after Wpeinit
Dism /unmount-wim /mountdir:c:\mount /commit


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.