{"id":2220,"date":"2011-05-25T08:30:00","date_gmt":"2011-05-25T06:30:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/"},"modified":"2011-05-25T08:30:00","modified_gmt":"2011-05-25T06:30:00","slug":"powershell-overview","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/","title":{"rendered":"A brief PowerShell 2.0 overview"},"content":{"rendered":"<p>SQL Server 2008 has PowerShell and I am going to speak about the way they work together. However, some basics on PowerShell are needed to get the big picture. So let&#8217;s start with an introduction to the PowerShell technology.<\/p>\n<p>During the Microsoft Techdays in Basel, Marc van Orsouw presented PowerShell. I would like to present you an overview of PowerShell based on his presentation while adding some microsoft msdn website definition and my commentar.<\/p>\n<h3><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\" alt=\"\" \/> What is PowerShell?<\/h3>\n<p>Windows PowerShell is an extensible command-line shell and associated scripting language from Microsoft. It is not case sensitive.<\/p>\n<p>In PowerShell, administrative tasks are generally performed by cmdlets (pronounced command-lets), specialized .NET classes implementing a particular operation.<\/p>\n<p>Sets of cmdlets may be combined together in scripts, executables (which are standalone applications), or by instantiating regular .NET classes (or WMI\/COM Objects).<\/p>\n<p>This works by accessing data in different data stores, like the filesystem or registry, which are made available to the PowerShell runtime via Windows PowerShell providers.<\/p>\n<p>In this article, I will use PowerShell 2.0 ( included in Windows 7 and Windows 2008 R2).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-0.png\" alt=\"powershell 0\" width=\"86\" height=\"67\" \/><\/p>\n<h3>The first step: your rights<\/h3>\n<p>Before running any script, you must change your policies while default is restricted.<br \/>\nTo see your current policy : <span style=\"font-family: courier new,courier;\">Get-ExecutionPolicy<\/span><\/p>\n<p>There are four policies:<\/p>\n<ul>\n<li><strong>Restricted<\/strong>: No scripts can be run. Windows PowerShell can be used only in interactive mode.<\/li>\n<li><strong>AllSigned<\/strong>: Only scripts signed by a trusted publisher can be run.<\/li>\n<li><strong>RemoteSigned<\/strong>: Downloaded scripts must be signed by a trusted publisher before they can be run.<\/li>\n<li><strong>Unrestricted<\/strong>: No restrictions: all Windows PowerShell scripts can be run.<\/li>\n<\/ul>\n<p>To use scripts, you must set the policy to RemoteSigned:<br \/>\n<span style=\"font-family: courier new,courier;\">\u00a0<\/span><\/p>\n<p><span style=\"font-family: courier new,courier;\">Set-ExecutionPolicy RemoteSigned<\/span><\/p>\n<p>Run PowerShell with administrator rights &#8211; right click on &#8220;Run as administrator&#8221; &#8211; to set it.<\/p>\n<h3>Frequently used commands<\/h3>\n<p>The four most important commands :<\/p>\n<ul>\n<li><strong>Get-Help<\/strong>: Windows PowerShell includes two basic types of help &#8211; command help and conceptual help.<\/li>\n<\/ul>\n<p>Example of a command help:<span style=\"font-family: courier new,courier;\"> Get-Help about_*<\/span> &#8211;&gt; get the list of about functions<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-1.png\" alt=\"\" width=\"636\" height=\"409\" \/><\/p>\n<p>Example of conceptual help: <span style=\"font-family: courier new,courier;\">Get-Help Get-Command<\/span> &#8211;&gt; Get the information of the Get-Command<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-2.png\" alt=\"\" width=\"636\" height=\"409\" \/><\/p>\n<ul>\n<li><strong>Get-Command<\/strong>: get a list of all Windows PowerShell cmdlets<\/li>\n<\/ul>\n<p>Get-Command has an alias: gcm (but best practice is not to use it in script)<\/p>\n<ul>\n<li><strong>Get-Member<\/strong>: get the properties and methods of objects<\/li>\n<\/ul>\n<p>Example to see member of Get-Command :<span style=\"font-family: courier new,courier;\"> Get-Command | Get-Member<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-3.png\" alt=\"\" width=\"633\" height=\"407\" \/><\/p>\n<p>You can group the member by categories like Verb or Group:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-4.png\" alt=\"\" width=\"651\" height=\"109\" \/><\/p>\n<p>A popular example to see the possibilities of a string:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-5.png\" alt=\"\" width=\"638\" height=\"410\" \/><\/p>\n<ul>\n<li><strong>Get-PSDrive<\/strong>: see the Windows PowerShell drives in the current session:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-6.png\" alt=\"\" width=\"630\" height=\"133\" \/><\/p>\n<p>Others command frequently used :<\/p>\n<ul>\n<li><strong>Get-Date<\/strong>: see the current time and date:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-7.png\" alt=\"\" width=\"636\" height=\"409\" \/><\/p>\n<ul>\n<li><strong>Get-process<\/strong>: see the processes that are running on the local computer or a remote computer:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-8.png\" alt=\"\" width=\"645\" height=\"441\" \/><\/p>\n<p>Another example for get-process to see the version for a process:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-9.png\" alt=\"\" width=\"638\" height=\"62\" \/><\/p>\n<h3>How the operators work:<\/h3>\n<p>The first step is to see the existing operator : <span style=\"font-family: courier new,courier;\">Get-help operator<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-10.png\" alt=\"\" width=\"642\" height=\"473\" \/><\/p>\n<p>There are four types of operators:<\/p>\n<ul>\n<li><strong>Arithmetic<\/strong>: Arithmetic operators, calculating numeric values.<\/li>\n<li><strong>Assignment<\/strong>: Assignment operators, assigning one or more values to a variable.<\/li>\n<li><strong>Comparison<\/strong>: Comparison operators, that let you specify conditions for comparing values and finding values that match specified patterns.<\/li>\n<li><strong>Logical<\/strong>: The Windows PowerShell logical operators connect expressions and statements, allowing you to use a single expression to test for multiple conditions.<\/li>\n<\/ul>\n<p>A nice operation&#8230;<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-11.png\" alt=\"\" \/><\/p>\n<h3>Variables<\/h3>\n<p>A variable requires a $ (dollar sign) to be identified as a variable.<br \/>\nTo display the value of a variable, you simplyneed to type the name of the variable and PowerShell kindly returns the content.<br \/>\nAn example:<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-12.png\" alt=\"\" \/><\/p>\n<h3>Navigating<\/h3>\n<p>Selecting one of the PowerShell drives is easy. It is almost like in MS-DOS!<\/p>\n<p>You can use the same commands as you would do in MS-DOS, such as CD, DIR, MKDIR, etc.<br \/>\nExample: to get a certain property for a registry key, (or a regular folder for that matter) you<br \/>\ncan use the Get-ItemProperty cmdlet:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-13.png\" alt=\"\" width=\"648\" height=\"168\" \/><\/p>\n<h3>Modules<\/h3>\n<p>A module is a package that contains Windows PowerShell commands such as cmdlets, providers, functions, variables, and aliases.<\/p>\n<p><strong>Get-Module<\/strong>: see the modules that have been imported or that can be imported during the current session:<\/p>\n<p><img decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-14.png\" alt=\"\" \/><br \/>\nYou can find many modules on the <a href=\"http:\/\/www.codeplex.com\">codeplex site<\/a>.<\/p>\n<p>To import modules, use import-module. A very nice module is <a href=\"http:\/\/poshcode.org\">Poshcode.<\/a><\/p>\n<h3>And finally: PowerShell and SQL Server 2008<\/h3>\n<p>SQL Server installs Windows PowerShell and a set of SQL Server snap-ins that expose SQL Server functionality in Windows PowerShell. You can then code Windows PowerShell scripts that work with SQL Server objects. The scripts can be run in the Windows PowerShell environment, in SQL Server Management Studio, and as SQL Server Agent jobs:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-15.png\" alt=\"\" width=\"279\" height=\"313\" \/><\/p>\n<p>What does SQL Server PowerShell feature (<a href=\"http:\/\/blogs.msdn.com\/b\/mwories\/archive\/2008\/06\/14\/sql2008_5f00_powershell.aspx\">based on Michiel Wories Blog<\/a>):<\/p>\n<ul>\n<li><strong>SQLPS<\/strong>: a minishell that gives you a complete pre-configured Powershell with all of SQL Server\u2019s extensions preloaded.<\/li>\n<\/ul>\n<p><img decoding=\"async\" style=\"display: block; margin-left: auto; margin-right: auto;\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell-17.png\" alt=\"\" \/><\/p>\n<ul>\n<li><strong>SQL Server Agent integration<\/strong>: a new job subsystem for Powershell.<\/li>\n<\/ul>\n<ul>\n<li><strong>SQL Server Management Studio Integration<\/strong>: context menus on every applicable node in Object Explorer (with connection context reuse. Including SQL security!)<\/li>\n<\/ul>\n<ul>\n<li><strong>4 new Providers<\/strong>: new providers for SQL Server relational engine, registered servers, Data Collection, and SQL Server Policy Management<\/li>\n<\/ul>\n<ul>\n<li><strong>SQLCMD integration<\/strong>: SQLCMD compatible script execution within Powershell<\/li>\n<\/ul>\n<ul>\n<li><strong>SQL Server Policy Management integration<\/strong>: allows for an evaluation of any Policy<\/li>\n<\/ul>\n<ul>\n<li><strong>Various other cmdlets<\/strong>: support the provider, such as conversion of a SMO Urn to a Powershell path, encoding and decoding of SQL identifiers.<\/li>\n<\/ul>\n<ul>\n<li><strong>SQL Server Powershell redist<\/strong>: allows you to install SQL Server Powershell with your application or on any machine you need to have it on.<\/li>\n<\/ul>\n<p>Another more complete article about SQL Server Powershell and how it is working is comming soon&#8230;.<\/p>\n<p>\ud83d\ude00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL server 2008 has PowerShell and at the end of this article, I speak of this topic but to use correctly Powershell, you must have a basic notion about this technologie.<\/p>\n<p>In microsoft Techdays in Basel, Marc van Orsouw presents Powershell.<br \/>I think it was a nice opportunity to presents you an overview of Powershell based on this<\/p>\n<p>presentation with adding microsoft msdn web site commentar.<\/p>\n","protected":false},"author":15,"featured_media":2221,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198],"tags":[271,49,272,265],"type_dbi":[],"class_list":["post-2220","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-database-management","tag-cmdlets","tag-microsoft","tag-powershell","tag-sql-server-2008"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>A brief PowerShell 2.0 overview - dbi Blog<\/title>\n<meta name=\"description\" content=\"Introduction to Powershell and SQL Server PowerShell for beginners\" \/>\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.dbi-services.com\/blog\/powershell-overview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A brief PowerShell 2.0 overview\" \/>\n<meta property=\"og:description\" content=\"Introduction to Powershell and SQL Server PowerShell for beginners\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2011-05-25T06:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\" \/>\n\t<meta property=\"og:image:width\" content=\"34\" \/>\n\t<meta property=\"og:image:height\" content=\"33\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"St\u00e9phane Haby\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"St\u00e9phane Haby\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\"},\"author\":{\"name\":\"St\u00e9phane Haby\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b\"},\"headline\":\"A brief PowerShell 2.0 overview\",\"datePublished\":\"2011-05-25T06:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\"},\"wordCount\":899,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\",\"keywords\":[\"cmdlets\",\"Microsoft\",\"PowerShell\",\"SQL Server 2008\"],\"articleSection\":[\"Database management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\",\"name\":\"A brief PowerShell 2.0 overview - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\",\"datePublished\":\"2011-05-25T06:30:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b\"},\"description\":\"Introduction to Powershell and SQL Server PowerShell for beginners\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png\",\"width\":34,\"height\":33},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A brief PowerShell 2.0 overview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b\",\"name\":\"St\u00e9phane Haby\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g\",\"caption\":\"St\u00e9phane Haby\"},\"description\":\"St\u00e9phane Haby has more than ten years of experience in Microsoft solutions. He is specialized in SQL Server technologies such as installation, migration, best practices, and performance analysis etc. He is also an expert in Microsoft Business Intelligence solutions such as SharePoint, SQL Server and Office. Futhermore, he has many years of .NET development experience in the banking sector and other industries. In France, he was one of the first people to have worked with Microsoft Team System. He has written several technical articles on this subject. St\u00e9phane Haby is Microsoft Most Valuable Professional (MVP) as well as Microsoft Certified Solutions Associate (MCSA) and\u00a0Microsoft Certified Solutions Expert (MCSE) for SQL Server 2012. He is also Microsoft Certified Technology Specialist (MCTS) and Microsoft Certified IT Professional (MCITP) for SQL Server 2008 as well as ITIL Foundation V3 certified. He holds a Engineer diploma in industrial computing and automation from France. His branch-related experience covers Chemicals &amp; Pharmaceuticals, Banking \/ Financial Services, and many other industries.\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/stephane-haby\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"A brief PowerShell 2.0 overview - dbi Blog","description":"Introduction to Powershell and SQL Server PowerShell for beginners","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.dbi-services.com\/blog\/powershell-overview\/","og_locale":"en_US","og_type":"article","og_title":"A brief PowerShell 2.0 overview","og_description":"Introduction to Powershell and SQL Server PowerShell for beginners","og_url":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/","og_site_name":"dbi Blog","article_published_time":"2011-05-25T06:30:00+00:00","og_image":[{"width":34,"height":33,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png","type":"image\/png"}],"author":"St\u00e9phane Haby","twitter_card":"summary_large_image","twitter_misc":{"Written by":"St\u00e9phane Haby","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/"},"author":{"name":"St\u00e9phane Haby","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b"},"headline":"A brief PowerShell 2.0 overview","datePublished":"2011-05-25T06:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/"},"wordCount":899,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png","keywords":["cmdlets","Microsoft","PowerShell","SQL Server 2008"],"articleSection":["Database management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/","url":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/","name":"A brief PowerShell 2.0 overview - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png","datePublished":"2011-05-25T06:30:00+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b"},"description":"Introduction to Powershell and SQL Server PowerShell for beginners","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/powershell-overview\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2022\/04\/powershell0sql.png","width":34,"height":33},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/powershell-overview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"A brief PowerShell 2.0 overview"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/d0bfb7484ae81c8980fc2b11334f803b","name":"St\u00e9phane Haby","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1123227ca39a5dca608c0f72d23cd1904fee29979749bbb3a485b9438436c553?s=96&d=mm&r=g","caption":"St\u00e9phane Haby"},"description":"St\u00e9phane Haby has more than ten years of experience in Microsoft solutions. He is specialized in SQL Server technologies such as installation, migration, best practices, and performance analysis etc. He is also an expert in Microsoft Business Intelligence solutions such as SharePoint, SQL Server and Office. Futhermore, he has many years of .NET development experience in the banking sector and other industries. In France, he was one of the first people to have worked with Microsoft Team System. He has written several technical articles on this subject. St\u00e9phane Haby is Microsoft Most Valuable Professional (MVP) as well as Microsoft Certified Solutions Associate (MCSA) and\u00a0Microsoft Certified Solutions Expert (MCSE) for SQL Server 2012. He is also Microsoft Certified Technology Specialist (MCTS) and Microsoft Certified IT Professional (MCITP) for SQL Server 2008 as well as ITIL Foundation V3 certified. He holds a Engineer diploma in industrial computing and automation from France. His branch-related experience covers Chemicals &amp; Pharmaceuticals, Banking \/ Financial Services, and many other industries.","url":"https:\/\/www.dbi-services.com\/blog\/author\/stephane-haby\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/2220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=2220"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/2220\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media\/2221"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=2220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=2220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=2220"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=2220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}