Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map multiple administrative shares

Status
Not open for further replies.

dvornik

Technical User
Sep 10, 2002
76
US
If we want to put a file to the C: drive of a number of workstations, what would be the best way of doing it?

Right now what I do is map an administrative share for each computer and drag the file over there one-by-one. I'm sure it's a very unefficient method. Is there a way to automate it? Especially if administrative passwords on some of them are different from mine?
 
I mean it's something we need to do from time to time, not on a daily basis. Is there a script I can run anytime to map them? I don't know much about scripting but maybe I could figure it out.
 
You can use the reskit tool rmtshare in a batch file to automate this. The batch could establish the share on the remote computer with rmtshare, net use command could map it for you, copy the files, net use delete the map, rmtshare to stop sharing. Note that rmtshare creates the specified share on remote computers, very handy for batch work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top