<?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: How does one query for the membership of the builtin\administrators group using Powershell? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30775#M1430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a script here that gives me the info I am looking for, &lt;A href="http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt" title="http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt" target="_blank"&gt;http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the results for the same system from my previous posting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Computer: DOTSIM801&lt;/P&gt;&lt;P&gt;Group: Administrators&lt;/P&gt;&lt;P&gt;WinNT://DOTSIM801A-1/administrator&lt;/P&gt;&lt;P&gt;WinNT://TEST/Domain Admins&lt;/P&gt;&lt;P&gt;LDAP://CN=Chris,CN=Users,DC=test,DC=ntap&lt;/P&gt;&lt;P&gt;LDAP://CN=Administrator,CN=Users,DC=test,DC=ntap&lt;/P&gt;&lt;P&gt;WinNT://TEST/chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ones listed with LDAP are the users found in the WinNT://TEST/Domain Admins group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty nifty. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 22:50:39 GMT</pubDate>
    <dc:creator>ccastane</dc:creator>
    <dc:date>2012-11-21T22:50:39Z</dc:date>
    <item>
      <title>How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30745#M1425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to me that this should be really simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SOX audit requires me to provide test results for each in scope folder.&amp;nbsp; I have to list what users and groups have access and what that level of access for each in scope folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The accounts that are in AD are easily handled by Powershell's AD provider.&amp;nbsp; Each folder also lists the local (NetApp) administrators group.as having full control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to automate a query of the membership of the builtin\adminstrators group to complete this process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get-nagroup only lists the local groups on the filer.&amp;nbsp; But there does not appear to be a way to get this cmdlet to give me the membership of any one group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, what am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:20:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30745#M1425</guid>
      <dc:creator>rheichmann</dc:creator>
      <dc:date>2025-06-05T06:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30751#M1426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, it is really simple!&amp;nbsp; &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-NaUser -Group Administrators&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 03:15:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30751#M1426</guid>
      <dc:creator>timothyn</dc:creator>
      <dc:date>2012-08-16T03:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30759#M1427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That command definately gets me closer to my goal.&amp;nbsp; But not all the way.&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.netapp.com/5.0.1/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The local administrators group on my filer includes the local administrator account.&amp;nbsp; But it also includes about 6 accounts from the 2008 R2 AD domain that the filer is assoicated with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Running the command you suggest only displays the local administrator in the results.&amp;nbsp; It does not display any information about the 6 domain accounts that are also in the local administrators group on my filer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And before you ask the quesiton, I can confirm that my filer sees my domain just fine.&amp;nbsp; cifs testdc and cifs lookup give solid results for the accounts that should be showing up in this query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 17:08:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30759#M1427</guid>
      <dc:creator>rheichmann</dc:creator>
      <dc:date>2012-08-16T17:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30764#M1428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, figured it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once CIFS is enabled, The filer looks mostly like another member server to other Windows hosts.&amp;nbsp; So much so that PowerShell's ADSI adaptor can query the filer like any other Windows machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following basic PowerShell script can be used to query member servers (including a NetApp filer) or user PC's for local group membership:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$group &lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;[ADSI]&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;"WinNT://&lt;EM&gt;computer name&lt;/EM&gt;/&lt;EM&gt;group name&lt;/EM&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$members &lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; @(&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-size: 10pt; font-family: Consolas;"&gt;$group&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.psbase.Invoke(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;"Members"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;$members&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: Consolas;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt; {&lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-size: 10pt; font-family: Consolas;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;.GetType().InvokeMember(&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;"Name"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Consolas;"&gt;'GetProperty'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-size: 10pt; font-family: Consolas;"&gt;$null&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-size: 10pt; font-family: Consolas;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-size: 10pt; font-family: Consolas;"&gt;$null&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;)}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;Just insert your specific computer name and group name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas;"&gt;And unlike "get-nauser -group administrators"&amp;nbsp; This will return all of accounts (local and domain) in the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2012 19:12:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30764#M1428</guid>
      <dc:creator>rheichmann</dc:creator>
      <dc:date>2012-08-16T19:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30771#M1429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rolf, is there a way to retrieve the source of the account info - local filer or domain? The results don't indicate this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results for local Administrators group:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;administrator&lt;/P&gt;&lt;P&gt;Domain Admins&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what it looks like using Computer Management on Windows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DOTSIM801\administrator (S-1-5-21....)&lt;/P&gt;&lt;P&gt;TEST\Domain Admins&lt;/P&gt;&lt;P&gt;TEST\chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:23:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30771#M1429</guid>
      <dc:creator>ccastane</dc:creator>
      <dc:date>2012-11-21T22:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How does one query for the membership of the builtin\administrators group using Powershell?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30775#M1430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a script here that gives me the info I am looking for, &lt;A href="http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt" title="http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt" target="_blank"&gt;http://www.rlmueller.net/PowerShell/PSEnumLocalGroup.txt&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the results for the same system from my previous posting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Computer: DOTSIM801&lt;/P&gt;&lt;P&gt;Group: Administrators&lt;/P&gt;&lt;P&gt;WinNT://DOTSIM801A-1/administrator&lt;/P&gt;&lt;P&gt;WinNT://TEST/Domain Admins&lt;/P&gt;&lt;P&gt;LDAP://CN=Chris,CN=Users,DC=test,DC=ntap&lt;/P&gt;&lt;P&gt;LDAP://CN=Administrator,CN=Users,DC=test,DC=ntap&lt;/P&gt;&lt;P&gt;WinNT://TEST/chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ones listed with LDAP are the users found in the WinNT://TEST/Domain Admins group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty nifty. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 22:50:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/How-does-one-query-for-the-membership-of-the-builtin-administrators-group-using/m-p/30775#M1430</guid>
      <dc:creator>ccastane</dc:creator>
      <dc:date>2012-11-21T22:50:39Z</dc:date>
    </item>
  </channel>
</rss>

