Solved

run a file which is on a file server share when the machine is not joined to the domain

Posted on 2009-07-01
3
227 Views
Last Modified: 2012-05-07
I want to run a file which is on a file server share when the machine is not joined to the domain, although it is connected to the network. this is to run in a batch file. how can i do this?
0
Comment
Question by:resolver1
  • 2
3 Comments
 
LVL 84

Expert Comment

by:oBdA
ID: 24752687
You'll need to map a drive to the share with a user account either in the domain that the file server is in, or with a local user account on the file server.
If mapping from Explorer, click the link "Connect with another account"; from a command prompt, use
net use \\server\share * /user:<SomeUser>
To connect with the a domain user, use
DOMAIN\username
as user name, to connect with a local account on the file server, use only the account name. If the file server happens to be a DC, you can use the account name without the domain as well.
0
 

Author Comment

by:resolver1
ID: 24769385
i don't want the batch file to contain any passwords.  I'm concerned with users retrieving the batch file (along with the passwords) after the files have been deleted.  is there a solution where i can do this without passwords being stored?  
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 24770396
The * will ask the user to enter his password when the drive is mapped.
If the server isn't joined to the domain, you'll need local accounts on the server to access them and users will have to provide these credentials. Passthrough authentication will only be possible if you have the same accounts with the same passwords on the stand-alone server as in AD.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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