{"id":797,"date":"2007-05-23T02:20:05","date_gmt":"2007-05-23T01:20:05","guid":{"rendered":"http:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm"},"modified":"2008-04-06T20:13:59","modified_gmt":"2008-04-06T20:13:59","slug":"windows-powershell-for-it-administrators","status":"publish","type":"post","link":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm","title":{"rendered":"Windows PowerShell for IT administrators"},"content":{"rendered":"<blockquote><p>&#8220;Go away or I will replace you with a very small shell script&#8221;<\/p>\n<p class=\"citation\">[T-shirt slogan from an attendee at tonight&#8217;s Windows PowerShell for IT administrators event.]<\/p>\n<\/blockquote>\n<p>I&#8217;m back in my hotel room having spent the evening at one of Microsoft UK&#8217;s TechNet events and this time the topic was Windows <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2006\/05\/introducing-windows-powershell.htm\">PowerShell<\/a> for IT administrators. <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2006\/02\/microsofts-next-generation-command.htm\">I&#8217;ve written previously about PowerShell<\/a> (back when it was still a beta, codenamed Monad) but tonight&#8217;s event was presented by <a href=\"http:\/\/richardsiddaway.spaces.live.com\/\">Richard Siddaway<\/a> from Perot Systems, who is not only an experienced infrastructure architect but also leads the <a href=\"http:\/\/www.get-psuguk.org.uk\/\">PowerShell UK user group<\/a> and thinks that PowerShell is one of the best pieces of technology ever (maybe a touch OTT but it <em>is<\/em> pretty powerful).<\/p>\n<p>The event was demo-heavy and I didn&#8217;t grab all of the example commands (Richard plans to publish them on the user group website this week) so this post concentrates on what PowerShell can (and can&#8217;t) do and I&#8217;ll link to some more examples later.<\/p>\n<p><cite>What is PowerShell?<\/cite><br \/>\nAccording to Microsoft, PowerShell is the next generation shell for Windows that is:<\/p>\n<ul>\n<li>As <strong>interactive<\/strong> and <strong>composable<\/strong> as BASH\/KSH.<\/li>\n<li>As <strong>programmable<\/strong> as Perl\/Ruby.<\/li>\n<li>As <strong>production-oriented<\/strong> as AS400 CL\/VMS DCL.<\/li>\n<\/ul>\n<p>In addition to the attributes described above, PowerShell is extensible with snapins, providers and scripts. The provider model allows easy access to data stores (e.g. registry, Active Directory, certificate store), just as if they were a file system.<\/p>\n<p>Scripting is accomodated in various forms, including text (Microsoft&#8217;s interpretation of the traditional Unix scripting model), COM (WSH\/VBScript-style scripting), Microsoft.NET or commands (PowerShell cmdlets, emitting Microsoft .NET-based objects). As for the types of data that PowerShell can manipulate &#8211; it&#8217;s extensive, including flat files (CSV, etc.), .NET objects, XML (cmdlets and .NET), WMI, ADSI, ADO\/ADO.NET and SQL.<\/p>\n<p><cite>So, PowerShell is a scripting interface with a heavy interface on Microsoft.NET &#8211; are programming skills required?<\/cite><br \/>\nNot really. As Richard described, just because you can use native .NET code doesn&#8217;t mean that you should; however the more that you know, the more you can do with PowerShell.<\/p>\n<p>Basically, simple scripts will need some .NET functions such as <code>[STRING]<\/code> and <code>[MATH]<\/code> and advanced scripts can use any .NET object but cmdlets provide an excellent administrative and scripting experience and are easier to work with &#8211; writing .NET code can be thought of as a safety net for when something isn&#8217;t possible using another method, rather than as a first port of call.<\/p>\n<p><cite>Where can I get PowerShell?<\/cite><br \/>\nAlthough it a core element of the Windows Server System, providing automation and integration capabilities across the various technology platforms, <a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/download.mspx\">PowerShell is a separate download for Windows XP (SP2)\/Server 2003 (SP1 or later, including R2)\/Vista<\/a> and <a href=\"http:\/\/www.microsoft.com\/windowsserver2008\/powershell.mspx\">will be included within Windows Server 2008<\/a>. Note that PowerShell is not supported on Windows 2000.<\/p>\n<p><cite>How can I learn to use PowerShell?<\/cite><br \/>\nPowerShell&#8217;s documentation includes a getting started guide, a user guide, a quick reference guide and help text. <a href=\"https:\/\/blogs.technet.com\/chitpro-de\/archive\/2007\/05\/10\/english-version-of-windows-powershell-course-book-available-for-download.aspx\">Microsoft Switzerland has also produced a short Windows PowerShell book<\/a> that&#8217;s available for download free of charge, there are plenty of other books on the subject and a &#8220;young but keen&#8221; community of administrators exists who are discovering how PowerShell can be put to use; however it&#8217;s probably best to just get stuck in &#8211; practice some ad-hoc development:<\/p>\n<ul>\n<li>Try things out in an interactive shell.<\/li>\n<li>Stitch things together with utilities and put the results in a script file (then realise that the tools are unsuitable and restart the process).<\/li>\n<li>Once happy with the basic concepts, generalise the code (e.g. parameterise it) and clean it up (make it production-quality).<\/li>\n<li>Once tested, integrate the PowerShell scripts with the infrastructure to be managed and then share scripts with the community.<\/li>\n<\/ul>\n<p>One more thing &#8211; remember that it&#8217;s better to have many small scripts that each do one thing well than to have a behomoth of a script that&#8217;s very inflexible.<\/p>\n<p><cite>Is there anything else I should know before getting started?<\/cite><br \/>\nThere are a few concepts that it&#8217;s worth getting to grips with before launching into PowerShell:<\/p>\n<ul>\n<li>Cmdlets are a great way to get started with PowerShell. Based on a verb-noun naming, they each provide specific functionality (e.g. <code>get-help<\/code> and make the resulting code self-describing (hence suprisingly easy to read).<\/li>\n<li>The pipeline (think Unix or MS-DOS) &#8211; allows the output of one instruction to be fed into the next using the <code>|<\/code> symbol; however, unlike Unix\/MS-DOS, .NET objects are passed between instructions, not text.<\/li>\n<li>There is a text-based help system (cf. <code>man<\/code> pages on Unix-derived operating systems).<\/li>\n<li>PowerShell is not case-sensitive (although tab completion will sometimes capitalise cmdlets and parameters); however it&#8217;s worth understanding that whilst double quotes (<code>\" \"<\/code>) and single quotes (<code>' '<\/code>) can be used interchangably, variables enclosed in double-quotes are resolved to their value, whereas the single-quote variant is treated as a variable.<\/li>\n<\/ul>\n<p>There are also some issues to be aware of:<\/p>\n<ul>\n<li>The default installation will not run scripts (not even the user&#8217;s profile) and scripts need to be enabled with <code>set-executionpolicy<\/code>.<\/li>\n<li>There is no file association with PowerShell (for security reasons), so scripts cannot be run automatically or via a simple double-click. Scripts do normally use the .ps1 extension and although PowerShell will recognise a command as a script without this, using the extension helps PowerShell to work out what type of instruction is being issued (i.e. a script).<\/li>\n<li>There is no capacity for remoting (executing code on a remote system) but workarounds are possible using .NET and WMI.<\/li>\n<li>The current working directroy is not on the path (as with Unix-derived operating systems), so scripts are launched with <code>.\\<em>scriptname<\/em>.ps1<\/code>.  Dot sourced scripts (e.g. <code>. . \\<em>scriptname<\/em>.ps1<\/code>) run in the context of the shell (rather than in their own context).<\/li>\n<li>Although PowerShell supports use of the entire Microsoft.NET framework, not all .NET assemblies are loaded &#8211; some may need to be specified within a script.<\/li>\n<\/ul>\n<p><cite>Are there any other tools that work with PowerShell?<\/cite><br \/>\nVarious ISVs are extending PowerShell. Many of the tools are currently available as trial versions although some are (or may become) commercial products. Examples include:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.quest.com\/activeroles-server\/arms.aspx\">Quest Management Shell for Active Directory<\/a> (which will be included in a future version of <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2006\/08\/delegation-of-active-directory.htm\">ActiveRoles Server<\/a>).<\/li>\n<li><a href=\"http:\/\/www.powergui.org\/\">Quest PowerGUI<\/a> (providing a GUI front-end to PowerShell script generation).<\/li>\n<li><a href=\"http:\/\/www.powergadgets.com\/\">PowerGadgets<\/a> (providing graphical output from PowerShell scripts).<\/li>\n<li><a href=\"http:\/\/www.codeplex.com\/Wiki\/View.aspx?ProjectName=PowerShellCX\">PowerShell community extensions<\/a>.<\/li>\n<li><a href=\"http:\/\/www.powershellanalyzer.com\/\">PowerShell Analyzer<\/a> tool (editor and IDE).<\/li>\n<li><a href=\"http:\/\/www.fullarmor.com\/labs-workflow-studio-powershell-add-ins.htm\">FullArmor Workflow Studio PowerShell add-ins<\/a> (integrate PowerShell with the Windows Workflow Foundation).<\/li>\n<\/ul>\n<p><cite>Where can I find out more?<\/cite><br \/>\nThe following links provide more information about <a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/default.mspx\">PowerShell<\/a>:<\/p>\n<ul>\n<li><a href=\"http:\/\/blogs.msdn.com\/PowerShell\/\">Microsoft PowerShell team blog<\/a>.<\/li>\n<li><a href=\"http:\/\/www.microsoft.com\/windowsserver2003\/technologies\/management\/powershell\/faq.mspx\">Microsoft PowerShell FAQ<\/a>.<\/li>\n<li><a href=\"http:\/\/www.get-psuguk.org.uk\/\">PowerShell UK user group<\/a> (get-psuguk).<\/li>\n<li><a href=\"http:\/\/richardsiddaway.spaces.live.com\/\">Richard Siddaway&#8217;s blog<\/a>.<\/li>\n<li><a href=\"http:\/\/groups.google.com\/group\/microsoft.public.windows.powershell\/\">microsoft.public.windows.powershell newsgroup<\/a>.<\/li>\n<li><a href=\"http:\/\/channel9.msdn.com\/wiki\/default.aspx\/Channel9.WindowsPowerShellWiki\">Windows PowerShell Wiki<\/a>.<\/li>\n<li>Microsoft Script Center: <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">Scripting with Windows PowerShell<\/a>.<\/li>\n<li><a href=\"http:\/\/www.reskit.net\/powershell\/\">Thomas Lee&#8217;s PowerShell Information Centre<\/a>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Go away or I will replace you with a very small shell script&#8221; [T-shirt slogan from an attendee at tonight&#8217;s Windows PowerShell for IT administrators event.] I&#8217;m back in my hotel room having spent the evening at one of Microsoft UK&#8217;s TechNet events and this time the topic was Windows PowerShell for IT administrators. I&#8217;ve &hellip; <a href=\"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Windows PowerShell for IT administrators<\/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":[],"tags":[33,82],"class_list":["post-797","post","type-post","status-publish","format-standard","hentry","tag-windows","tag-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Windows PowerShell for IT administrators - markwilson.it<\/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:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows PowerShell for IT administrators - markwilson.it\" \/>\n<meta property=\"og:description\" content=\"&#8220;Go away or I will replace you with a very small shell script&#8221; [T-shirt slogan from an attendee at tonight&#8217;s Windows PowerShell for IT administrators event.] I&#8217;m back in my hotel room having spent the evening at one of Microsoft UK&#8217;s TechNet events and this time the topic was Windows PowerShell for IT administrators. I&#8217;ve &hellip; Continue reading Windows PowerShell for IT administrators\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm\" \/>\n<meta property=\"og:site_name\" content=\"markwilson.it\" \/>\n<meta property=\"article:published_time\" content=\"2007-05-23T01:20:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-04-06T20:13:59+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=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm\"},\"author\":{\"name\":\"Mark Wilson\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"headline\":\"Windows PowerShell for IT administrators\",\"datePublished\":\"2007-05-23T01:20:05+00:00\",\"dateModified\":\"2008-04-06T20:13:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm\"},\"wordCount\":1132,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/98f61365e7c39d6be942174b8c4de468\"},\"keywords\":[\"Microsoft Windows\",\"Scripting\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm\",\"url\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm\",\"name\":\"Windows PowerShell for IT administrators - markwilson.it\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2007-05-23T01:20:05+00:00\",\"dateModified\":\"2008-04-06T20:13:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\\\/2007\\\/05\\\/windows-powershell-for-it-administrators.htm#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.markwilson.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows PowerShell for IT administrators\"}]},{\"@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":"Windows PowerShell for IT administrators - markwilson.it","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\/2007\/05\/windows-powershell-for-it-administrators.htm","og_locale":"en_GB","og_type":"article","og_title":"Windows PowerShell for IT administrators - markwilson.it","og_description":"&#8220;Go away or I will replace you with a very small shell script&#8221; [T-shirt slogan from an attendee at tonight&#8217;s Windows PowerShell for IT administrators event.] I&#8217;m back in my hotel room having spent the evening at one of Microsoft UK&#8217;s TechNet events and this time the topic was Windows PowerShell for IT administrators. I&#8217;ve &hellip; Continue reading Windows PowerShell for IT administrators","og_url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm","og_site_name":"markwilson.it","article_published_time":"2007-05-23T01:20:05+00:00","article_modified_time":"2008-04-06T20:13:59+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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm#article","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm"},"author":{"name":"Mark Wilson","@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"headline":"Windows PowerShell for IT administrators","datePublished":"2007-05-23T01:20:05+00:00","dateModified":"2008-04-06T20:13:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm"},"wordCount":1132,"commentCount":6,"publisher":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#\/schema\/person\/98f61365e7c39d6be942174b8c4de468"},"keywords":["Microsoft Windows","Scripting"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm","url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm","name":"Windows PowerShell for IT administrators - markwilson.it","isPartOf":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/#website"},"datePublished":"2007-05-23T01:20:05+00:00","dateModified":"2008-04-06T20:13:59+00:00","breadcrumb":{"@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.markwilson.co.uk\/blog\/2007\/05\/windows-powershell-for-it-administrators.htm#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.markwilson.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Windows PowerShell for IT administrators"}]},{"@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":797,"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":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":797,"position":1},"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":1386,"url":"https:\/\/www.markwilson.co.uk\/blog\/2009\/03\/microsoft-powershell-vbscript-and-jscript-bible.htm","url_meta":{"origin":797,"position":2},"title":"Microsoft PowerShell, VBScript and JScript Bible","author":"Mark Wilson","date":"Thursday 12 March 2009","format":false,"excerpt":"At last night's joint user group meeting for the Windows Server UK User Group and the Active Directory UK User Group, James O'Neill mentioned that the book he has co-authored (Microsoft PowerShell, VBScript and JScript Bible, published by John Wiley and sons) goes on sale today. I haven't had the\u2026","rel":"","context":"In \"Scripting\"","block_context":{"text":"Scripting","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/scripting"},"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":797,"position":3},"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":[]},{"id":885,"url":"https:\/\/www.markwilson.co.uk\/blog\/2007\/08\/how-windows-powershell-exposes-passwords-in-clear-text.htm","url_meta":{"origin":797,"position":4},"title":"How Windows PowerShell exposes passwords in clear text","author":"Mark Wilson","date":"Wednesday 22 August 2007","format":false,"excerpt":"I'm attending a two-day Windows PowerShell course, delivered by my colleague Dave - who I know reads this blog and should really think about starting his own... I've written before about Windows PowerShell (twice) and I think it's a great product, but it is a version 1.0 product and as\u2026","rel":"","context":"In \"Microsoft Windows Server 2003\"","block_context":{"text":"Microsoft Windows Server 2003","link":"https:\/\/www.markwilson.co.uk\/blog\/tag\/windows-server-2003"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":428,"url":"https:\/\/www.markwilson.co.uk\/blog\/2006\/05\/introducing-windows-powershell.htm","url_meta":{"origin":797,"position":5},"title":"Introducing Windows PowerShell","author":"Mark Wilson","date":"Wednesday 3 May 2006","format":false,"excerpt":"I missed this news last week, but it seems that Microsoft has finally named their next-generation command shell (formerly codenamed Monad). I liked Microsoft Script Host (MSH) or Microsoft command shell. They were accurate descriptions of what it does. Unfortunately we seem to be stuck with the name Windows PowerShell.\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":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/797","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=797"}],"version-history":[{"count":0,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/posts\/797\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwilson.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}