Run script after domain logon

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I run a .cmd script after I have logged on to the domain. If I put it
in autostart it seems to start after the domain script.

In short our IT maps network drives that we don't need, and therefore I have
created my own mapping script which fix this for me.

regards
alex
 
AeS said:
How can I run a .cmd script after I have logged on to the domain. If I put it
in autostart it seems to start after the domain script.

In short our IT maps network drives that we don't need, and therefore I have
created my own mapping script which fix this for me.

regards
alex

"Autostart"? Do you perhaps mean the Startup folder?

You can put the following batch file into your startup
folder:

@echo off
echo Waiting for the domain logon script to end
:again
dir s:\ 1> nul 2>nul || goto MapDrives
ping localhost -n 60 > nul
goto again

:MapDrives
ping localhost -n 10 > nul
net use s: \\MyServer\MyShares

The batch file assumes that the domain logon script maps
drive S: to some share.
 
Back
Top