VB scripting Active Directory user profile properties

Posted on 2004-11-29
Last Modified: 2008-03-10
I need to use a VB script to map the users home folder. The home folder path is located in the user profile in Active Directory (2000 native) and is automatically mapped at logon. However I need to do a script that maps this drive without the user doing a full domain logon (connecting the computer to the network when already logged on). How do I get this information in a VB script?
Question by:vigge79
    1 Comment
    LVL 82

    Accepted Solution

    If batch would batch do it as well, it's a single line (unless you want to do some error or server checking as well):
    @if not exist %HomeDrive% net use %HomeDrive% %HomeShare%

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
    The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    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…

    733 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

    21 Experts available now in Live!

    Get 1:1 Help Now