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 commentaire

Laisser un commentaire

Emplacement de l’avatar

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.