I currently have a logon bat script that runs (maps network drives, etc) that also calls a VBS script to configure user's email signatures. This VBS script is a life saver to automatically configure email signatures (Outlook 2016) so everyone in our company has the same one.
Is there a way either in the bat file originally or in the VBS script, to only run if the user has a mail attribute configured in AD? We have a few users that don't have mail configured and the script end up launching Outlook for them every time as part of configuring an email signature for them. Doing this in PowerShell would be pretty simple but I'm not sure how to do it in a bat or VBS.