Results 1 to 9 of 9

Thread: Mapping a drive to an OU

  1. #1
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    Does anyone know how to map a Network drive to an OU using GP? It's easily done to a user under the "profile" tab but, I can't seem to figure out how to do it for the whole OU?

  2. #2
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    Could you not use a logon script?

  3. #3
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    I would suppose a logon script would work well, I don't have any experience in that dept and my assistant is away for 2 weeks who does know scripts... Thx

  4. #4
    DennisT is offline 10+ Helpful Posts 20+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    28

    Default

    net use [drive]: \\server\sharename /Yes /Persistent:yes

  5. #5
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    DennisT, good command, still trying to get it to work with the GP though? I tried it on the workstation and voila, there is my mapped drive. When I put it in a GP logon script, no drive? Thx

  6. #6
    DennisT is offline 10+ Helpful Posts 20+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    28

    Default

    You'll probably have to embed it in a batch script for it to work in a logon script. Create a file, IE logon.bat, and enter that command in it. Then enter the batch script into your GPO.

  7. #7
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    Got it! Thx. Next, it seems to work in XP but not Vista Buisness, but that may be another issue for another time. Thx again!

  8. #8
    PreviousPoster is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    1,254

    Default

    scratch the last post, it works across the boards. Thx

  9. #9
    AdamV is offline 100+ Helpful Posts! 50+ Helpful Posts
    Join Date
    Dec 1969
    Posts
    669

    Default

    <edit> I just saw your other post about this, so added this info:
    If you do not already have the folders created and do not want to create them all with a script, then the best place to do this is in the AD properties which will create the folder when the user logs on if it does not already exist. NB: It will not create a share so you have to create a share and let it make folders inside that. </edit>

    If you are just trying to set a single drive for each user using the "home drive" properties, then you could simply change this in AD for a whole OU using DSMod, based on output from a DSQuery command.

    See this tutorial for details about DSMod and DSQuery, including a specific example of how to do this for homedrive path:
    Quote Originally Posted by VeroBlog
    dsquery user “OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com” | dsmod user -hmdir \\internal\DfsRoot\homes\$username$ -hmdrv u:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Friendly URLs by vBSEO