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
224 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 82

Expert Comment

by:oBdA
Comment Utility
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
Comment Utility
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 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

744 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

16 Experts available now in Live!

Get 1:1 Help Now