MikkoPuhakainen Just popping in
Joined: 26 Mar 2008 Posts: 1
|
| Posted: Mon May 10, 2010 7:51 am Post subject: Deployment in login script when valid profile exists. |
|
|
We made the profile checking in the beginng of the login script.
1. First we check if the signature has already been applied to a user
2. If it is not, then we check if user has the Outlook profile folder. This means that user has opened the Outook at least once.
3. If those both are true, then the signature is being applied.
4. In the end we create the check file in the users hard drive which means that the script doesn't apply anymore.
Sample:
...
if exist \\path\%username%_signature.txt goto end
if not exist "%USERPROFILE%\Application Data\Microsoft\Outlook\*.*" goto end
\\SERVER\netlogon\sign.exe Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\server\share\settings.mdb
echo Signature created %date% %time% >\\path\%username%_signature.txt
end
... |
|