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
230 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
[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 85

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 85

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

627 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