thanks SouthMod - i thought it would be quite simple but my searches have come up fruitless on it
Main Topics
Browse All Topicshello all
following a question i previously asked - http://www.experts-exchang
all offline folders are currently cached, which is supposedly a bad thing. i haven't had a bad experience with them *so far*, but i don't want the network going awry while i'm out of the office.
i have found how to disable the offline cache here - http://support.microsoft.c
but was wondering if anyone knew a script i could run to save me doing that KB article 500 odd times
to recap the previous question i have a network of 500+ users all with roaming profiles. i recently migrated the profiles to a new server (HP Proliant, Win Storage Server 2k3 r2 64bit, quad core xeon processor, 10Gb RAM) and recreated all shares, then used a dsquery script to point the AD users to the new server. since then i've found the damn offline cache options have been enabled on every profile
an easy 500 points for anyone with a bit of scripting knowledge
thanks for any suggestions or ideas
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Roaming profiles shall as described in the KB not be located on a share with offline caching enabled. Disable it on the share (shared folder properties Sharing -> Caching and choose that files will not be available offline).
Do you have multiple shares for the profiles? If so, a little bit curious why. It would be better/easier to share the parent folder like profiles$ and point out the profiles to be located in \\server\profile$\username
To disable caching for all shares, it can be done with looping through 'net share' command like below
hi henjoh
thanks for your suggestion, i want the offline cache disabled on ALL shared folders. i know how to do it as per that kb article but i don't want to have to manually do it on 500+ folders, hence asking if anyone knew a net share script that could maybe run with a variable, the variable being the different share names i want the caching disabled on.
i don't understand the script you have uploaded - could you explain it for me please?
the shared folders are in F:\users\ and they are shared as username$ (so they're hidden) if that helps you clarify
1. in outlook go tools>options>advanced folder watch tab
2. add a rule and name it, click next
3. select the folder you want monitored
4. keep nexting it until finish comes up, then check the 'display the rule setting dialog' box and click finish
5. in the rules dialog box go to the filter tab and change the field tab to 'all fields'
6. in the conditions drop down change to 'not empty'
7. add a '1' in the far right 'weight' box and click 'add to list' underneath
8. make sure the filter weight at the bottom of that window says '1' and ok and apply everything
job done!
F:\users\... sounds like it's also being the location of home directories. If so, separate the profile from home directory and use folder redirection to place My Documents and other profile folders in the home directory for optimizing logon/logoff performance when replicating the profile data. Keep offline files caching enabled for the home directory, but turn it off for the share with profiles.
Both home directory and profile directory can be kept in subfolder of share. Configure parent folder to prevent users from listing the contents or install ABE (Access Based Enumeration) if you want to hide the individual folders from other users that don't have access to the folders.
It would be enough with two shares, one for the profiles (profiles$=F:\profiles, no caching) and one for the home directories (users$=F:\users, caching enabled) and have the user's profile be \\server\profiles$\%userna
The command line I posted loops through the output of 'net share' when only including the result lines containing C: by filtering the result through find command. The %a variable used in for loop references the first column, share name, and is used as argument to the command after 'do'.
'net share sharename /cache:none' will disable caching for sharename, and by using the for loop it will process the command for each shared folder matching the find criteria.
As you're having the folders in F:\users, replace "C:" string with "F:\users" as below to handle the shared folders located in F:\users.
If command line is placed in a bat/cmd file for executing, the %a variable nead to be prefixed with double % (%%a). If the command line is executed directly in command prompt, the variable prefix is single %,
Business Accounts
Answer for Membership
by: mrrooniePosted on 2009-08-11 at 05:12:00ID: 25068062
maybe not an easy 500 points.
surely there is a script to enable a variable in the net share cache command...?