Solved

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

Posted on 2011-03-23
1
383 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

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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 configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

747 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

13 Experts available now in Live!

Get 1:1 Help Now