<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Poweshell on Apuntes de root</title>
    <link>https://blog.099c.org/tags/poweshell/</link>
    <description>Recent content in Poweshell on Apuntes de root</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <managingEditor>jorti@pm.me (Juan Orti Alcaine)</managingEditor>
    <webMaster>jorti@pm.me (Juan Orti Alcaine)</webMaster>
    <lastBuildDate>Mon, 08 Sep 2014 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.099c.org/tags/poweshell/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>One-liner to get all the members of an AD group</title>
      <link>https://blog.099c.org/posts/one-liner-to-get-all-the-members-of-an-ad-group/</link>
      <pubDate>Mon, 08 Sep 2014 00:00:00 +0000</pubDate><author>jorti@pm.me (Juan Orti Alcaine)</author>
      <guid>https://blog.099c.org/posts/one-liner-to-get-all-the-members-of-an-ad-group/</guid>
      <description>&lt;p&gt;With this line you get all the users of an Active Directory group recursively, so any nested group is expanded. It is also exported to a CSV file.&lt;/p&gt;&#xA;&lt;p&gt;[code lang=&amp;ldquo;powershell&amp;rdquo; light=&amp;ldquo;true&amp;rdquo;]Get-ADGroupMember -Identity &amp;lsquo;GroupName&amp;rsquo; -Recursive | Get-ADUser -Properties &amp;lsquo;*&amp;rsquo; | Select-Object samAccountName, name, givenName, sn, mail, l | Export-Csv -Encoding UTF8 -Delimiter &amp;lsquo;;&amp;rsquo; -path &amp;lsquo;.users.csv&amp;rsquo;[/code]&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
