Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map a network share with no logon

Status
Not open for further replies.

theravager

Technical User
Jan 2, 2008
404
TW
Anybody know how i can map a network share without a user being logged onto a server on 2003 server.

I would like to do it without writing a service.

Its for a old legacy application to access a drive path as it cant use unc paths and i really don't want to have an account logged in permanently using a terminal services session.
 
You could use Scheduled tasks and have the script that maps the drive run at system startup. This way if the system is booted it will map the drive when it the server comes up with no one logged in.



RoadKi11

"This apparent fear reaction is typical, rather than try to solve technical problems technically, policy solutions are often chosen." - Fred Cohen
 
I would be happy to be proven wrong Roadki11, but I don't think that advice will work. Mapping of a network drive requires a user session.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
I found a solution which seems to work.

There is a utility called autoexnt which runs as a service and executes a batch file which you can use to map a drive without a active server session.

Interesting enough the mapped drive shows as a default drive letter $ share in shares the same as a local disk though you can't map to it.

 
Sounds like an interesting utility. Where did you get it from?

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Well as a proof of concept i did a quick test with the following batch file executed with scheduled tasks at system startup with domain admin credentials and it executed as expected.

Code:
net use O: \\server\share /user:domain\administrator password /persistent:no
copy /y nul O:\file.txt
exit

However it sounds like he has an alternate probably better method to accomplish what he wants.



RoadKi11

"This apparent fear reaction is typical, rather than try to solve technical problems technically, policy solutions are often chosen." - Fred Cohen
 
You proved both of our points Roadki11. The script you used mapped the drive using the administrator's credentials. That drive letter would be unavailable to anyone logging onto the server unless they were logged on as administrator. The drive isn't mapped at the computer level but at the user level.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top