Solved

Net use with a service account

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

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
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…

828 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