I need to create a specific batch file that does the following.
Pings an IP for 120 seconds
After the timeout it checks with which username I am logged in and it contacts the Domain Controller and gets the logon script dedicated to that user from the field “scriptpath” from the AD properties and runs that logon script dedicated for that particular user.
All this is needed since we have a particular security software installed and we need this workaround. This software disconnects the network on start-up for 2 minutes and logs in with a cached password. After the 2 minutes we would like to run the logon script so that it maps the mapped drives for the user. The first batch file will be placed in the start-up folder of each machine.
I cannot use local GPO or Server GPO since on startup there will be no connectivity to the domain but just after 2 minutes.
Can you please assist?