I'm trying copy an edited host and lmhosts.sam file to the c:/windows/system32/drivers/etc/ folder by running a batch file as follows:
copy \\server\host_files\hosts /y
copy \\server\host_files\lmhosts.sam /y
However I'm only able to run this successfully when an account with administrative rights logs into the computer. Is there any way to have this run successfully when regular users log into their accounts through login script? Or does anyone have an alternate way to update this file with other means?