D
Deadlyshadow
Guest
Hi
can i edit HOST file in Windows 10 Image using NTLite?
can i edit HOST file in Windows 10 Image using NTLite?
Sorry for bringing an old topic back.....could you please elaborate the command syntax with an example if thats not too much to ask?or he can just type a runonce command to post setup.. to move a hosts file
\sources\$OEM$\$$\System32\drivers\etc
Just to be sure, I need to create a folder tree (System32\drivers\etc) inside the "$$" folder, then place the hosts file in the "etc" folder....correct ?While you can add the file from the Post-Setup page, I find the older method of including files easier if you need to update them. This way is easier since it doesn't require mounting the image every time you need to make one change.
1. Create a new folder, under your extracted ISO's directory.
Code:\sources\$$\System32\drivers\etc
$$\System32\drivers\etc -> C:\Windows\System32\drivers\etc
2. Copy your HOSTS file into this folder. Apply changes and create a new ISO. The file will be deployed for any image you install.
Cool....ThanksSorry, I posted the wrong path originally. \sources\$OEM$\$$\System32\drivers\etc
Yes. Anything under the $OEM$ folder hierarchy will be copied to the target system, mirroring the folder paths. $$ is a shortcut for C:\Windows.
this is why I thought it would interfere with windows setup, so I appreciate if you teach me how to move the file post setup if that's not a botherThe $OEM$ method would overwrite the default HOSTS file much earlier in the installation process.
You've been much help, and not just this time........Thank You !I reviewed that list, it won't interfere with proper Windows installation. If you're not using a MS Account logon, then all install requires is access to Windows Update servers.
When I tried to directly replace the file when mounted using explore mount directory, it strangely worked...why not use this method directly?One you prepare the new hosts file, you can just drop it to the Post-setup page, tool will now set all automatically.
Confirm the file destination on the right, and it should be of "Before logon" type.
Will need to update the docs soon.
That's what the post-setup does, with the ease of having it in the preset for the next time, it will pull the hosts file where you keep it when the preset was saved.When I tried to directly replace the file when mounted using explore mount directory, it strangely worked...why not use this method directly?