?
Solved

Net use with a service account

Posted on 2013-01-30
3
Medium Priority
?
353 Views
Last Modified: 2013-02-04
Hi,

I've got 2 Active directory domain, without trust, let's say domain A and domain B.

I've got a service account on domain A, running on Machine A

The service account A must access a share folder on domain B.

How can I map a netuse share, with credential of domain B (another service account in domain B) in the service A session context ?

It must be persistant.

Thanks.
0
Comment
Question by:mathias94
  • 2
3 Comments
 
LVL 6

Assisted Solution

by:sr1xxon
sr1xxon earned 1500 total points
ID: 38835629
you need to create a one-way trust between domain a and domain b.

or

create credentials on domain b - in the net use, use
net use z: \\server\share user:/domainb\username /persistent:yes <pwd>

put this into a startup file if you need it persistent across reboots, without prompting for password.
0
 

Accepted Solution

by:
mathias94 earned 0 total points
ID: 38835678
Finally a used the credentials manager, it works.
but the script is another solution.

Thanks.
0
 

Author Closing Comment

by:mathias94
ID: 38850436
Credentials manager ok
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

830 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