venim Posted June 27, 2004 Share Posted June 27, 2004 Hello all,I need to have some network shares mapped on win2k box without login, ie usingthe net command in autoexec.bat fashion.Anyone ? Link to comment Share on other sites More sharing options...
catwalker63 Posted June 27, 2004 Share Posted June 27, 2004 You'll have to login to map drives.Create a batch file and put it in the startup folder.net use x: \\computername\sharenameI'd also start the batch file with a deletenet use x: /deleteOr modify the original net use with a /persistant:nonet use x: //computername/sharename /persistant:noYou could also put the batch file somewhere handy and just run it when you need it.Hope this helps. Good luck! Link to comment Share on other sites More sharing options...
venim Posted June 28, 2004 Author Share Posted June 28, 2004 Anyone knows how to run bat scripts WITHOUT login in?Sth like a service ? Link to comment Share on other sites More sharing options...
/\/\o\/\/ Posted July 2, 2004 Share Posted July 2, 2004 You can use SRVANY (resource kit) for running a batch script without a user.but you can not use that to set Drivemappings because this are user settings.so you will have to have a userprofile loaded to set a (usefull) mapping(setting a mapping for the serviceaccount is not wat you want I think)gr /\/\o\/\/ Link to comment Share on other sites More sharing options...
MadGutts Posted July 8, 2004 Share Posted July 8, 2004 I doubt what you want to do is possible.Why do you want to map shares before login anyway?The whole point of logging in is so that the windows security knows if you are allowed access or not. Until you actually login, the server will only supply DHCP info, and a netlogon anyway. Someone please correct me if i'm wrong, but i cant see a way of creating a connection to a share that wouldn't exist until authentication and permision is granted.A way round it is for the client pc to auto login, bu then you have no security unless you tie down the rights.Hope this is of some help... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now