Modifying shares caching options
i have a setup where due to macs the users areas are shared as \\server\username$ rather than the simpler \\server\users$\group\name
now these are all setup with caching set to disabled and im looking at setting up staff with roaming and synced documents. I could manually go hrough and turn syncing on all folders but there has to be a better way. I have a script tht will create shares with aching enabled but if the folder is already shared it just errors out (again i could possibly write a script to unshare the folders first then run this but if i can do it as 1 command id be happier
current code is
does anyone know a way i can just use that or simiular to just change the caching options?
for /f %%u in (users.txt) do net share %%u$="D:\test\%%u" /grant:everyone,full /cache:Documents