Have you looked at the ready-made script in the vault for creating Outlook signatures?

The lines
 Code:
$sPhoneNumber	= ADSIUserInfo($UserDN, 'telephoneNumber')
$sFaxNumber	= ADSIUserInfo($UserDN, 'FacsimileTelephoneNumber')
$sCellNumber	= ADSIUserInfo($UserDN, 'Mobile')
could be replaced with
 Code:
If InGroup('groupname')
  $sPhoneNumber	= ADSIUserInfo($UserDN, 'telephoneNumber')
Else
  $sPhoneNumber	= ADSIUserInfo($UserDN, 'Mobile')
EndIf
$sFaxNumber	= ADSIUserInfo($UserDN, 'FacsimileTelephoneNumber')
which would display one or the other. Similarly, you could blank the $sPhoneNumber or $sCellNumber depending on which one you did not want to display. The default (as written) logic displays only the numbers that are defined in AD. A line in the template "Cell: &CellPhone&" would display the word "Cell:" only if the variable contained data. No cell number in AD, no Cell: line in the sig. Note that this example changes the variable definition sequence so the main and cell numbers are in the If logic, moving the fax number to after the If logic.

Also, the script in the vault has no dependency on MS-Office/MS-Word. It will work with any Outlook version and any mail server.

Glenn


_________________________
Actually I am a Rocket Scientist! \:D