{"id":402,"date":"2019-04-29T11:02:41","date_gmt":"2019-04-29T16:02:41","guid":{"rendered":"http:\/\/itblog.ldlnet.net\/?p=402"},"modified":"2019-04-29T11:02:41","modified_gmt":"2019-04-29T16:02:41","slug":"set-the-profile-pic-for-a-single-exchange-user-via-powershell","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2019\/04\/29\/set-the-profile-pic-for-a-single-exchange-user-via-powershell\/","title":{"rendered":"Set the profile pic for a single Exchange user via PowerShell"},"content":{"rendered":"\n<p>I wanted to update my picture within my Outlook profile and AD account really quickly without having to go through OWA to do so. I found this cmdlet that will allow for that picture to be changed very quickly via Exchange PowerShell. <\/p>\n\n\n\n<p class=\"has-text-color has-small-font-size has-medium-pink-color\"><strong>NOTE: This can be done with On-Premises Exchange and Exchange Online PowerShell<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"386\" height=\"173\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-7.png\" alt=\"\" class=\"wp-image-403\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-7.png 386w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-7-300x134.png 300w\" sizes=\"auto, (max-width: 386px) 100vw, 386px\" \/><figcaption>Old picture within my account<\/figcaption><\/figure><\/div>\n\n\n\n<p>First, download the picture you want to use to the computer that you want to run the cmdlet from. Also, make sure the picture is cropped and centered prior to running the cmdlet. I saved the pic to C:\\temp for my scenario. The best format to use would be jpg. I named the file User1_Profile.jpg<\/p>\n\n\n\n<p>Next, open Exchange PowerShell on the computer you saved the pic to and run the following cmdlet to change the photo:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Set the Profile Photo\">Set-UserPhoto \"User1\" -PictureData ([System.IO.File]::ReadAllBytes(\"C:\\temp\\User1_Profile.jpg\")) -Confirm:$False<\/pre>\n\n\n\n<p>Once completed, the Outlook client should be closed and reopen so that the new picture is visible in the profile.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"367\" height=\"168\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-8.png\" alt=\"\" class=\"wp-image-404\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-8.png 367w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/04\/image-8-300x137.png 300w\" sizes=\"auto, (max-width: 367px) 100vw, 367px\" \/><figcaption>Picture change completed<\/figcaption><\/figure><\/div>\n\n\n\n<p>I will post how to perform this for multiple users for Exchange and Office365 in a later post.<\/p>\n\n\n\n<p class=\"has-small-font-size\"><strong>REFERENCES:<\/strong><br><em><a href=\"https:\/\/www.ntweekly.com\/2016\/02\/04\/set-user-photo-exchange-server-2016-using-powershell\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Set User Photo with Exchange PowerShell (opens in a new tab)\">Set User Photo with Exchange PowerShell<\/a><\/em><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to update my picture within my Outlook profile and AD account really quickly without having to go through OWA to<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2019\/04\/29\/set-the-profile-pic-for-a-single-exchange-user-via-powershell\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,111,3],"tags":[15,9,150,149,151,78,8],"class_list":["post-402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exchange","category-general","category-outlook","category-powershell","tag-cmdlet","tag-exchange","tag-exchange-2013","tag-exchange-2016","tag-exchange-2019","tag-exchange-onlilne","tag-powershell","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":1,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/402\/revisions\/405"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}