<?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: Remove AD Domain Name from Get-NcQuotaReport in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151216#M33679</link>
    <description>&lt;P&gt;Use .replace()&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 16:22:18 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2019-09-24T16:22:18Z</dc:date>
    <item>
      <title>Remove AD Domain Name from Get-NcQuotaReport</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151215#M33678</link>
      <description>&lt;P&gt;We have a PowerShell script that reports on the top 50 consumers on one of our volumes.&amp;nbsp; The volume has tracing quotas enabled so we are using Get-NcQuotaReport to get the information.&amp;nbsp; The username returned from Get-NcQuotaReport comes back as DomainName\Username via $_QuotaUsers.QuotaUserName. Is there a way via an inline expression to remove the "DomainName\" from the output?&amp;nbsp; Here is how we get the output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$diskused = Get-NcQuotaReport | Where-Object {$_.Volume -eq 'OurVolume'} | Where-Object {$_.QuotaUsers.QuotaUserName -notlike '*Admin*'} | select QuotaUsers,DiskUsed&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;$diskused | Sort-Object -Unique -Descending { [int64]$_.DiskUsed} | &lt;BR /&gt;Format-Table @{Name='Username';Expression={$_.QuotaUsers.QuotaUserName}}, @{Name='GigaBytes';Expression={($_.DiskUsed -shr 20)};align='right'; Width=10} | &lt;BR /&gt;Select-Object -First 50 | Out-String -Width 80 |&lt;BR /&gt;Out-File $reportfile -Append&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:13:46 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151215#M33678</guid>
      <dc:creator>EdS</dc:creator>
      <dc:date>2025-06-04T12:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Remove AD Domain Name from Get-NcQuotaReport</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151216#M33679</link>
      <description>&lt;P&gt;Use .replace()&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 16:22:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151216#M33679</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2019-09-24T16:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove AD Domain Name from Get-NcQuotaReport</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151218#M33680</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-message-author-with-avatar"&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Top-Community-Adviser lia-component-message-view-widget-author-username"&gt;&lt;A id="link_2" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11560" target="_self"&gt;&lt;SPAN class="login-bold"&gt;JGPSHNTAP that was it!!!!&amp;nbsp; Thank-you&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 17:28:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Remove-AD-Domain-Name-from-Get-NcQuotaReport/m-p/151218#M33680</guid>
      <dc:creator>EdS</dc:creator>
      <dc:date>2019-09-24T17:28:26Z</dc:date>
    </item>
  </channel>
</rss>

