MAC-DUFF Posted January 22, 2006 Posted January 22, 2006 Hi,I want to run a batch script before windows login and there I found theses program AutoExNT which works very well when the batch file is located on the same pc. But if u have a lot of pc u dont want to change it on every pc when thers a mutation. So, Ill put in these script a link to a server with a other batch script. So far so good. But the problem is, that the pc cant authenticate on the server because nobody is still loged in. So I thougt to myself, at first u make a "net use" command, then the batch script which is located on the server and to the end u delete the networkconnection again.But then after if the user logs in, the networkdrive'll still avaible.Well, I need a other possibilty to authenticate before windows login I hope u unterstand my broken english and someone can help me
Sonic Posted January 24, 2006 Posted January 24, 2006 Post your batch with net use for connect and for deconnect ... I think it's possible to really disconnect any connection at the end of your first batch.
MAC-DUFF Posted January 25, 2006 Author Posted January 25, 2006 hi, my batch scripts looks like this:net use * \\ 192.168.1.101\autoexnt$ /user:test.um\administrator 1 \\ 192.168.1.101\autoexnt$\dothis.batnet use * /d /yesin the dothis.bat is only a copy command which worksthe crazy think is, sometimes it ll be disconnected and sometimes not
Sonic Posted January 27, 2006 Posted January 27, 2006 (edited) add a small wait time before net use * /d /yes ... and force to switch to %systemdrive% ... echo Closing connections ...cd /d %SystemDrive%ping 127.0.0.1 >NULnet use * /DELETE /YES Edited January 27, 2006 by sonic
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