{"id":6078,"date":"2015-10-09T12:00:05","date_gmt":"2015-10-09T11:00:05","guid":{"rendered":"http:\/\/www.markwilson.co.uk\/blog\/?p=6078"},"modified":"2015-09-26T13:45:28","modified_gmt":"2015-09-26T12:45:28","slug":"powershell-snippets","status":"publish","type":"post","link":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm","title":{"rendered":"PowerShell snippets"},"content":{"rendered":"<p>Writing PowerShell scripts over the last couple of weeks has been a steep curve. I&#8217;ve watched PowerShell from afar over the years but don&#8217;t really use it enough to say I know it.\u00a0 Luckily, many others do, and they&#8217;ve posted their knowledge on the &#8216;net. This is what I drew upon:<\/p>\n<ul>\n<li>Don Jones: <a href=\"https:\/\/technet.microsoft.com\/en-us\/magazine\/jj554301.aspx\">defining parameters,<\/a> Glenn Sizemore: <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/05\/15\/simplify-your-powershell-script-with-parameter-validation.aspx\">parameter validation<\/a> and Boe Prox: <a href=\"http:\/\/learn-powershell.net\/2014\/02\/04\/using-powershell-parameter-validation-to-make-your-day-easier\/\">parameter validation<\/a>.<\/li>\n<li>Tobias Weltmer on PowerShell.com: <a href=\"http:\/\/powershell.com\/cs\/media\/p\/389.aspx\">validate an email address<\/a>.<\/li>\n<li>Don Jones: <a href=\"https:\/\/technet.microsoft.com\/en-us\/magazine\/2007.03.powershell.aspx\">the power of variables<\/a>.<\/li>\n<li>Thomas Maurer: <a href=\"http:\/\/www.thomasmaurer.ch\/2010\/07\/powershell-check-variable-for-null\/\">checking variables for null values<\/a>.<\/li>\n<li>Chris Oldwood: <a href=\"http:\/\/chrisoldwood.blogspot.co.uk\/2011\/05\/powershell-throwing-exceptions-exit.html\">throwing exceptions and exit codes<\/a>\u00a0(I need to do some work on my scripts to improve this&#8230;)<\/li>\n<li>Microsoft Scripting Guys: <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2010\/07\/11\/hey-scripting-guy-weekend-scripter-checking-for-module-dependencies-in-windows-powershell.aspx\">checking for module dependencies in PowerShell<\/a> and <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/04\/05\/how-to-remove-a-loaded-module.aspx\">removing loaded modules<\/a>.<\/li>\n<li>Microsoft Scripting Guys:\u00a0<a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/07\/16\/powertip-use-powershell-to-check-string-for-a-match.aspx\">checking a string to see if it matches another one<\/a> and \u00a0<a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/03\/21\/use-powershell-to-replace-text-in-strings.aspx\">replacing text in strings<\/a>.<\/li>\n<li>Marco Shaw: <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/05\/17\/writing-output-with-powershell.aspx\">writing output in PowerShell<\/a> and Microsoft TechNet: <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ff406264.aspx\">display output in colour<\/a>.<\/li>\n<li>Microsoft Scripting Guys: <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2011\/12\/22\/use-powershell-to-read-a-csv-file-and-create-active-directory-user-accounts.aspx\">reading a CSV file<\/a> (and acting on the contents).<\/li>\n<li>Jakob Gottlieb Svendsen: <a href=\"http:\/\/blog.coretech.dk\/jgs\/powershell-how-to-create-an-empty-array\/\">creating an empty array<\/a> and Microsoft TechNet: <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/ee692797.aspx\">even more things you can do with arrays<\/a>.<\/li>\n<li>Point Beyond: <a href=\"http:\/\/www.pointbeyond.com\/2011\/07\/29\/powershell-csv-and-array-handling\/\">CSV and array handling<\/a>.<\/li>\n<li>Microsoft Scripting Guys: <a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2013\/07\/18\/powertip-find-number-elements-in-a-powershell-array.aspx\">counting the number of elements in an array<\/a>.<\/li>\n<li>Anita Boerboom: <a href=\"http:\/\/www.itidea.nl\/index.php\/powershell-foreach-vs-foreach-object\/\">ForEach vs. ForEach-Object<\/a>.<\/li>\n<li>Richard L Mueller: <a href=\"http:\/\/www.rlmueller.net\/PowerShellEscape.htm\">escaping in PowerShell<\/a> and Stack Overflow: <a href=\"http:\/\/stackoverflow.com\/questions\/9241473\/replace-dots-by-carriage-return-with-powershell\">escaping dots<\/a>\u00a0(with <code>\"\\.\"<\/code> because they don&#8217;t work with <code>-match<\/code> for string comparison).<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Writing PowerShell scripts over the last couple of weeks has been a steep curve. I&#8217;ve watched PowerShell from afar over the years but don&#8217;t really use it enough to say I know it.\u00a0 Luckily, many others do, and they&#8217;ve posted their knowledge on the &#8216;net. This is what I drew upon: Don Jones: defining parameters, &hellip; <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">PowerShell snippets<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[218],"tags":[350],"class_list":["post-6078","post","type-post","status-publish","format-standard","hentry","category-technology","tag-powershell"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PowerShell snippets - markwilson.it<\/title>\n<meta name=\"description\" content=\"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PowerShell snippets - markwilson.it\" \/>\n<meta property=\"og:description\" content=\"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm\" \/>\n<meta property=\"og:site_name\" content=\"markwilson.it\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-09T11:00:05+00:00\" \/>\n<meta name=\"author\" content=\"Mark Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:site\" content=\"@markwilsonit\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mark Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm\"},\"author\":{\"name\":\"Mark Wilson\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"headline\":\"PowerShell snippets\",\"datePublished\":\"2015-10-09T11:00:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm\"},\"wordCount\":227,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"keywords\":[\"Microsoft PowerShell\"],\"articleSection\":[\"Technology\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm\",\"name\":\"PowerShell snippets - markwilson.it\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2015-10-09T11:00:05+00:00\",\"description\":\"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2015\\\/10\\\/powershell-snippets.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PowerShell snippets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/\",\"name\":\"markwilson.it\",\"description\":\"get-info -class technology | write-output &gt; \\\/dev\\\/web\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\",\"name\":\"Mark Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\",\"width\":800,\"height\":800,\"caption\":\"Mark Wilson\"},\"logo\":{\"@id\":\"https:\\\/\\\/i0.wp.com\\\/www.markwilson.co.uk\\\/blog\\\/uploads\\\/image-4.png?fit=800%2C800&ssl=1\"},\"description\":\"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.\",\"sameAs\":[\"http:\\\/\\\/www.markwilson.co.uk\\\/\",\"https:\\\/\\\/www.instagram.com\\\/markwilsonuk\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/markawilson\\\/\",\"https:\\\/\\\/x.com\\\/markwilsonit\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCWHlZCoHRTocdvtrOJ2IL4A\"],\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/author\\\/mark-wilson\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PowerShell snippets - markwilson.it","description":"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing","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:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm","og_locale":"en_GB","og_type":"article","og_title":"PowerShell snippets - markwilson.it","og_description":"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing","og_url":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm","og_site_name":"markwilson.it","article_published_time":"2015-10-09T11:00:05+00:00","author":"Mark Wilson","twitter_card":"summary_large_image","twitter_creator":"@markwilsonit","twitter_site":"@markwilsonit","twitter_misc":{"Written by":"Mark Wilson","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm#article","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm"},"author":{"name":"Mark Wilson","@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"headline":"PowerShell snippets","datePublished":"2015-10-09T11:00:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm"},"wordCount":227,"commentCount":0,"publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"keywords":["Microsoft PowerShell"],"articleSection":["Technology"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm","url":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm","name":"PowerShell snippets - markwilson.it","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#website"},"datePublished":"2015-10-09T11:00:05+00:00","description":"A collection of PowerShell-related blog posts that helped me in some of my recent script-writing","breadcrumb":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/powershell-snippets.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markwilson.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"PowerShell snippets"}]},{"@type":"WebSite","@id":"https:\/\/www.markwilson.co.uk\/blog\/#website","url":"https:\/\/www.markwilson.co.uk\/blog\/","name":"markwilson.it","description":"get-info -class technology | write-output &gt; \/dev\/web","publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.markwilson.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468","name":"Mark Wilson","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","url":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1","width":800,"height":800,"caption":"Mark Wilson"},"logo":{"@id":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/uploads\/image-4.png?fit=800%2C800&ssl=1"},"description":"A Chartered IT Professional, with recent experience in technology leadership, IT strategy and practice management roles, Mark Wilson is an Enterprise Architect in the Advisory and Management Group at risual. During a career spanning more than two decades, Mark has gained widespread recognition as an expert in his field including both industry and national press exposure. In addition to certifications from Microsoft, VMware, Red Hat, The Open Group and Axelos, Mark held a Microsoft Most Valuable Professional (MVP) award for three years and is now part of the MVP Reconnect programme. Mark is also well-known on social media and maintains an award-winning blog.","sameAs":["http:\/\/www.markwilson.co.uk\/","https:\/\/www.instagram.com\/markwilsonuk\/","https:\/\/www.linkedin.com\/in\/markawilson\/","https:\/\/x.com\/markwilsonit","https:\/\/www.youtube.com\/channel\/UCWHlZCoHRTocdvtrOJ2IL4A"],"url":"https:\/\/www.markwilson.co.uk\/blog\/author\/mark-wilson"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":1246,"url":"https:\/\/www.markwilson.co.uk\/blog\/2008\/10\/a-quick-look-at-windows-powershell-2.htm","url_meta":{"origin":6078,"position":0},"title":"A quick look at Windows PowerShell 2","author":"Mark Wilson","date":"Tuesday 21 October 2008","format":false,"excerpt":"Richard Siddaway's recent TechNet presentation (around the datacentre in 80 scripts) was a first opportunity for me to have a look at what's coming in the next version of Windows PowerShell. I've written previously about PowerShell (as an introduction to the concept and from an IT administrator standpoint) but, just\u2026","rel":"","context":"In \"Microsoft Windows\"","block_context":{"text":"Microsoft Windows","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5906,"url":"https:\/\/www.markwilson.co.uk\/blog\/2015\/08\/bulk-changing-active-directory-upns-from-powershell.htm","url_meta":{"origin":6078,"position":1},"title":"Bulk changing Active Directory UPNs from PowerShell","author":"Mark Wilson","date":"Wednesday 26 August 2015","format":false,"excerpt":"As part of my current Office 365 project, I needed to prepare an on-premises Active Directory for synchronisation with Azure AD. This was a test environment that had been created by taking a copy of the production directory, so I had thousands of users - but all with incorrect user\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":797,"url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm","url_meta":{"origin":6078,"position":2},"title":"Windows PowerShell for IT administrators","author":"Mark Wilson","date":"Wednesday 23 May 2007","format":false,"excerpt":"\"Go away or I will replace you with a very small shell script\" [T-shirt slogan from an attendee at tonight's Windows PowerShell for IT administrators event.] I'm back in my hotel room having spent the evening at one of Microsoft UK's TechNet events and this time the topic was Windows\u2026","rel":"","context":"In \"Microsoft Windows\"","block_context":{"text":"Microsoft Windows","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6073,"url":"https:\/\/www.markwilson.co.uk\/blog\/2015\/09\/posh-git.htm","url_meta":{"origin":6078,"position":3},"title":"Posh-git!","author":"Mark Wilson","date":"Monday 28 September 2015","format":false,"excerpt":"I've been writing quite a lot of PowerShell recently and I decided that I really should look into using some kind of source control system.\u00a0 I've used Git before, integrating GitHub with VisualStudio and this time I wanted to integrate with the PowerShell ISE (by the way, if you don't\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5309,"url":"https:\/\/www.markwilson.co.uk\/blog\/2014\/08\/administering-office-365-using-powershell-updated-information-on-the-required-components.htm","url_meta":{"origin":6078,"position":4},"title":"Administering Office 365 using PowerShell: updated information on the required components","author":"Mark Wilson","date":"Monday 18 August 2014","format":false,"excerpt":"I've written before about\u00a0administering Office 365 from PowerShell but the process has changed slightly over the years. \u00a0There are various articles out there on the web with methods and links but the key information (as at August 2014) is in a TechNet article titled Manage Azure AD using Windows PowerShell.\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6099,"url":"https:\/\/www.markwilson.co.uk\/blog\/2015\/10\/unable-to-set-the-default-powershell-font-to-lucida-console.htm","url_meta":{"origin":6078,"position":5},"title":"Unable to set the default PowerShell font to Lucida Console","author":"Mark Wilson","date":"Tuesday 6 October 2015","format":false,"excerpt":"For the last few months, I've been getting more and more infuriated with my PowerShell sessions opening in a tiny raster font (4x6). On a high resolution display like the one on the Surface Pro 3, that's a complete pain\u00a0and, whilst I could change the font in the properties for\u2026","rel":"","context":"In &quot;Technology&quot;","block_context":{"text":"Technology","link":"https:\/\/www.markwilson.co.uk\/blog\/topic\/technology"},"img":{"alt_text":"Windows PowerShell with a tiny raster font","src":"https:\/\/i0.wp.com\/www.markwilson.co.uk\/blog\/images\/tiny-powershell.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=6078"}],"version-history":[{"count":5,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6078\/revisions"}],"predecessor-version":[{"id":6083,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6078\/revisions\/6083"}],"wp:attachment":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=6078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=6078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=6078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}