<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Powershell Add-NcCifsServer keeps failing - Cannot find an appropriate domain controller in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125286#M26998</link>
    <description>&lt;P&gt;I'm struggling to understand why I can't create a new CIFS server from Powershell when I can do it from the CLI with the all the same settings no problem. &amp;nbsp;Since I can do it just fine from the CLI I would assume all the DNS and networking settings are correct. &amp;nbsp;Also, I've verfied I'm not making any typos when typing the userid and password for the active directory domain. &amp;nbsp;I even tried creating the computer object in AD before running&amp;nbsp;&lt;SPAN&gt;Add-NcCifsServer but it didn't help. &amp;nbsp;Any help or suggestions would be appreciated! &amp;nbsp;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcVserver $DestinationSVM | Add-NcCifsServer -Name $NewCIFSServerName.ToUpper() -Domain &amp;lt;my FQDN&amp;gt; -AdminUsername $DomainUser -AdminPassword $DomainPass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-NcCifsServer : Failed to create the Active Directory machine account "DRPTEST_VFILER". Reason: SecD Error: Cannot find an appropriate domain controller Details:&lt;BR /&gt;Error: Machine account creation procedure failed [ 0 ms] Trying to create machine account 'DRPTEST_VFILER' in domain '&amp;lt;my FQDN&amp;gt;' for&lt;BR /&gt;Vserver 'eau-test_vfilerrs' [ 4] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 107] Successfully connected to xxx.xxx.xxx.xxx:389 using&lt;BR /&gt;TCP [ 216] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 320] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 436] No servers found in&lt;BR /&gt;DNS lookup for _ldap._tcp.EauClaire._sites.&amp;lt;my FQDN&amp;gt;. [ 448] No servers found in DNS lookup for&lt;BR /&gt;_ldap._tcp.&amp;lt;my FQDN&amp;gt;. [ 448] No servers available for MS_LDAP_AD, vserver: 21, domain: &amp;lt;my FQDN&amp;gt;. [ 448] Cannot find any&lt;BR /&gt;domain controllers; verify the domain name and the node's DNS configuration **[ 448] FAILURE: Failed to find a domain controller [ 448] Uncaptured&lt;BR /&gt;failure while creating server account .&lt;BR /&gt;At line:1 char:37&lt;BR /&gt;+ ... nationSVM | Add-NcCifsServer -Name $NewCIFSServerName.ToUpper() -Doma ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (naeau1:NcController) [Add-NcCifsServer], EAPIERROR&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.AddNcCifsServer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 18:18:39 GMT</pubDate>
    <dc:creator>wafl_scan</dc:creator>
    <dc:date>2025-06-04T18:18:39Z</dc:date>
    <item>
      <title>Powershell Add-NcCifsServer keeps failing - Cannot find an appropriate domain controller</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125286#M26998</link>
      <description>&lt;P&gt;I'm struggling to understand why I can't create a new CIFS server from Powershell when I can do it from the CLI with the all the same settings no problem. &amp;nbsp;Since I can do it just fine from the CLI I would assume all the DNS and networking settings are correct. &amp;nbsp;Also, I've verfied I'm not making any typos when typing the userid and password for the active directory domain. &amp;nbsp;I even tried creating the computer object in AD before running&amp;nbsp;&lt;SPAN&gt;Add-NcCifsServer but it didn't help. &amp;nbsp;Any help or suggestions would be appreciated! &amp;nbsp;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcVserver $DestinationSVM | Add-NcCifsServer -Name $NewCIFSServerName.ToUpper() -Domain &amp;lt;my FQDN&amp;gt; -AdminUsername $DomainUser -AdminPassword $DomainPass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add-NcCifsServer : Failed to create the Active Directory machine account "DRPTEST_VFILER". Reason: SecD Error: Cannot find an appropriate domain controller Details:&lt;BR /&gt;Error: Machine account creation procedure failed [ 0 ms] Trying to create machine account 'DRPTEST_VFILER' in domain '&amp;lt;my FQDN&amp;gt;' for&lt;BR /&gt;Vserver 'eau-test_vfilerrs' [ 4] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 107] Successfully connected to xxx.xxx.xxx.xxx:389 using&lt;BR /&gt;TCP [ 216] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 320] Successfully connected to xxx.xxx.xxx.xxx:389 using TCP [ 436] No servers found in&lt;BR /&gt;DNS lookup for _ldap._tcp.EauClaire._sites.&amp;lt;my FQDN&amp;gt;. [ 448] No servers found in DNS lookup for&lt;BR /&gt;_ldap._tcp.&amp;lt;my FQDN&amp;gt;. [ 448] No servers available for MS_LDAP_AD, vserver: 21, domain: &amp;lt;my FQDN&amp;gt;. [ 448] Cannot find any&lt;BR /&gt;domain controllers; verify the domain name and the node's DNS configuration **[ 448] FAILURE: Failed to find a domain controller [ 448] Uncaptured&lt;BR /&gt;failure while creating server account .&lt;BR /&gt;At line:1 char:37&lt;BR /&gt;+ ... nationSVM | Add-NcCifsServer -Name $NewCIFSServerName.ToUpper() -Doma ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (naeau1:NcController) [Add-NcCifsServer], EAPIERROR&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Cifs.AddNcCifsServer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:18:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125286#M26998</guid>
      <dc:creator>wafl_scan</dc:creator>
      <dc:date>2025-06-04T18:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Add-NcCifsServer keeps failing - Cannot find an appropriate domain controller</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125309#M27000</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plaese run 'DCDIAG /testDNS' utility on Your nearest domain controller and check its output for any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me You have some problems with Your AD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 12:08:03 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125309#M27000</guid>
      <dc:creator>DaemonFF</dc:creator>
      <dc:date>2016-11-11T12:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Add-NcCifsServer keeps failing - Cannot find an appropriate domain controller</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125316#M27001</link>
      <description>&lt;P&gt;Thanks for the suggestion.&amp;nbsp; Ran dcdiag /test:dns and everything passed.&amp;nbsp; Everything works fine from the NetApp CLI or with AD in general.&amp;nbsp; It seems that when the Powershell toolkit issues its calls to Active Directory those calls don't seem to be able to get all the information needed.&amp;nbsp; I'm not sure what would be different from doing the same thing in Powershell versus the CLI but there seems to be something different.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 14:06:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125316#M27001</guid>
      <dc:creator>wafl_scan</dc:creator>
      <dc:date>2016-11-11T14:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Add-NcCifsServer keeps failing - Cannot find an appropriate domain controller</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125521#M27045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you configure and enable DNS on the vserver before performing a cifs setup? EG:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PS C:\&amp;gt; get-help New-NcNetDns

NAME
    New-NcNetDns

SYNOPSIS
    Creates DNS configuration for a vserver.


SYNTAX
    New-NcNetDns [-Domains] &amp;lt;String[]&amp;gt; [[-NameServers] &amp;lt;String[]&amp;gt;] [-State &amp;lt;String&amp;gt;] [-TimeoutSeconds &amp;lt;Int32&amp;gt;] [-Attempts &amp;lt;Int32&amp;gt;] [-IsTldQueryEnabled [&amp;lt;Boolean&amp;gt;]]
    [-IsSourceAddressMatchRequired [&amp;lt;Boolean&amp;gt;]] [-IsPacketQueryMatchRequired [&amp;lt;Boolean&amp;gt;]] [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;]
    [-PipelineVariable &amp;lt;String&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 23:13:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-Add-NcCifsServer-keeps-failing-Cannot-find-an-appropriate-domain/m-p/125521#M27045</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2016-11-20T23:13:51Z</dc:date>
    </item>
  </channel>
</rss>

