Solved

Net use with a service account

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now