9 replies
by maelgwyn
It is possible to do this:
Make a new Autoexec.bat file and sit it on the authentication server.
When each user logs in, make a script that copies the file across the connection, so then the new file is propagated onto each machine almost automatically.
Ok, this may help you, but it also may not, especially if there is different autoexec.bat files across the whole board, then you may need to do some remote access to any non standard file(s)
Hope it helps
Maelgwyn
by joseph moore
I had a similar problem, trying to update over 100 HOSTS files. I had to remove a single line in them, so I used the FIND command. I copied the HOSTS file to a shared folder (calling the copy of the file the computer name it came from using the %computername% variable), then I ran the following:
FIND /V /I "Text To Remove" \\SERVER1\SHARE1\%computername%.txt> \\SERVER1\SHARE1\%COMPUTERNAME%2.TXT
That searched throughout the entire file, looking for everything EXCEPT the text string I wanted to remove; it then made a NEW file that was exactly like the old HOSTS file, EXCEPT the line I wanted removed was NOT in there.
I then just replaced the old HOSTS file with my new copy.
I can send you the whole BAT file script if you like asan example. You can change it to fit your needs.
hope this helps
by joseph moore
Get a copy of KixScript from www.kixtart.org
Ralph
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending