{"id":3796,"date":"2014-04-16T11:31:27","date_gmt":"2014-04-16T15:31:27","guid":{"rendered":"http:\/\/jdhitsolutions.com\/blog\/?p=3796"},"modified":"2014-04-15T12:33:02","modified_gmt":"2014-04-15T16:33:02","slug":"configure-local-user-account-with-dsc","status":"publish","type":"post","link":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/","title":{"rendered":"Configure Local User Account with DSC"},"content":{"rendered":"<p><a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png\" alt=\"talkbubble\" width=\"198\" height=\"208\" class=\"alignleft size-full wp-image-1688\" \/><\/a> Yesterday I posted an article on how to use PowerShell and the [ADSI] type accelerator to <a href=\"http:\/\/jdhitsolutions.com\/blog\/2014\/04\/set-local-user-account-with-powershell\/\" title=\"Set Local User Account with PowerShell\" target=\"_blank\">set a local user account<\/a>. However, if you are running PowerShell 4.0 you have another option: Desired State Configuration (DSC).<\/p>\n<p>I'm going to assume you have some basic understanding of how DSC works. If not, head over to the Public OneDrive <a href=\"https:\/\/onedrive.live.com\/?cid=7f868aa697b937fe&id=7F868AA697B937FE%21107\" title=\"visit the public folder\" target=\"_blank\">folder <\/a>for PowerShell.org and grab a copy of the free DSC ebook.<\/p>\n<p>DSC ships with a provider resource for user accounts.<\/p>\n<p><a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/dsc-userresource.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/dsc-userresource-300x90.png\" alt=\"dsc-userresource\" width=\"300\" height=\"90\" class=\"aligncenter size-medium wp-image-3797\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/dsc-userresource-300x90.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/dsc-userresource.png 784w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Because of the account password, the official stance is to use a certificate to handle encrypting the password. You can <a href=\"http:\/\/blogs.msdn.com\/b\/powershell\/archive\/2014\/01\/31\/want-to-secure-credentials-in-windows-powershell-desired-state-configuration.aspx\" title=\"read about securing credentials in a configuration\" target=\"_blank\">read about that<\/a> on the PowerShell team blog. But that's more than I want to deal with right now, plus I trust the security of my local test network so my configurations will store the passwords as plain text in the resulting MOFs.  I suppose I should show you the script I came up with.<\/p>\n<pre class=\"lang:ps decode:true \" >#requires -version 4.0\r\n#requires -RunasAdministrator\r\n\r\nparam(\r\n[Parameter(Position=0,Mandatory)]\r\n[ValidatePattern(\"^CHI\")]\r\n[string[]]$Computername\r\n)\r\n\r\nConfiguration LocalUserAccounts {\r\n\r\nParam(\r\n[Parameter(Position=0,Mandatory)]\r\n[ValidatePattern(\"^CHI\")]\r\n[string[]]$Computername,\r\n[Parameter(Position=1,Mandatory)]\r\n[PScredential]$Password\r\n)\r\n\r\nNode $Computername {\r\n\r\nUser LocalAdmin {\r\n    UserName=\"localadmin\"\r\n    Description=\"Local administrator account\"\r\n    Disabled=$False\r\n    Ensure=\"Present\"\r\n    Password=$Password\r\n}\r\n\r\n#add the account to the Administrators group\r\nGroup Administrators {\r\n    GroupName=\"Administrators\"\r\n    DependsOn=\"[User]LocalAdmin\"\r\n    MembersToInclude=\"localadmin\"\r\n}\r\n\r\n} #node\r\n\r\n} #end configuration\r\n\r\n#create config data to allow plain text passwords\r\n$ConfigData=@{AllNodes=$Null}\r\n\r\n#initialize an array for node information\r\n$nodes=@()\r\nforeach ($computer in $computername) {\r\n  #write-host \"Adding $computer\" -foreground green\r\n  #define a hashtable for each computername and add to the nodes array\r\n  $nodes+=@{\r\n          NodeName = \"$computer\"\r\n          PSDscAllowPlainTextPassword=$true\r\n        }\r\n}\r\n\r\n#add the nodes to AllNodes\r\n$ConfigData.AllNodes = $nodes \r\n\r\n#you will be prompted to enter a credential\r\nWrite-Host \"Enter the credential for localadmin\" -foregroundcolor green\r\n\r\n#create the configurations\r\nlocaluseraccounts $computername -configurationdata $configdata -OutputPath c:\\scripts\\LocalUserAccounts<\/pre>\n<p>This script is intended to define a set of MOFs for computers in my Globomantics domain that all start with \"CHI\". The script takes an array of computernames. From there it defines the configuration, defines the necessary configuration data to allow plain text passwords and then executes the configuration.  The configuration also has a Group resource to add the account to the local Administrators group. Note the DependsOn setting in the group configuration. This ensures that the account will be set up before adding it to the group.<\/p>\n<p>To create the configurations I run my script specifying the computer names.<br \/>\n<a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/config-localpassword-dsc.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/config-localpassword-dsc-300x225.png\" alt=\"config-localpassword-dsc\" width=\"300\" height=\"225\" class=\"aligncenter size-medium wp-image-3799\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/config-localpassword-dsc-300x225.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/config-localpassword-dsc.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>PowerShell will prompt me for the credentials. When finished I am left with a MOF file for each computer under C:\\Scripts\\LocalUserAccounts, because I specified an output path. When I'm ready, I can push the configuration to the servers:<\/p>\n<pre class=\"lang:ps decode:true \" >Start-DSCConfiguration -path c:\\scripts\\localuseraccounts<\/pre>\n<p>And that's it! I can verify using the NET USER command in a remote session.<\/p>\n<p><a href=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/verify-dsc-user.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/verify-dsc-user-300x85.png\" alt=\"verify-dsc-user\" width=\"300\" height=\"85\" class=\"aligncenter size-medium wp-image-3800\" srcset=\"https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/verify-dsc-user-300x85.png 300w, https:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/04\/verify-dsc-user.png 990w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>DSC promises to change the way IT Pros get their work done, and in a positive way! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterday I posted an article on how to use PowerShell and the [ADSI] type accelerator to set a local user account. However, if you are running PowerShell 4.0 you have another option: Desired State Configuration (DSC). I&#8217;m going to assume you have some basic understanding of how DSC works. If not, head over to the&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Configure Local User Account with #DSC http:\/\/wp.me\/p1nF6U-Ze #PowerShell","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,450,8],"tags":[436,534,540],"class_list":["post-3796","post","type-post","status-publish","format-standard","hentry","category-powershell","category-powershell-4-0","category-scripting","tag-dsc","tag-powershell","tag-scripting"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configure Local User Account with DSC &#8226; The Lonely Administrator<\/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:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Local User Account with DSC &#8226; The Lonely Administrator\" \/>\n<meta property=\"og:description\" content=\"Yesterday I posted an article on how to use PowerShell and the [ADSI] type accelerator to set a local user account. However, if you are running PowerShell 4.0 you have another option: Desired State Configuration (DSC). I&#039;m going to assume you have some basic understanding of how DSC works. If not, head over to the...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/\" \/>\n<meta property=\"og:site_name\" content=\"The Lonely Administrator\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-16T15:31:27+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png\" \/>\n<meta name=\"author\" content=\"Jeffery Hicks\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:site\" content=\"@JeffHicks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeffery Hicks\" \/>\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:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/\"},\"author\":{\"name\":\"Jeffery Hicks\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"headline\":\"Configure Local User Account with DSC\",\"datePublished\":\"2014-04-16T15:31:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/\"},\"wordCount\":335,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/10\\\/talkbubble.png\",\"keywords\":[\"DSC\",\"PowerShell\",\"Scripting\"],\"articleSection\":[\"PowerShell\",\"PowerShell 4.0\",\"Scripting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/\",\"name\":\"Configure Local User Account with DSC &#8226; The Lonely Administrator\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/10\\\/talkbubble.png\",\"datePublished\":\"2014-04-16T15:31:27+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#primaryimage\",\"url\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/10\\\/talkbubble.png\",\"contentUrl\":\"http:\\\/\\\/jdhitsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/10\\\/talkbubble.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/powershell\\\/3796\\\/configure-local-user-account-with-dsc\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"PowerShell\",\"item\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/category\\\/powershell\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Local User Account with DSC\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/\",\"name\":\"The Lonely Administrator\",\"description\":\"Practical Advice for the Automating IT Pro\",\"publisher\":{\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/jdhitsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d0258030b41f07fd745f4078bdf5b6c9\",\"name\":\"Jeffery Hicks\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\",\"caption\":\"Jeffery Hicks\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configure Local User Account with DSC &#8226; The Lonely Administrator","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:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/","og_locale":"en_US","og_type":"article","og_title":"Configure Local User Account with DSC &#8226; The Lonely Administrator","og_description":"Yesterday I posted an article on how to use PowerShell and the [ADSI] type accelerator to set a local user account. However, if you are running PowerShell 4.0 you have another option: Desired State Configuration (DSC). I'm going to assume you have some basic understanding of how DSC works. If not, head over to the...","og_url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/","og_site_name":"The Lonely Administrator","article_published_time":"2014-04-16T15:31:27+00:00","og_image":[{"url":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png","type":"","width":"","height":""}],"author":"Jeffery Hicks","twitter_card":"summary_large_image","twitter_creator":"@JeffHicks","twitter_site":"@JeffHicks","twitter_misc":{"Written by":"Jeffery Hicks","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#article","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/"},"author":{"name":"Jeffery Hicks","@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"headline":"Configure Local User Account with DSC","datePublished":"2014-04-16T15:31:27+00:00","mainEntityOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/"},"wordCount":335,"commentCount":3,"publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png","keywords":["DSC","PowerShell","Scripting"],"articleSection":["PowerShell","PowerShell 4.0","Scripting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/","url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/","name":"Configure Local User Account with DSC &#8226; The Lonely Administrator","isPartOf":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#primaryimage"},"image":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#primaryimage"},"thumbnailUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png","datePublished":"2014-04-16T15:31:27+00:00","breadcrumb":{"@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#primaryimage","url":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png","contentUrl":"http:\/\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3796\/configure-local-user-account-with-dsc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"PowerShell","item":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},{"@type":"ListItem","position":2,"name":"Configure Local User Account with DSC"}]},{"@type":"WebSite","@id":"https:\/\/jdhitsolutions.com\/blog\/#website","url":"https:\/\/jdhitsolutions.com\/blog\/","name":"The Lonely Administrator","description":"Practical Advice for the Automating IT Pro","publisher":{"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jdhitsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/jdhitsolutions.com\/blog\/#\/schema\/person\/d0258030b41f07fd745f4078bdf5b6c9","name":"Jeffery Hicks","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg","caption":"Jeffery Hicks"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/832ae5d438fdcfc1420d720cd1991307927de8a0b12f2342e81c30f773e21098?s=96&d=wavatar&r=pg"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":3848,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell-4-0\/3848\/creating-a-dsc-configuration-template\/","url_meta":{"origin":3796,"position":0},"title":"Creating a DSC Configuration Template","author":"Jeffery Hicks","date":"May 21, 2014","format":false,"excerpt":"During the recent TechEd in Houston, there was a lot of talk and excitement about Desired State Configuration, or DSC. I'm not going to cover DSC itself here but rather address a minor issue for those of you just getting started. When you build a configuration, how can your figure\u2026","rel":"","context":"In &quot;PowerShell 4.0&quot;","block_context":{"text":"PowerShell 4.0","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell-4-0\/"},"img":{"alt_text":"get-dscresource","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/05\/get-dscresource-1024x411.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3857,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3857\/dsc-resource-snippets\/","url_meta":{"origin":3796,"position":1},"title":"DSC Resource Snippets","author":"Jeffery Hicks","date":"May 23, 2014","format":false,"excerpt":"A few days ago I posted a PowerShell script that would generate a DSC configuration template. The idea was to generate all the code you might need and let you whittle it down to just what you need. On my primary system, I don't have any community or experimental DSC\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"talkbubble","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2011\/10\/talkbubble.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3861,"url":"https:\/\/jdhitsolutions.com\/blog\/training\/3861\/new-powershell-pluralsight-course\/","url_meta":{"origin":3796,"position":2},"title":"New PowerShell Pluralsight Course","author":"Jeffery Hicks","date":"May 23, 2014","format":false,"excerpt":"I am so happy to announce that my first course under the Pluralsight badge has been released. My latest course is titled PowerShell v4 New Features. This course is aimed at IT Pros with previous experience using PowerShell, especially PowerShell v3. The course runs just under 3 hours (although it\u2026","rel":"","context":"In &quot;Pluralsight&quot;","block_context":{"text":"Pluralsight","link":"https:\/\/jdhitsolutions.com\/blog\/category\/pluralsight\/"},"img":{"alt_text":"WatermarkLogo151x79","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2014\/05\/WatermarkLogo151x79.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":4693,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4693\/computer-certificate-tools\/","url_meta":{"origin":3796,"position":3},"title":"Computer Certificate tools","author":"Jeffery Hicks","date":"December 21, 2015","format":false,"excerpt":"In my Pluralsight course on Advanced DSC I used a few functions I wrote to make it easier to work with computer certificates. If you need to encrypt things like passwords in a DSC configuration,\u00a0 you must some type of certificate thumbprint as well as a copy of the certificate.\u2026","rel":"","context":"In &quot;DSC&quot;","block_context":{"text":"DSC","link":"https:\/\/jdhitsolutions.com\/blog\/category\/dsc\/"},"img":{"alt_text":"Exporting a certificate","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-4.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-4.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/12\/image_thumb-4.png?resize=525%2C300 1.5x"},"classes":[]},{"id":4348,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/4348\/practicing-powershell-in-helsinki\/","url_meta":{"origin":3796,"position":4},"title":"Practicing PowerShell in Helsinki","author":"Jeffery Hicks","date":"April 8, 2015","format":false,"excerpt":"I am very happy to announce that in addition to my appearance at the MVP-AllStars conference on 9 June 2015 in beautiful Helsinki, Finland but that I will be following it with a 2 day, intense PowerShell workshop aimed at J\u00e4rjestelm\u00e4nvalvojat (system administrators or IT Pros). I think this is\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"helsinki","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2015\/04\/helsinki.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3425,"url":"https:\/\/jdhitsolutions.com\/blog\/powershell\/3425\/powershell-4-0-a-first-look\/","url_meta":{"origin":3796,"position":5},"title":"PowerShell 4.0 A First Look","author":"Jeffery Hicks","date":"September 12, 2013","format":false,"excerpt":"My first look at PowerShell 4.0 is now online at 4Sysops.com. A few interesting bits but with 3.0 still gaining traction I'm wondering how much people will actually adopt 4.0. It seems to me that some of the biggest features like Desired State Configuration will require Windows Server 2012 on\u2026","rel":"","context":"In &quot;PowerShell&quot;","block_context":{"text":"PowerShell","link":"https:\/\/jdhitsolutions.com\/blog\/category\/powershell\/"},"img":{"alt_text":"021913_2047_WordTest1.png","src":"https:\/\/i0.wp.com\/jdhitsolutions.com\/blog\/wp-content\/uploads\/2013\/02\/021913_2047_WordTest1.png?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3796"}],"version-history":[{"count":0,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3796\/revisions"}],"wp:attachment":[{"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jdhitsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}