none
Exchange 2007 Change OWA signature programmatically RRS feed

  • Question

  • Hello Everyone,

    For Exchange 2010 I can use the EWS for updating the OWA signature, for Exchange 2003 it's possible to change the OWA signature using WebDAV by changing the 'signaturehtml' and 'signaturetext' property.

    Only on Exchange 2007 I can't find a way of changing the value.
    I mannaged to receive the x7C070102 property that contains the IPM.Configuration.OWA.UserOptions in Base64 encryption by using WebDAV SEARCH.

    <?xml version="1.0"?>
     <g:searchrequest xmlns:g="DAV:">
     <g:sql>
     SELECT "http://schemas.microsoft.com/mapi/proptag/x7C070102"
     FROM scope('deep traversal of "https://server/exchange/user@domain.local/non_ipm_subtree/"')
     WHERE
     "DAV:ishidden" = True AND
     "DAV:isfolder" = False AND
     "http://schemas.microsoft.com/exchange/outlookmessageclass" = 'IPM.Configuration.OWA.UserOptions'
     </g:sql>
     </g:searchrequest>
    

     

    Is there a way of changing the values? Can I use WebDAV our should I use another method?

    Best Regards

    Saturday, June 4, 2011 11:02 AM

Answers

  • Yes you can use a WebDAV Proppatch to set that property your accessing if you decode the Base64 you should be able to extract the underlying XML that contains the configuration information and can then modify it re-encode it and then update it using Webdav.

    Cheers
    Glen

    • Marked as answer by esselink Monday, June 6, 2011 2:14 PM
    Monday, June 6, 2011 11:41 AM

All replies

  • Yes you can use a WebDAV Proppatch to set that property your accessing if you decode the Base64 you should be able to extract the underlying XML that contains the configuration information and can then modify it re-encode it and then update it using Webdav.

    Cheers
    Glen

    • Marked as answer by esselink Monday, June 6, 2011 2:14 PM
    Monday, June 6, 2011 11:41 AM
  • Thank you for the reply, Glen.
    I tried an Proppatch with the edited property, see below.
    <?xml version="1.0"?>
    <a:propertyupdate xmlns:a="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" xmlns:cc="urn:content-classes:" xmlns:c="XML:" xmlns:d="http://schemas.microsoft.com/exchange/">
     <a:set>
     <a:prop>
      <d:x7C070102 b:dt="bin.base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGlu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zQ4MzY0NiIgLz4NCiAgPC9EYXRhPg0KPC9Vc2VyQ29uZmlndXJhdGlvbj4NCg==</d:x7C070102>
     </a:prop>
     </a:set>
    </a:propertyupdate>
    
    I receive a HTTP 200:
    <?xml version="1.0"?>
    <a:multistatus xmlns:b="http://schemas.microsoft.com/exchange/" xmlns:a="DAV:">
     <a:response>
     <a:href>https://server/exchange/user@domain.local/NON_IPM_SUBTREE</a:href>
     <a:propstat>
      <a:status>HTTP/1.1 200 OK</a:status>
      <a:prop>
      <b:x7C070102/>
      </a:prop>
     </a:propstat>
     </a:response>
    </a:multistatus>
    
    
    Only when I login on OWA the signature is not changed.
    Am I updating the wrong property?

    After some testing I mannaged to set the value, so problem solved!
    Monday, June 6, 2011 12:16 PM
  • Hello Esselink,

    Got the same problem as you have. I get HTTP/1.1 200 OK but signature is not update. Can you pleas give me a hint in what direction you found the answer ?

    Thanks in advance,

    Jan

    Monday, August 22, 2011 3:06 PM
  • esselink,

    This post has really helped me. I too got HTTP 200 OK, but OWA never updates with new value. How did you solve your problem?

    Thanks.

    Tuesday, February 7, 2012 3:12 AM