GPO: help to create %username% folder at logon with correct DACL and offline folder settings.

Posted on 2007-07-24
Last Modified: 2008-06-23
Windows 2003 server native mode network with approx 100 users. We have a new storage server, and I would like to use a gpo (not folder redirection) that will automatically create a folder based on %username% if it doesn't already exist. If it does exist, map to it and also use offline Folder Settings. I have a script set up using "Net Use h: \\server\users\$username%" but the folders are not automatically created at logon if they don't exist. I think I need correct DACL settings on the "users" folder.  I don't want to have to manually create 100+ user folders.
I would like for the network admin/backup operator to have access to these files along with the user that created them. The CEO does not want me to use "My Documents" folder redirection, but essentially that's what I need to do with an "H:" folder.
Question by:mscholle
    LVL 10

    Accepted Solution

    This will create the folder if don't exists

    if NOT EXIST \\server\users\%username% (
      md \\server\users\%username%

    Net Use h: \\server\users\%username%

    I think is better if you create the folders with the appropriate permissions using a script. Now you must let your users create folders in \\server\users so they can go there and create other folders if they want.


    Author Comment

    Okay, that answers the part of the question with regards to creating the folders. However, how should I configure the DACL so only the admin/backupOperator/creator can access, and also, is it possible to automatically enable offline folders with this technique?

    LVL 10

    Expert Comment

    by:Walter Padrón
    For the ACL part the permissions must be something like this

    Administrators or Domain Admins - Full Control
    SYSTEM - Full Control
    yourusername - Read & Execute, Write
    Backup Operators -  Read, Write

    I will take a look to the Offline folders conf


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    The 6120xp switches seem to have a bug when you create a fiber port channel when you have a UCS fabric interconnects talking to them.  If you follow the Cisco guide for the UCS, the FC Port channel will never come up and it will say that there are n…
    More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now