# Basic Powershell

**URL:** <https://forums.powershell.org/t/basic-powershell/18230>\
**Category:** PowerShell Help\
**Created:** [December 23, 2021, 7:56pm UTC](https://forums.powershell.org/t/basic-powershell/18230 "2021-12-23T19:56:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kirkt](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kirkt](https://forums.powershell.org/u/Kirkt)\
**Post date:** [December 23, 2021, 7:56pm UTC](https://forums.powershell.org/t/basic-powershell/18230/1 "2021-12-23T19:56:14Z")

</div>

I want to get local groups (get-localgroup) on a server and the members (get-localgroupmember) in those groups output to a file in a format like this.

Group name  
Member  
Member  
Member

Group Name  
Member  
Member

Etc…

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [December 23, 2021, 8:53pm UTC](https://forums.powershell.org/t/basic-powershell/18230/2 "2021-12-23T20:53:59Z")

</div>

Kirk,

Welcome to the forum. 👋🏽

> [@Kirkt](#):
>
> I want to get local groups (get-localgroup) on a server and the members (get-localgroupmember) in those groups output to a file in a format like this.

That’s a nice task to practice. Good luck with it! 😉

… or do you have any question?

Please keep in mind that we do not deliver ready to use code or solutions on request. We expect you to make an own attempt to solve a given problem. For such an easy task like this you should find at least a thousand examples already written. Use you favorite search engine and search for it. 😉👍🏽

If you already have code you wrote your self and just got stuck with please post this code here (formatted as code) and describe what kind of problem you have with it and we will be happy to assist.

Have a nice christmas! 😃 🎅🏽

---

<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:19pm UTC](https://forums.powershell.org/t/basic-powershell/18230/3 "2024-05-16T20:19:52Z")

</div>

Closed on May 16, 2024, 8:19pm UTC


