Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Outlook script not working
Hi,
We have a Outlook script (.vbs) file which gets some variables from Active Directory like the name, telephone number and department. Some text lines are always the same. This scriptfile has always run thru Group Policy when a user logs on to the client. Problem arrises when users working from home so when they boot up the client there is no active directory present. They log in to the client and then make a vpn connection to the company.
So i changed the starting of the script to a schedule run every day at 9 oclock. Problem now is that many users do not have the variables in Outlook signature before the script runs. So when they start Outlook and make a new email only the text that are not retrieved from active directory is in the signature.
Normally i would say that is logic, active directory is not available at the time the client logs in but why are the variables out of the signature every day, when the script runs and the domain controller is reachable it fills in the variablen and they stay there until the client restarts and the domain controller is not present it disappears, why is that and how to solve it?