<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Active-Directory on Apuntes de root</title>
    <link>https://blog.099c.org/tags/active-directory/</link>
    <description>Recent content in Active-Directory 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/active-directory/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>
    <item>
      <title>Script to grant dial-in access in Active Directory</title>
      <link>https://blog.099c.org/posts/script-to-grant-dial-in-access-in-active-directory/</link>
      <pubDate>Mon, 23 Jul 2012 00:00:00 +0000</pubDate><author>jorti@pm.me (Juan Orti Alcaine)</author>
      <guid>https://blog.099c.org/posts/script-to-grant-dial-in-access-in-active-directory/</guid>
      <description>&lt;p&gt;I have found that is not a trivial task to change the dial-in permission in an Active Directory user or computer because you must update the userParameters attribute at the same time that the msNPAllowDialin.&lt;/p&gt;&#xA;&lt;p&gt;In the &lt;a href=&#34;http://support.microsoft.com/kb/252398/en-us&#34; title=&#34;KB252398&#34;&gt;KB252398&lt;/a&gt;, Microsoft says to download the Active Directory Service Interface, so you can register adsras.dll, and use the ADSI interface it provides, but the download is no longer available.&lt;/p&gt;&#xA;&lt;p&gt;I have managed to create a script to allow dial-in: first, I have allowed manually a user to dial-in, and then I pick those permissions and apply them to the rest.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
