<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-6569019668746164093.post3604406476972345259..comments</id><updated>2011-01-13T16:48:40.269-08:00</updated><category term='Big Sur'/><category term='Perl'/><category term='Microsoft'/><category term='Uncategorized'/><category term='Windows'/><category term='drawings'/><category term='General'/><category term='Powershell'/><category term='vacation'/><category term='Linux'/><category term='California'/><category term='IIS 5.0'/><title type='text'>Comments on /var/blog: How to Create a Local User Using PowerShell with A...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.jarrettirons.com/feeds/3604406476972345259/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default'/><link rel='alternate' type='text/html' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html'/><author><name>Jarrett Irons</name><uri>https://profiles.google.com/107717554027086925770</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-UPu-hNqHQmQ/AAAAAAAAAAI/AAAAAAAACGQ/D_09EGwsogc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6569019668746164093.post-8596608726514037004</id><published>2011-01-13T16:48:40.269-08:00</published><updated>2011-01-13T16:48:40.269-08:00</updated><title type='text'>dude!!!  isn&amp;#39;t there a company policy not to i...</title><content type='html'>dude!!!  isn&amp;#39;t there a company policy not to include passwords in emails?  this is far worse, your blogging our password to the internet....lol.  thats a big no no jarett.  haven&amp;#39;t u learned from my mistakes?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/8596608726514037004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/8596608726514037004'/><link rel='alternate' type='text/html' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html?showComment=1294966120269#c8596608726514037004' title=''/><author><name>David</name><uri>http://www.blogger.com/profile/00011256490393556003</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html' ref='tag:blogger.com,1999:blog-6569019668746164093.post-3604406476972345259' source='http://www.blogger.com/feeds/6569019668746164093/posts/default/3604406476972345259' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1899376869'/></entry><entry><id>tag:blogger.com,1999:blog-6569019668746164093.post-4878498484682265994</id><published>2010-07-08T12:55:04.553-07:00</published><updated>2010-07-08T12:55:04.553-07:00</updated><title type='text'>Another version of your script could look like tha...</title><content type='html'>Another version of your script could look like that:&lt;br /&gt;&lt;br /&gt;function create-account ([string]$accountName = &amp;quot;test&amp;quot;) {   &lt;br /&gt;   $wmiuser = Get-WmiObject -class &amp;quot;Win32_UserAccount&amp;quot; -filter &amp;quot;name=&amp;#39;$accountName&amp;#39;&amp;quot;&lt;br /&gt;   if($wmiuser -eq $null)&lt;br /&gt;   { &lt;br /&gt;       $hostname = hostname   &lt;br /&gt;       $comp = [adsi] &amp;quot;WinNT://$hostname&amp;quot;  &lt;br /&gt;       $user = $comp.Create(&amp;quot;User&amp;quot;, $accountName)   &lt;br /&gt;       $user.SetPassword(&amp;quot;test&amp;quot;)   &lt;br /&gt;       $user.SetInfo()   &lt;br /&gt;   }&lt;br /&gt;   else&lt;br /&gt;   {&lt;br /&gt;    write-warning &amp;quot;User $accountName already exits&amp;quot;;&lt;br /&gt;   }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;foreach($userNo in 1..10)&lt;br /&gt;{&lt;br /&gt;    create-account(&amp;quot;test$userNo&amp;quot;);&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/4878498484682265994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/4878498484682265994'/><link rel='alternate' type='text/html' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html?showComment=1278618904553#c4878498484682265994' title=''/><author><name>Max Mulawa</name><uri>http://www.blogger.com/profile/05496192118119860493</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html' ref='tag:blogger.com,1999:blog-6569019668746164093.post-3604406476972345259' source='http://www.blogger.com/feeds/6569019668746164093/posts/default/3604406476972345259' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1891851497'/></entry><entry><id>tag:blogger.com,1999:blog-6569019668746164093.post-8605219094469085480</id><published>2009-07-13T08:08:55.346-07:00</published><updated>2009-07-13T08:08:55.346-07:00</updated><title type='text'>Also found this: some guy&amp;#39;s extensive post on ...</title><content type='html'>Also found this: some guy&amp;#39;s extensive post on Active Directory objects; should be able to apply some of this to local users.&lt;br /&gt;&lt;br /&gt;http://blogs.technet.com/benp/archive/2007/03/05/benp-s-basic-guide-to-managing-active-directory-objects-with-powershell.aspx</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/8605219094469085480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/8605219094469085480'/><link rel='alternate' type='text/html' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html?showComment=1247497735346#c8605219094469085480' title=''/><author><name>Michael</name><uri>http://www.blogger.com/profile/03038474705192797328</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html' ref='tag:blogger.com,1999:blog-6569019668746164093.post-3604406476972345259' source='http://www.blogger.com/feeds/6569019668746164093/posts/default/3604406476972345259' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1215708999'/></entry><entry><id>tag:blogger.com,1999:blog-6569019668746164093.post-3550103898063773049</id><published>2009-07-13T07:49:47.753-07:00</published><updated>2009-07-13T07:49:47.753-07:00</updated><title type='text'>*Reference on UserAccount
http://msdn.microsoft.co...</title><content type='html'>*Reference on UserAccount&lt;br /&gt;http://msdn.microsoft.com/en-us/library/aa394507%28VS.85%29.aspx&lt;br /&gt;&lt;br /&gt;*How to add a user to a group&lt;br /&gt;http://www.microsoft.com/technet/scriptcenter/resources/qanda/mar08/hey0311.mspx</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/3550103898063773049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/3550103898063773049'/><link rel='alternate' type='text/html' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html?showComment=1247496587753#c3550103898063773049' title=''/><author><name>Michael</name><uri>http://www.blogger.com/profile/03038474705192797328</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html' ref='tag:blogger.com,1999:blog-6569019668746164093.post-3604406476972345259' source='http://www.blogger.com/feeds/6569019668746164093/posts/default/3604406476972345259' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1215708999'/></entry><entry><id>tag:blogger.com,1999:blog-6569019668746164093.post-3221091054154373561</id><published>2009-07-13T06:30:09.771-07:00</published><updated>2009-07-13T06:30:09.771-07:00</updated><title type='text'></title><content type='html'>This comment has been removed by the author.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/3221091054154373561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6569019668746164093/3604406476972345259/comments/default/3221091054154373561'/><author><name>Michael</name><uri>http://www.blogger.com/profile/03038474705192797328</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.jarrettirons.com/2007/01/how-to-create-local-user-using.html' ref='tag:blogger.com,1999:blog-6569019668746164093.post-3604406476972345259' source='http://www.blogger.com/feeds/6569019668746164093/posts/default/3604406476972345259' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1215708999'/></entry></feed>
