# Managing Local Admins and Users without Active Directory

**URL:** <https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330>\
**Category:** PowerShell Help\
**Created:** [October 28, 2014, 8:14am UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330 "2014-10-28T08:14:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill-westrup](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bill-westrup](https://forums.powershell.org/u/bill-westrup)\
**Post date:** [October 28, 2014, 8:14am UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/1 "2014-10-28T08:14:58Z")

</div>

After googling this a bit, I’m starting to come to the conclusion that this simply isn’t possible with Powershell. All the code samples I’ve found use Active Directory, something as an OEM that I will never use.

Is this even possible???

---

<div class="post-metadata">

**Author:** ![oyvind-kallstad](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/oyvind-kallstad/32/810_2.png) [@oyvind-kallstad](https://forums.powershell.org/u/oyvind-kallstad)\
**Post date:** [October 28, 2014, 5:15pm UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/2 "2014-10-28T17:15:58Z")

</div>

Perhaps this module can be of help? [https://gallery.technet.microsoft.com/scriptcenter/f75801e7-169a-4737-952c-1341abea5823?SRC=Home](https://gallery.technet.microsoft.com/scriptcenter/f75801e7-169a-4737-952c-1341abea5823?SRC=Home)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [October 28, 2014, 9:27pm UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/3 "2014-10-28T21:27:55Z")

</div>

I suspect that there may be some confusion between the terms “Active Directory” and “ADSI” (Active Directory Service Interface). You can use ADSI as a programming API even in a workgroup or standalone computer environment, via its WinNT Provider. That’s how the module that Øyvind linked to works.

---

<div class="post-metadata">

**Author:** ![bill-westrup](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bill-westrup](https://forums.powershell.org/u/bill-westrup)\
**Post date:** [October 28, 2014, 10:33pm UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/4 "2014-10-28T22:33:59Z")

</div>

Thanks for the tip!..I had assumed I needed Active Directory to use any of the AD specific commands.

---

<div class="post-metadata">

**Author:** ![bill-westrup](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bill-westrup](https://forums.powershell.org/u/bill-westrup)\
**Post date:** [October 29, 2014, 3:13am UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/5 "2014-10-29T03:13:34Z")

</div>

The script you recommended is working as needed. Thanks!

---

<div class="post-metadata">

**Author:** ![bill-westrup](https://avatars.discourse-cdn.com/v4/letter/b/91b2a8/32.png) [@bill-westrup](https://forums.powershell.org/u/bill-westrup)\
**Post date:** [October 29, 2014, 3:15am UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/6 "2014-10-29T03:15:41Z")

</div>

This issue has been solved for me. Not sure how to mark the thread as such. Thanks, again!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:46pm UTC](https://forums.powershell.org/t/managing-local-admins-and-users-without-active-directory/3330/7 "2024-05-16T20:46:48Z")

</div>


