<?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 oasysadmin</title>
    <link>https://oasysadmin.com/tags/active-directory/</link>
    <description>Recent content in Active-Directory on oasysadmin</description>
    <generator>Hugo</generator>
    <language>en-gb</language>
    <lastBuildDate>Thu, 04 Feb 2016 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://oasysadmin.com/tags/active-directory/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Force a manual sync with Microsoft Entra Connect (formerly Azure AD Connect)</title>
      <link>https://oasysadmin.com/blog/force-manual-synchronisation-when-using-azure-ad-connect/</link>
      <pubDate>Thu, 04 Feb 2016 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/force-manual-synchronisation-when-using-azure-ad-connect/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; Azure AD Connect is now &lt;strong&gt;Microsoft Entra Connect Sync&lt;/strong&gt;, and the 2016 method (&lt;code&gt;DirectorySyncClientCmd delta&lt;/code&gt;) has been replaced by a PowerShell cmdlet.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;By default, Entra Connect syncs every 30 minutes. When you&amp;rsquo;ve just created a user, changed a group or fixed an attribute and don&amp;rsquo;t want to wait, you can trigger a sync yourself.&lt;/p&gt;&#xA;&lt;h2 id=&#34;run-a-sync-now&#34;&gt;Run a sync now&lt;/h2&gt;&#xA;&lt;p&gt;On the Entra Connect server, in an elevated PowerShell window:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Checking the DNS records Active Directory replication depends on</title>
      <link>https://oasysadmin.com/blog/using-dnslint-to-verify-the-integrity-of-dns-records-used-for-active-directory-replication/</link>
      <pubDate>Thu, 15 Nov 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/using-dnslint-to-verify-the-integrity-of-dns-records-used-for-active-directory-replication/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The original 2012 post covered DNSLint, a Microsoft support tool that has since been retired and isn&amp;rsquo;t available for current Windows versions. The same checks are now built into Windows.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;why-it-matters&#34;&gt;Why it matters&lt;/h2&gt;&#xA;&lt;p&gt;Active Directory replication relies on DNS. Each domain controller registers SRV records and a CNAME under &lt;code&gt;_msdcs&lt;/code&gt; so other DCs can find it. If those records are missing or stale (often after removing a failed DC), replication breaks in ways that are hard to diagnose.&lt;/p&gt;</description>
    </item>
    <item>
      <title>DFSR not replicating certain files (the temporary attribute)</title>
      <link>https://oasysadmin.com/blog/frs-or-dfsr-not-replicating-certain-files/</link>
      <pubDate>Mon, 05 Mar 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/frs-or-dfsr-not-replicating-certain-files/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The original issue was with FRS, which is long deprecated: newer Windows Server versions can&amp;rsquo;t use it for SYSVOL, so domains should have migrated to DFSR. The same behaviour applies to DFSR, so the fix is unchanged.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The problem&lt;/h2&gt;&#xA;&lt;p&gt;I added a JPEG to the SYSVOL share for a Group Policy Preferences file copy. A week later, clients still weren&amp;rsquo;t getting it. The file was only on the domain controller I&amp;rsquo;d copied it to; the replication logs showed no errors, and a test text file replicated straight away.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Find an Active Directory user&#39;s OU with PowerShell</title>
      <link>https://oasysadmin.com/blog/find-an-active-directory-users-organizational-unit-ou-using-powershell/</link>
      <pubDate>Wed, 22 Feb 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/find-an-active-directory-users-organizational-unit-ou-using-powershell/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The original one-liner still works. I&amp;rsquo;ve added ways to show just the OU and to search when you only know part of a name.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;Active Directory Users and Computers can find a user, but it doesn&amp;rsquo;t make it obvious which OU they&amp;rsquo;re in. PowerShell does (it needs the Active Directory module, part of RSAT).&lt;/p&gt;&#xA;&lt;h2 id=&#34;by-username&#34;&gt;By username&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-powershell&#34;&gt;Get-ADUser jbloggs | Select-Object Name, DistinguishedName&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The distinguished name shows the full path, for example &lt;code&gt;CN=Joe Bloggs,OU=Users,OU=London,DC=contoso,DC=com&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Back up all Group Policy Objects with Backup-GPO and the GPMC</title>
      <link>https://oasysadmin.com/blog/back-up-all-group-policy-objects-using-backup-gpo-and-the-group-policy-management-console/</link>
      <pubDate>Tue, 14 Feb 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/back-up-all-group-policy-objects-using-backup-gpo-and-the-group-policy-management-console/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The commands are unchanged. I&amp;rsquo;ve added what a GPO backup doesn&amp;rsquo;t cover, and how to schedule it.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;method-1-powershell&#34;&gt;Method 1: PowerShell&lt;/h2&gt;&#xA;&lt;p&gt;On a domain controller, or any machine with the Group Policy RSAT tools:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-powershell&#34;&gt;Backup-GPO -All -Path &amp;quot;C:\GPOBackups\$(Get-Date -Format yyyy-MM-dd)&amp;quot;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The dated folder keeps each run separate. Create the folder first if your PowerShell version complains it doesn&amp;rsquo;t exist.&lt;/p&gt;&#xA;&lt;h2 id=&#34;method-2-the-group-policy-management-console&#34;&gt;Method 2: the Group Policy Management Console&lt;/h2&gt;&#xA;&lt;p&gt;In &lt;code&gt;gpmc.msc&lt;/code&gt;, expand your domain, right-click &lt;strong&gt;Group Policy Objects&lt;/strong&gt; → &lt;strong&gt;Back Up All…&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Export a list of members from an Active Directory group</title>
      <link>https://oasysadmin.com/blog/export-a-list-of-members-from-an-active-directory-group-to-a-text-file/</link>
      <pubDate>Fri, 06 Jan 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/export-a-list-of-members-from-an-active-directory-group-to-a-text-file/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The 2012 commands still work. PowerShell is now the better option, and I&amp;rsquo;ve added Entra ID groups too.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;p&gt;In every example, replace &lt;code&gt;Group Name&lt;/code&gt; with the name of your group.&lt;/p&gt;&#xA;&lt;h2 id=&#34;quick-and-simple-net-group&#34;&gt;Quick and simple: &lt;code&gt;net group&lt;/code&gt;&lt;/h2&gt;&#xA;&lt;pre&gt;&lt;code class=&#34;language-bat&#34;&gt;net group &amp;quot;Group Name&amp;quot; /domain &amp;gt; memberlist.txt&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;This gives you a list of usernames. It&amp;rsquo;s handy for a quick look, but the output is in columns and awkward to reuse.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Force the KCC (Knowledge Consistency Checker) to run on a domain controller</title>
      <link>https://oasysadmin.com/blog/force-kcc-knowledge-consistency-checker-to-run-on-a-domain-controller/</link>
      <pubDate>Thu, 05 Jan 2012 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/force-kcc-knowledge-consistency-checker-to-run-on-a-domain-controller/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; Originally written for Windows Server 2008. The commands are unchanged on current Windows Server versions, and I&amp;rsquo;ve added a few extras.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The problem&lt;/h2&gt;&#xA;&lt;p&gt;After demoting domain controllers, you can be left with stale NTDS connection objects in Active Directory. In my case, a DC at our central site still had a connection object pointing at a remote-site DC that had just been demoted. It needed to point at the new DC at that site instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Apply a Group Policy to a specific operating system</title>
      <link>https://oasysadmin.com/blog/apply-a-group-policy-to-a-specific-operating-system/</link>
      <pubDate>Tue, 25 Oct 2011 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/apply-a-group-policy-to-a-specific-operating-system/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; I originally wrote this during a Windows 7 rollout, to apply settings to new Windows 7 machines without touching the Windows XP clients. The method is the same today; the queries below are updated for current versions.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;create-the-wmi-filter&#34;&gt;Create the WMI filter&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Open the Group Policy Management Console (&lt;code&gt;gpmc.msc&lt;/code&gt;) and go to &lt;strong&gt;WMI Filters&lt;/strong&gt; under your domain.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;untitled1.png&#34; alt=&#34;WMI Filters in the Group Policy Management Console&#34;&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Right-click &lt;strong&gt;WMI Filters&lt;/strong&gt; → &lt;strong&gt;New&lt;/strong&gt;. Give the filter a name, click &lt;strong&gt;Add&lt;/strong&gt;, and enter the query (namespace &lt;code&gt;root\CIMv2&lt;/code&gt;).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Event 12 Time-Service and the PDC Emulator role</title>
      <link>https://oasysadmin.com/blog/event-12-time-service-and-the-pdc-emulator-role/</link>
      <pubDate>Thu, 22 Sep 2011 00:00:00 +0000</pubDate>
      <guid>https://oasysadmin.com/blog/event-12-time-service-and-the-pdc-emulator-role/</guid>
      <description>&lt;blockquote&gt;&#xA;&lt;p&gt;&lt;strong&gt;Updated November 2026.&lt;/strong&gt; The fix is unchanged on current Windows Server versions. I&amp;rsquo;ve corrected the NTP pool address, switched to PowerShell where it&amp;rsquo;s simpler, and added a note on virtualised domain controllers.&lt;/p&gt;&lt;/blockquote&gt;&#xA;&lt;h2 id=&#34;the-problem&#34;&gt;The problem&lt;/h2&gt;&#xA;&lt;p&gt;After moving the PDC Emulator FSMO role to a new domain controller, you&amp;rsquo;ll see this in the System event log:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Event ID 12, Source: Time-Service&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
