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
226 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 83

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 83

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

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

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

770 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