{"id":1667,"date":"2011-05-23T14:04:33","date_gmt":"2011-05-23T22:04:33","guid":{"rendered":"http:\/\/www.bhargavs.com\/?p=342"},"modified":"2011-05-23T14:04:33","modified_gmt":"2011-05-23T22:04:33","slug":"exchange-team-blog-mobile-and-powershell-error-handling","status":"publish","type":"post","link":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/","title":{"rendered":"Exchange Team Blog Mobile and PowerShell Error Handling"},"content":{"rendered":"<p>I admit the two topics don\u2019t have anything in common except both has something to do with me. That\u2019s why they are both being talked about in same post!<\/p>\n<p>So If you haven\u2019t caught up on this yet, I created a Windows Phone App for the <a href=\"http:\/\/www.msexchangeteam.com\" target=\"_blank\" rel=\"noopener noreferrer\">Exchange Team Blog<\/a>. I am trying to ramp up on little bit of WP7 programming so I can create some apps for my use and possibly to publish it on marketplace for others to benefit from it. What could be better than creating one for my favorite blog? You can read more about the announcement and link to the app <a href=\"http:\/\/blogs.technet.com\/b\/exchange\/archive\/2011\/05\/13\/announcing-a-windows-phone-app-for-the-exchange-team-blog.aspx\">here<\/a>. Feel free to leave feedback there or here and I will respond as time allows.<\/p>\n<p>On the next topic. When I was rating scripts in <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/02\/19\/2011-scripting-games-all-links-on-one-page.aspx\">2011 Scripting Games<\/a>, I noticed one common thread in almost all beginner scripts. They all were missing error handling. There was no regard to user experience or tendency to handle errors so that the script has greater chance to succeed and when it doesn\u2019t, use has better information on what went wrong. I discussed this with Ed Wilson (That\u2019s \u201cThe Scripting Guy\u201d in case you didn\u2019t know!) and he asked me if I can write an article about it. I gladly accepted. The article was published on May 12th but I didn\u2019t get chance to let my readers know on this blog. So here it is. You can read the <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/05\/12\/powershell-error-handling-and-why-you-should-care.aspx\">article<\/a> on <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hey, Scripting Guy blog<\/a>.<\/p>\n<p>I decided to make it beginner friendly as I figured they are the ones who can benefit the most from what I saw when rating the scripts. It was so much to write than can fit in a single article. So we have decided to make it a series of articles on <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hey, Scripting Guy blog<\/a>. Look forward to more articles in series in coming weeks.<\/p>\n<p>Originally posted at http:\/\/blogs.technet.com\/bshukla<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I admit the two topics don\u2019t have anything in common except both has something to do with me. That\u2019s why they are both being talked about in same post! So [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pgc_sgb_lightbox_settings":"","_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":[19,23],"tags":[212,232],"class_list":["post-1667","post","type-post","status-publish","format-standard","hentry","category-powershell","category-scripting-games","tag-powershell","tag-scripting-games"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground<\/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:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground\" \/>\n<meta property=\"og:description\" content=\"I admit the two topics don\u2019t have anything in common except both has something to do with me. That\u2019s why they are both being talked about in same post! So [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/\" \/>\n<meta property=\"og:site_name\" content=\"Bhargav&#039;s IT Playground\" \/>\n<meta property=\"article:published_time\" content=\"2011-05-23T22:04:33+00:00\" \/>\n<meta name=\"author\" content=\"Bhargav\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bhargav\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/\"},\"author\":{\"name\":\"Bhargav\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"headline\":\"Exchange Team Blog Mobile and PowerShell Error Handling\",\"datePublished\":\"2011-05-23T22:04:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/\"},\"wordCount\":336,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"keywords\":[\"PowerShell\",\"Scripting-Games\"],\"articleSection\":[\"PowerShell\",\"Scripting-Games\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/\",\"url\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/\",\"name\":\"Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#website\"},\"datePublished\":\"2011-05-23T22:04:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/index.php\\\/2011\\\/05\\\/23\\\/exchange-team-blog-mobile-and-powershell-error-handling\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bhargavs.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Exchange Team Blog Mobile and PowerShell Error Handling\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#website\",\"url\":\"https:\\\/\\\/bhargavs.com\\\/\",\"name\":\"Bhargav's IT Playground\",\"description\":\"Passion for Technology. Power of Collaboration.\",\"publisher\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bhargavs.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/28f6d8c9b29f3a879483d65fc2ab5e26\",\"name\":\"Bhargav\",\"logo\":{\"@id\":\"https:\\\/\\\/bhargavs.com\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/bhargavs.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground","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:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/","og_locale":"en_US","og_type":"article","og_title":"Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground","og_description":"I admit the two topics don\u2019t have anything in common except both has something to do with me. That\u2019s why they are both being talked about in same post! So [&hellip;]","og_url":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/","og_site_name":"Bhargav&#039;s IT Playground","article_published_time":"2011-05-23T22:04:33+00:00","author":"Bhargav","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bhargav","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/#article","isPartOf":{"@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/"},"author":{"name":"Bhargav","@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"headline":"Exchange Team Blog Mobile and PowerShell Error Handling","datePublished":"2011-05-23T22:04:33+00:00","mainEntityOfPage":{"@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/"},"wordCount":336,"commentCount":0,"publisher":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"keywords":["PowerShell","Scripting-Games"],"articleSection":["PowerShell","Scripting-Games"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/","url":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/","name":"Exchange Team Blog Mobile and PowerShell Error Handling - Bhargav&#039;s IT Playground","isPartOf":{"@id":"https:\/\/bhargavs.com\/#website"},"datePublished":"2011-05-23T22:04:33+00:00","breadcrumb":{"@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bhargavs.com\/index.php\/2011\/05\/23\/exchange-team-blog-mobile-and-powershell-error-handling\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bhargavs.com\/"},{"@type":"ListItem","position":2,"name":"Exchange Team Blog Mobile and PowerShell Error Handling"}]},{"@type":"WebSite","@id":"https:\/\/bhargavs.com\/#website","url":"https:\/\/bhargavs.com\/","name":"Bhargav's IT Playground","description":"Passion for Technology. Power of Collaboration.","publisher":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bhargavs.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/28f6d8c9b29f3a879483d65fc2ab5e26","name":"Bhargav","logo":{"@id":"https:\/\/bhargavs.com\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/bhargavs.com"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1670,"url":"https:\/\/bhargavs.com\/index.php\/2011\/08\/22\/microsoft-exchange-2010-powershell-cookbook-review\/","url_meta":{"origin":1667,"position":0},"title":"Microsoft Exchange 2010 PowerShell Cookbook Review","author":"Bhargav","date":"August 22, 2011","format":false,"excerpt":"Disclaimer: I am not paid to write about this book and the review written here is my own view. I was recently contacted by Packt Publishing about their recently published book \u201cMicrosoft Exchange 2010 PowerShell Cookbook\u201d. I have voluntarily reviewed books in the past (i.e. Windows Server 2003 Security: A\u2026","rel":"","context":"In &quot;Exchange 2010&quot;","block_context":{"text":"Exchange 2010","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2010\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1663,"url":"https:\/\/bhargavs.com\/index.php\/2011\/04\/24\/every-good-thing-must-come-to-an-end\/","url_meta":{"origin":1667,"position":1},"title":"Every good thing must come to an end\u2026","author":"Bhargav","date":"April 24, 2011","format":false,"excerpt":"And before you get a shock from the title, let me clarify, all I am talking about is PowerShell Scripting Games 2011. I had a privilege of being one of the judges this year and I know I haven\u2019t done it enough justice. I was planning to be a lot\u2026","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/bhargavs.com\/index.php\/category\/announcements\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1701,"url":"https:\/\/bhargavs.com\/index.php\/2013\/08\/30\/book-review-microsoft-exchange-server-2013-powershell-cookbook-second-edition\/","url_meta":{"origin":1667,"position":2},"title":"Book Review &#8211; Microsoft Exchange Server 2013 PowerShell Cookbook (Second Edition)","author":"Bhargav","date":"August 30, 2013","format":false,"excerpt":"Among other books that I have reviewed in past, I had pleasure reviewing Mike\u2019s \u201cMicrosoft Exchange 2010 PowerShell Cookbook\u201d when it was release in 2011. So, when PACKT Publishing asked me if I would be interested in reviewing his new book \u201cMicrosoft Exchange Server 2013 PowerShell Cookbook: Second Edition\u201d, I\u2026","rel":"","context":"In &quot;Book Review&quot;","block_context":{"text":"Book Review","link":"https:\/\/bhargavs.com\/index.php\/category\/book-review\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1676,"url":"https:\/\/bhargavs.com\/index.php\/2011\/12\/15\/rbac-and-principle-of-least-privilege\/","url_meta":{"origin":1667,"position":3},"title":"RBAC and Principle of Least Privilege","author":"Bhargav","date":"December 15, 2011","format":false,"excerpt":"Exchange 2010 introduced RBAC as a mechanism to manage access to administrative tasks at granular level which was not possible in previous versions of Exchange. While you may know how to use RBAC to create custom roles that maps to job functions in your environment, one particular feature tends to\u2026","rel":"","context":"In &quot;Exchange 2010&quot;","block_context":{"text":"Exchange 2010","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2010\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1658,"url":"https:\/\/bhargavs.com\/index.php\/2010\/12\/09\/powershell-script-to-report-uptime\/","url_meta":{"origin":1667,"position":4},"title":"PowerShell script to report uptime","author":"Bhargav","date":"December 9, 2010","format":false,"excerpt":"UPDATED - Fixed issues reporting boottime. 3\/20\/2012 I was reading Hey, Scripting Guy! article \u201cCalculating Server Uptime\u201d and decided to write a script that can do the same. While the article has very nice script that calculates uptime from event log, my script isn\u2019t fancy and simply calculates uptime since\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/powershell\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1672,"url":"https:\/\/bhargavs.com\/index.php\/2011\/09\/27\/mythbusters-exchange-server-2010-and-powershell-remoting\/","url_meta":{"origin":1667,"position":5},"title":"Mythbusters\u2013Exchange Server 2010 and PowerShell Remoting","author":"Bhargav","date":"September 27, 2011","format":false,"excerpt":"A misconception that WinRM listener needs to be configured in order to be able to connect to Exchange Server 2010 had popped up a couple times in my conversations recently so I decided to clear the confusion. Guest blogging for my friends at IT Pro Africa, I have written the\u2026","rel":"","context":"In &quot;Exchange 2010&quot;","block_context":{"text":"Exchange 2010","link":"https:\/\/bhargavs.com\/index.php\/category\/microsoft\/exchange-server\/exchange-2010\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_shortlink":"https:\/\/wp.me\/pkROc-qT","_links":{"self":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/1667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/comments?post=1667"}],"version-history":[{"count":0,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/posts\/1667\/revisions"}],"wp:attachment":[{"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/media?parent=1667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/categories?post=1667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bhargavs.com\/index.php\/wp-json\/wp\/v2\/tags?post=1667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}