<?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 Re: query active directory from script in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8037#M1693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also there is a good discussion on a similar topic here : &lt;A _jive_internal="true" href="https://community.netapp.com/message/120958#120958" title="https://communities.netapp.com/message/120958#120958" target="_blank"&gt;https://communities.netapp.com/message/120958#120958&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Mar 2014 17:39:41 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2014-03-10T17:39:41Z</dc:date>
    <item>
      <title>query active directory from script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8027#M1687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, I am trying to get domain group membership from an AD controller.&amp;nbsp; WFA 2.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I try using this:&amp;nbsp; $users = get-adgroupmember -identity $groups I get the following:&amp;nbsp;&amp;nbsp; 11:19:35.716 ERROR&amp;nbsp; [no op jpmc] The server has rejected the client credentials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I enter in any combination of credentials, the workflow just hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have identified that the query I am using works from powershell, but not from the script. I tried hardcoding the credentials and server, as well as using the credential cache but it does not matter. Whenever I attempt to use any credentials, everything hangs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone gotten AD queries to work from within a command script?&amp;nbsp; If so, got some code you can share?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, has anyone developed an Active Directory data source? It would be great if we could populate a custom table from AD and then just query that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:41:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8027#M1687</guid>
      <dc:creator>stephen2</dc:creator>
      <dc:date>2025-06-05T05:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: query active directory from script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8033#M1691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ &lt;SPAN style="color: #3366ff;"&gt;H&lt;SPAN style="font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;as anyone gotten AD queries to work from within a command script?&amp;nbsp; If so, got some code you can share?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;====&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; background-color: #ffffff;"&gt;About executing AD queries in WFA commands, it should be possible, but till now I haven't tried it. I'll try to get it working and post how to do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;@ &lt;SPAN style="color: #3366ff;"&gt;Also, has anyone developed an Active Directory data source? It would be great if we could populate a custom table from AD and then just query that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;======&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;I have a sample Data Source Type for Active Directory using a powershell script. Attaching it here. This fetches the members of OU=Computers and Users. You can see it and modify it according to your need. If you need further help, you can post your queries here and I'll try to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;Import this on a WFA2.1 or above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Arial, Helvetica, Verdana, sans-serif; color: #454545; background-color: #ffffff;"&gt;sinhaa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:33:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8033#M1691</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-03-10T17:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: query active directory from script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8037#M1693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also there is a good discussion on a similar topic here : &lt;A _jive_internal="true" href="https://community.netapp.com/message/120958#120958" title="https://communities.netapp.com/message/120958#120958" target="_blank"&gt;https://communities.netapp.com/message/120958#120958&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 17:39:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8037#M1693</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-03-10T17:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: query active directory from script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8041#M1695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you execute the workflow, it is good to just test the command.&lt;/P&gt;&lt;P&gt;There is a "Test" button in the command screen, it is good to check&lt;/P&gt;&lt;P&gt;if that is working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 05:48:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/query-active-directory-from-script/m-p/8041#M1695</guid>
      <dc:creator>abhit</dc:creator>
      <dc:date>2014-03-11T05:48:34Z</dc:date>
    </item>
  </channel>
</rss>

