Solved

Net use with a service account

Posted on 2013-01-30
3
326 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 500 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

Join & Write a Comment

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

760 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

17 Experts available now in Live!

Get 1:1 Help Now