Solved Batch file to remove file(s) and add file over domain

September 13, 2012 at 14:58:07
Specs: Windows XP
I'm trying to create a batch file to remove all files in the users start up folder on remote computers. Then I'd like to copy a shortcut to a batch file in the same location from a server directory. The computers are located remotely, on the same domain, at different campuses. I would like to perform this change one campus at a time.

Also, would I need to dump a txt file from AD of all the computer names to call from? I been looking at some batch files, but they get very in depth and I am just a novice when creating batch files.

More info:
I was going to run this batch file from a 2003 server.
Computers are XP and Win7.

Thank you very much in advanced of any help!

See More: Batch file to remove file(s) and add file over domain

Report •

September 13, 2012 at 16:34:42
Hello , i was fooling around in google and i saw this post right now , do you want to do that using a litle script in the others computers and when you trigger it from your machine they delete the startup folder content ?...or try this command read the help. -> schtasks create /?

Regards Batch scripts 4every1

Report •

September 14, 2012 at 06:21:53
Hello again,

I was looking to run the batch file from the 2003 server. The batch file would look for the specific computer names at the campus, delete the startup folder content, and then place a shortcut to a batch file from the server.

Hope this helps.
Thank you

Report •

September 14, 2012 at 11:37:20
✔ Best Answer
This sounds like something Group Policy login scripts should handle.

EDIT: Marking my own post as best answer, as "Use GPO Login scripts" was the accepted decision.

How To Ask Questions The Smart Way

Report •

Related Solutions

September 14, 2012 at 13:09:04
Hi again,

We have decided to use a simple logon script to take care of this. Thank you to everyone who responded and who looked at this post.

Report •

Ask Question