• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

VB scripting Active Directory user profile properties

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?
1 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now