A
Amanda
I am trying to have a HOSTS file copied to all my domain workstations
%systemroot%\system32\drivers\etc directory.
I have tried creating a startup script and applying it through group policy
to the specified computers and cannot get it to work.
I have created a "cmd" file that has the following:
--------------------------------
if exist %systemroot%\system32\drivers\etc\hosts goto update
copy \\thomas\distribution\hosts %systemroot%\system32\drivers\etc
exit
:update
replace \\thomas\distribution\hosts %systemroot%\system32\drivers\etc /u
exit
---------------------------------
If I run it as a Domain User through the command prompt I get an access
denied message. If I run it as Administrator through the command prompt it
works fine.... not through the Group Policy just through the command prompt.
It will not work in the Group Policy for the Administrator. Nothing happens.
I actually get an error in Event Viewer telling me the following:
Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1058
Date: 7/15/2003
Time: 10:10:06 AM
User: NT AUTHORITY\SYSTEM
Computer: NETEST
Description:
Windows cannot access the file gpt.ini for GPO
CN={3B06B34E-03CC-470E-A608-98C82DA117CA},
CN=Policies,CN=System,DC=NE. The file must be present at the location
<\\NE\SysVol\NE\Policies\{3B06B34E-03CC-470E-A608-98C82DA117CA}\gpt.ini>.
(The network path was not found. ). Group Policy processing aborted.
I have other Group Policies that apply correctly to this system.... Am I
totally off the beaten path for doing this? Is there an easier way? Any help
would be greatly appreciated.
%systemroot%\system32\drivers\etc directory.
I have tried creating a startup script and applying it through group policy
to the specified computers and cannot get it to work.
I have created a "cmd" file that has the following:
--------------------------------
if exist %systemroot%\system32\drivers\etc\hosts goto update
copy \\thomas\distribution\hosts %systemroot%\system32\drivers\etc
exit
:update
replace \\thomas\distribution\hosts %systemroot%\system32\drivers\etc /u
exit
---------------------------------
If I run it as a Domain User through the command prompt I get an access
denied message. If I run it as Administrator through the command prompt it
works fine.... not through the Group Policy just through the command prompt.
It will not work in the Group Policy for the Administrator. Nothing happens.
I actually get an error in Event Viewer telling me the following:
Event Type: Error
Event Source: Userenv
Event Category: None
Event ID: 1058
Date: 7/15/2003
Time: 10:10:06 AM
User: NT AUTHORITY\SYSTEM
Computer: NETEST
Description:
Windows cannot access the file gpt.ini for GPO
CN={3B06B34E-03CC-470E-A608-98C82DA117CA},
CN=Policies,CN=System,DC=NE. The file must be present at the location
<\\NE\SysVol\NE\Policies\{3B06B34E-03CC-470E-A608-98C82DA117CA}\gpt.ini>.
(The network path was not found. ). Group Policy processing aborted.
I have other Group Policies that apply correctly to this system.... Am I
totally off the beaten path for doing this? Is there an easier way? Any help
would be greatly appreciated.