Solved

VB Script to Map a Hidden Network Share in a Different Domain

Posted on 2011-03-23
1
393 Views
Last Modified: 2012-05-11
Hello,

I am trying to write a VB logon script for specific users in my domain to map to a hidden network share in a different domain.  When I try to reference the hidden share in my script the conventional way.

WSHNetwork.MapNetworkDrive "i:", "\\Server\D$"

It errors out.  This is because I must reference the other domain somehow in the script.  The usernames and passwords match in both domains, but the UPN prefix is obviously different.  Any help would be greatly appreciated.  
0
Comment
Question by:Techop09
1 Comment
 
LVL 65

Accepted Solution

by:
RobSampson earned 250 total points
ID: 35203264
Hi, try specifying the username and password manually, to see what happens:
http://msdn.microsoft.com/en-us/library/8kst88h6(v=vs.85).aspx

WSHNetwork.MapNetworkDrive "i:", "\\Server\d$", False, "domain\username", "password"

Regards,

Rob.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

790 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