Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Net use with a service account

Posted on 2013-01-30
3
Medium Priority
?
348 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
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.
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 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.

636 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