Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-23
1
Medium Priority
?
400 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

971 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