Sunday, May 18, 2008

Group Policy - Folder Redirection for Windows Server 2003

Guy Recommends
A solution to monitor, manage and archive thousands of events that are generated by devices across the entire network. Download FREE trial
=0.5) {
google_alternate_ad_url = "http://computerperformance.co.uk/ThemesGuy/cpx/cpx_160.htm";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text";
google_ad_channel ="7092371666";
google_color_border ="FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000CC";
google_color_url = "0000CC";
google_color_text = "000000";
} else {
google_alternate_ad_url = "http://computerperformance.co.uk/ThemesGuy/cpx/cpx_160.htm";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text";
google_ad_channel ="7092371666";
google_color_border ="FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000CC";
google_color_url = "0000CC";
google_color_text = "000000";
}
//-->



Folder Redirection is one of the undiscovered gems amongst the myriad of Microsoft Group Policies. Firstly, configure the file locations of saved files and secondly, master folder redirection, the result will be greater efficiency for both you and your users.
Let us remind ourselves of where Microsoft Office programs save their files. By default, all Word and Excel files are directed to the My Documents folder. What do people do? In Word or Excel, they change the paths under Tools Menu, amend File Locations to point to their home directory. To complete the circle, the administrator must map a network drive to the user's home directory on the server. Perhaps now you can see what I mean by saving time? In one fell swoop, you can configure a Group Policy which redirects the My Documents to the server and forget about mapping network drives for home directories.
Windows Server 2003 Group Policy Topics
User Configuration
Windows Settings
Folder Redirection
Application Data
Desktop
My Documents
Start Menu
Application Data
What we are configuring here is client side caching. My view is that normally, clients can adequately cache their own programs locally. This Application Data setting is different from the Folder Redirection for the 'My Documents'. Perhaps caching is one of those Group Policies that you only need for laptops.
Let us move on to more important policies: Desktop and My Documents.
Troubleshooting Group Policies is tricky. As an MCT trainer, I can thoroughly recommend TrainSignal because they provide practical hands on training. In particular, I like the way TrainSignal cover all learning methods, instructor lead, video and of course text material. You can either take one module, for example Group Policy or go for a combination of modules. See more about Group Policy training here
Desktop
There is a knack to configuring all these 4 redirection settings. At first, it seems at first as though there are no policies in the container. However, if you right click one of the yellow folders, for example 'Desktop' and select Properties, then a rich selection of settings comes into view.
From the first menu, select Target, now drop down the Settings box and choose: 'Advanced' - Specify Location for various user groups'. Choose 'Advanced' where you want all people to whom this policy applies to have their own desktop. In real life the 'Basic' setting may be better for the Desktop, while 'Advanced is more appropriate for the 'My Documents' folder.
If you are organized, then you would have shared out the redirect folder on the server. However even if you haven't, you can still choose the group you intend to redirect. As you share out the folder on the server, so the path changes to the famous %UserName%. Permissions permitting, the subfolders are created automatically thanks to %UserName%.
My Documents
Whilst the 'My Documents' folder is probably the most import redirection setting, the principles are much the same as the previous folders. What I would like to concentrate on here is the Settings Tab.
Once again, in Windows Server 2003, Microsoft have thought of everything. What I particularly like is the control you have over moving the files, and there are even options for what do to if the policy is removed.
Finally, at the bottom you have decisions on what do about the My Pictures sub folder.
Start Menu
The start menu uses the same technology as the other folders. However, your strategy for the Start Menu is likely to be different from the strategy for Folder Redirection. Therefore, I suggest that for Start Menu settings that you point everyone in the group to the SAME folder on the Windows server. The tactic is then to fill this folder with Start Menu icons. There is no need for the %UserName% variable, instead why not give all the users in the group, the same Start Menu experience.
Where you have subfolders off the Start Menu, no worries, like well behaved children, they follow their parent folders automatically!

Geek to Live: Organizing "My Documents"

« next »
File Storage, digital media, discs, feature, geek to live, hard drives, organizing, top
by Gina Trapani
Last week we discussed how to organize your paperwork with a filing cabinet, some manila folders and a label maker. Today we're going to tackle that virtual yellow folder on your computer called "My Documents."
If your current file organization system works for you, congratulations. But if you frequently find yourself letting files clutter your computer's desktop, or if you spend time arranging files in a deep, complicated hierarchy of fine-grained folders, it's time for a revamp. Remember, with simplicity comes effortlessness. A few simple but flexible buckets can get your bits and bytes under control so you can spend less time moving files around and more time getting work done.
There are a million and one ways to arrange files and folders on disk. Some might argue that spending a moment even thinking about it in the age of desktop search is unnecessary. That may be true, but some semblance of order will clear your desktop and your mind and make you "ready for anything." Over the years I've come up with a six folder structure for "My Documents" which I create on every computer I use without fail. This scheme accommodates every file I might come across, keeps my desktop clear, smoothly fits in with an automated backup system and also makes command line file wrangling a breeze.
This is just one way that won't work for everyone, but there may be something here to help you get your digital documents under control. In alphabetical order, my six main folders are called: bak, docs, docs-archive, junkdrawer, multimedia and scripts. Here's a quick rundown of what each does and what it might contain.
bak
I spend a lot of time at the command line, so I always opt for shortened file names. In this case, bak is short for backup - but it isn't what you think. Your data backups will reside on external disks, but the bak folder holds application-specific exported backup data. For instance, your bak folder might contain your Firefox and Thunderbird MozBackup files (you backup before you install new extensions, right?), your Quicken file backup, your Address Book exported CSV, or a dump of your weblog's database.
docs
Docs is the big kahuna of all the six folders. It's the place where all the working files for your currently in-progress tasks, projects and clients go. Docs changes often and frequently, and should be purged often. I have many sub folders in docs, like "finance," "clients," and "creative-writing." The "clients" folder has sub folders too, like "lifehacker" and "kinja." That gets us 3 sub folders in, and that's usually as deep as I'm willing to go.
docs-archive
Your docs file should be purged of no longer "working" files frequently. "Closed" files - on a completed project, for a former employer, for past tax years - should go into your docs-archive. This archive exists just for reference and search, but the separate folder keeps all that extra stuff from cluttering up docs, which is basically your working task dashboard. The files in docs-archive don't change much if ever, and so you can back them up on a different (less frequent) schedule as a result.
junkdrawer
The junkdrawer (or temp, or tmp) is a temporary holding pen for files you're messing around with but don't need to save long-term. Firefox and Thunderbird should both save to junkdrawer by default for downloads and mail attachments. When I'm cropping and sharpening photos to upload, checking out a video or just testing out a script or program, into junkdrawer the files go. Files I decide I want to keep graduate from junkdrawer into docs; otherwise, the automated hard drive janitor I wrote about awhile back comes sweeping through and deletes anything older than 2 weeks from junkdrawer while I sleep.
multimedia
Here's where your music, video and photos folders go. In terms of managing your media within this folder, I'm generally content to let iTunes and Picasa take care of things. Of course your preference may vary, but the benefit of having all those space-hogging sound, video and image files under one multimedia umbrella parent folder is backup. Chances are your multimedia backup scheme will be different than your documents backup because of the lesser change frequency and the gigabytage required. Drop 'em all here in the multimedia folder and you're good to go. Keep in mind that sharing your media with a home web server works nicely with an overarching multimedia folder, too.
scripts
The scripts folder is where any executable script or shortcut lives. Here I keep my previously-mentioned weight logger and janitor scripts, any batch scripts and Windows shortcuts for quick launching programs.
A word about Windows' default home directory
As I said, I'm a big fan of short and to the point file paths. Windows' default user documents directory is something like: C:\Documents and Settings\Gina\My Documents\
To which I say, "For the love of all that is good and holy, why, Microsoft, why?"
I can appreciate human-readable folder names, but I do lots of command line work and scripting, and I don't ever want to have to remember to enclose my home directory path in quotes or remember the slashes to escape spaces. So to make things easier, I always change the home "My Documents" directory to c:\home\gina\. This consistently lowercase path sans spaces is much easier to type, remember and much more scriptable.
To change your documents directory in Windows, right-click on the "My Documents" icon. Under Properties, hit the Move button.

Choose the new location. Windows will politely ask if you'd like to move all your documents from the old location to the new one. Go ahead and do that if you need to.
Note about changing your home directory your documents directory: If you change your "My Documents" path, some dumb Windows applications will STILL think that the C:\Documents and Settings\blah... path is your home directory, so sometimes application data will get saved there. I figure this info can't be too important if the app couldn't figure out where the new home directory is, but it This is something worth keeping in mind.Update: Reader Helena points out that there is a difference between the home directory and the "My Documents" folder, which would explain why Windows apps would still save files to the original home directory. Looks like I'm the dumb one! Thanks, Helena!
Beyond the big 6
If you've read this far, then I'm going to let you in on a little secret: these aren't the only folders that live in my home directory. Being a programmer and web developer, if the workstation I'm on is a development machine, I also frequently work within a "code" folder and a "webserver" folder (the root of my Apache installation.) Also, many Windows applications take it upon themselves to create folders in "My Documents." Sometimes I leave 'em, other times I'll explicitly set where stuff gets saved - like my Trillian IM logs or Thunderbird mail archives location (docs and docs-archive, respectively.)
But enough about me. There must be strong feelings out there about filing versus piling and what the best folder structure is. So, lifehackers, show us your filing mojo. What does your "My Documents" look like? Why does it (or doesn't it) work for you? Let us know in the comments or at tips at lifehacker.com.
Gina Trapani, the editor of Lifehacker, enjoys a well-organized folder more than she should admit. Her semi-weekly feature, Geek to Live, appears every Wednesday and Friday on Lifehacker. Subscribe to the Geek to Live feed to get new installments in your newsreader.