windows - copy folder to multiple servers with different %userprofile% -


i not have access gpo or ad/ou, found easiest create batch file users.

here want achieve :

i have on 50 servers, , 10 users connecting these machines. on different machines, want populate, 1 location (1 main server, 1 main location/main user), internet favorites (c:\users\main user\favorites\links) on every machine...

i want create batch file, minimum user manipulation, . basicly, give batch file 10 users, , launch on 1 machine, , populate links %userprofile%, location of choice.

i started figuring xcopy, advice/help on completing it.

    xcopy "\\nameofmachine\c$\users\main user\favorites\links"      "\\serverlist.txt\c$\users\%userprofile%\favorites\links" /e /i 

i think easiest way so. initial location updated monthly new links...

if user running should mirror source target folder, making them identical.

@echo off robocopy "\\nameofmachine\c$\users\main user\favorites\links"  "%userprofile%\favorites\links" /mir 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -