{"id":73,"date":"2007-04-17T10:52:09","date_gmt":"2007-04-17T10:52:09","guid":{"rendered":"http:\/\/parkesy.wordpress.com\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/"},"modified":"2007-04-17T10:52:09","modified_gmt":"2007-04-17T10:52:09","slug":"change-mail-redirection-in-vbscript-exchange-2003","status":"publish","type":"post","link":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/","title":{"rendered":"Change Mail Redirection in VBScript &#8211; Exchange 2003"},"content":{"rendered":"<p>Was doing some housekeeping and came across a script i thought i&#8217;d share<\/p>\n<p>We had a customer who had a general\u00a0information style email address (<a href=\"mailto:info@blahdomain.com\">info@blahdomain.com<\/a>) that due to job sharing two different people were responsible for checking the email and replying. To add to this these people were external to the organisation. They wanted the email to be re-directed to their own email addresses (i did suggest that they just use Outlook Web Access and share a mailbox but they weren&#8217;t interested!)<\/p>\n<p>So i created two external contacts and re-directed the email to the user. However this wasn&#8217;t something i wanted to be doing myself a couple of times as week as the responsibility changed and i didn&#8217;t trust the users!<\/p>\n<p>So i created a script that ran on a scheduled task to make the change. I found it incredibily difficult to find anything out about this method at the time so here it is<br \/>\n<em>&#8216; Change this name to alter re-direction<br \/>\nstrUserName=&#8221;Parkesy&#8221;<\/em><\/p>\n<p><em>Set objUser = GetObject (&#8220;LDAP:\/\/cn=INFOUSER,ou=AP Users,dc=blahdomain,dc=local&#8221;)<br \/>\nobjUser.Put &#8220;altRecipient&#8221;, &#8220;cn=&#8221; &amp; strUserName &amp;  &#8220;,ou=AP  Users,dc=blahdomain,dc=local&#8221;<br \/>\nobjUser.Put &#8220;DeliverandRedirect&#8221;, True<br \/>\nobjUser.SetInfo<\/em><\/p>\n<p>I&#8217;ve trimmed the code down for display but all it does is find the &#8220;Info User&#8221;, reset the &#8220;Alt Recipient&#8221; and &#8220;Deliver and Redirect&#8221; properties, and\u00a0persist the changes\u00a0<\/p>\n<p>I created two copies of this and setup a scheduled task to make the switch<\/p>\n<p>It seemed to work quite well but eventually the stopped the job share and it became an internal users responsibility and the script got &#8220;retired&#8221;<\/p>\n<p>Hope it is of use to someone else<\/p>\n<p>I used this script on an Exchange 2003 box. I haven&#8217;t tested it on an Exchange 2000 box but can&#8217;t see an inital reason for it not to.<\/p>\n<p><strong>Use the code as you see fit but i take no responsibility for anything that may occur due to it&#8217;s usage (blah blah blah!)<\/strong><\/p>\n<p>*-* Slight Update *-*<\/p>\n<p>Going through some posts i hadn&#8217;t gotten around to reading and saw this post <a target=\"_blank\" href=\"http:\/\/uksbsguy.com\/blogs\/doverton\/archive\/2007\/04\/12\/how-to-configure-sbs-exchange-to-forward-or-duplicate-mails-to-an-external-e-mail-address.aspx\" title=\"Forward to External Address\">from Dave Overton<\/a>\u00a0which links to a tutorial on <a target=\"_blank\" href=\"http:\/\/www.msexchange.org\/tutorials\/MF015.html\" title=\"Tutorial on MS Exchange.org\" class=\"broken_link\">MSExchange.org<\/a>\u00a0which talks about how to set all this up. My post assumes this is all in place<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Was doing some housekeeping and came across a script i thought i&#8217;d share We had a customer who had a general\u00a0information style email address (info@blahdomain.com) that due to job sharing two different people were responsible for checking the email and replying. To add to this these people were external to the organisation. They wanted the<\/p>\n<p><a class=\"readmore\" href=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\"><span class=\"arrow-right icon\"><\/span>Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[13,42],"tags":[],"class_list":["post-73","post","type-post","status-publish","format-standard","hentry","category-exchange-2003","category-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog\" \/>\n<meta property=\"og:description\" content=\"Was doing some housekeeping and came across a script i thought i&#8217;d share We had a customer who had a general\u00a0information style email address (info@blahdomain.com) that due to job sharing two different people were responsible for checking the email and replying. To add to this these people were external to the organisation. They wanted theRead More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\" \/>\n<meta property=\"og:site_name\" content=\"Andy&#039;s Techie Blog\" \/>\n<meta property=\"article:published_time\" content=\"2007-04-17T10:52:09+00:00\" \/>\n<meta name=\"author\" content=\"Andy Parkes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andy Parkes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\",\"url\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\",\"name\":\"Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog\",\"isPartOf\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#website\"},\"datePublished\":\"2007-04-17T10:52:09+00:00\",\"dateModified\":\"2007-04-17T10:52:09+00:00\",\"author\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d\"},\"breadcrumb\":{\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/andyparkes.co.uk\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Change Mail Redirection in VBScript &#8211; Exchange 2003\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#website\",\"url\":\"https:\/\/andyparkes.co.uk\/blog\/\",\"name\":\"Andy&#039;s Techie Blog\",\"description\":\"Professional Geek\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/andyparkes.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d\",\"name\":\"Andy Parkes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g\",\"caption\":\"Andy Parkes\"},\"description\":\"Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. Formerly, coordinator of AMITPRO and Microsoft Partner Area Lead for 2012-2013. He also isn't a fan of describing himself in the third person.\",\"sameAs\":[\"http:\/\/www.andyparkes.co.uk\/blog\"],\"url\":\"https:\/\/andyparkes.co.uk\/blog\/index.php\/author\/andyparkes\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/","og_locale":"en_US","og_type":"article","og_title":"Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog","og_description":"Was doing some housekeeping and came across a script i thought i&#8217;d share We had a customer who had a general\u00a0information style email address (info@blahdomain.com) that due to job sharing two different people were responsible for checking the email and replying. To add to this these people were external to the organisation. They wanted theRead More","og_url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/","og_site_name":"Andy&#039;s Techie Blog","article_published_time":"2007-04-17T10:52:09+00:00","author":"Andy Parkes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andy Parkes","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/","url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/","name":"Change Mail Redirection in VBScript - Exchange 2003 - Andy&#039;s Techie Blog","isPartOf":{"@id":"https:\/\/andyparkes.co.uk\/blog\/#website"},"datePublished":"2007-04-17T10:52:09+00:00","dateModified":"2007-04-17T10:52:09+00:00","author":{"@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d"},"breadcrumb":{"@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/andyparkes.co.uk\/blog\/index.php\/2007\/04\/17\/change-mail-redirection-in-vbscript-exchange-2003\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/andyparkes.co.uk\/blog\/"},{"@type":"ListItem","position":2,"name":"Change Mail Redirection in VBScript &#8211; Exchange 2003"}]},{"@type":"WebSite","@id":"https:\/\/andyparkes.co.uk\/blog\/#website","url":"https:\/\/andyparkes.co.uk\/blog\/","name":"Andy&#039;s Techie Blog","description":"Professional Geek","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/andyparkes.co.uk\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/3534e8ac6b1bec765cd061feff56679d","name":"Andy Parkes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/andyparkes.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3824cbf53df51d7ca5cf809b6ad81a157fbfff2292e36ab8666f04ddad06bfcc?s=96&d=mm&r=g","caption":"Andy Parkes"},"description":"Andy Parkes is Technical Director at Coventry based IT support company IBIT Solutions. Formerly, coordinator of AMITPRO and Microsoft Partner Area Lead for 2012-2013. He also isn't a fan of describing himself in the third person.","sameAs":["http:\/\/www.andyparkes.co.uk\/blog"],"url":"https:\/\/andyparkes.co.uk\/blog\/index.php\/author\/andyparkes\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pmvJ6-1b","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts\/73","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=73"}],"version-history":[{"count":0,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/posts\/73\/revisions"}],"wp:attachment":[{"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=73"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=73"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andyparkes.co.uk\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=73"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}