{"id":512,"date":"2010-06-26T12:41:48","date_gmt":"2010-06-26T12:41:48","guid":{"rendered":"https:\/\/www.buarotti.ch\/?p=512"},"modified":"2012-04-13T20:05:04","modified_gmt":"2012-04-13T20:05:04","slug":"test-code-highlight","status":"publish","type":"post","link":"https:\/\/www.buarotti.ch\/?p=512","title":{"rendered":"Create Local User in Powershell"},"content":{"rendered":"<p>Hier ein Beispiel wie ein lokaler User mit Powershell erstellt wird.<\/p>\n<pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\r\n$target = &#x5B;ADSI]&quot;WinNT:\/\/.&quot;\r\n$newuser = $target.Create(&quot;username&quot;, $_.Name)\r\n$newuser.SetPassword(&quot;the password&quot;)\r\n$newuser.SetInfo()\r\n$newuser.psbase.InvokeSet('AccountDisabled', $false)\r\n$newuser.SetInfo()\r\n\r\n<\/pre>\n<h3>Related Images:<\/h3>","protected":false},"excerpt":{"rendered":"<p>Hier ein Beispiel wie ein lokaler User mit Powershell erstellt wird. $target = &#x5B;ADSI]&quot;WinNT:\/\/.&quot; $newuser = $target.Create(&quot;username&quot;, $_.Name) $newuser.SetPassword(&quot;the password&quot;) $newuser.SetInfo() $newuser.psbase.InvokeSet(&#8218;AccountDisabled&#8216;, $false) $newuser.SetInfo() Related Images:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=512"}],"version-history":[{"count":14,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions"}],"predecessor-version":[{"id":1327,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions\/1327"}],"wp:attachment":[{"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.buarotti.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}