<?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: Powerbi Usage powershell scripts failed in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Powerbi-Usage-powershell-scripts-failed/m-p/3254700#M42838</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/452315"&gt;@Saravanan_ameer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on web search results, this error may occur when you try to run the &lt;EM&gt;&lt;STRONG&gt;Search-UnifiedAuditLog&lt;/STRONG&gt;&lt;/EM&gt; cmdlet in PowerShell to search the audit log in Exchange Online. Some possible causes and solutions are:&lt;/P&gt;
&lt;P&gt;- You may not have the required permissions to run the cmdlet. You need to be assigned the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;View-Only Audit Logs&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;role or the &lt;EM&gt;&lt;STRONG&gt;Audit Logs&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;role in Exchange Online. You can check your role assignments by running the &lt;EM&gt;&lt;STRONG&gt;Get-RoleAssignmentPolicy&lt;/STRONG&gt;&lt;/EM&gt; cmdlet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- You may have a connectivity issue with Exchange Online. You can try to reconnect to Exchange Online by using the &lt;EM&gt;&lt;STRONG&gt;Connect-ExchangeOnline&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;cmdlet with the &lt;EM&gt;&lt;STRONG&gt;ShowBanner&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;parameter. This will display a banner that shows the server name and version of Exchange Online that you are connected to.&lt;BR /&gt;- You may have a problem with the Exchange Online Management module or the PSWSMan module. You can try to update these modules by running the &lt;EM&gt;&lt;STRONG&gt;Update-Module&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;cmdlet with the names of the modules. For example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Update-Module -Name ExchangeOnlineManagement
Update-Module -Name PSWSMan&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10870" target="_blank"&gt;search-unifiedauditlog: Write-ErrorMessage : One or more errors occurred. · Issue #10870 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10693" target="_blank"&gt;Search-UnifiedAuditLog Error : Write-ErrorMessage : One or more errors occurred. · Issue #10693 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10873" target="_blank"&gt;Search-UnifiedAuditLog Error : Write-ErrorMessage : One or more errors occurred when connected to delegated tenants · Issue #10873 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 26 May 2023 07:19:57 GMT</pubDate>
    <dc:creator>v-jianboli-msft</dc:creator>
    <dc:date>2023-05-26T07:19:57Z</dc:date>
    <item>
      <title>Powerbi Usage powershell scripts failed</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Powerbi-Usage-powershell-scripts-failed/m-p/3247088#M42798</link>
      <description>&lt;P&gt;&amp;nbsp;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was running this below mentioned powershell scripts for the last 8 months but last 5 days i am getting error and the scripts are not running and getting the error. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$connectsplat = @{&lt;/P&gt;&lt;P&gt;Certificatefilepath = 'C:\Windows\system32\Exocert.pfx'&lt;BR /&gt;Certificatepassword = $(ConvertTo-SecureString -String "abc" -AsPlainText -Force)&lt;BR /&gt;Appid = '123'&lt;BR /&gt;Organization = "abc.ONMICROSOFT.COM"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connect-ExchangeOnline @connectsplat&lt;/P&gt;&lt;P&gt;Search-UnifiedAuditLog -StartDate (Get-Date).AddDays(-180) -EndDate (Get-Date) -RecordType PowerBIaudit -ResultSize 5000 | ConvertTo-Csv | Out-File C:\FinalDeployment\Powerbiusage\PowerBIAuditLog.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error : "Write-ErrorMessage : One or more errors occurred.&lt;BR /&gt;At C:\Users\s.muthu\AppData\Local\Temp\7\tmpEXO_2krypd2t.zsm\tmpEXO_2krypd2t.zsm.psm1:1120 char:13&lt;BR /&gt;+ Write-ErrorMessage $ErrorObject&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [Search-UnifiedAuditLog], Exception&lt;BR /&gt;+ FullyQualifiedErrorId : [Server=DX1P273MB0490,RequestId=b2812735-eb75-c183-aba7-29b9b590442e,TimeStamp=Mon, 22 May 2023 09:17:19 GMT],Write-ErrorMessage"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Saravanan_ameer_0-1684747077675.png" style="width: 440px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/918204i2A01DCF447960C13/image-dimensions/440x38?v=v2" width="440" height="38" role="button" title="Saravanan_ameer_0-1684747077675.png" alt="Saravanan_ameer_0-1684747077675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 09:19:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Powerbi-Usage-powershell-scripts-failed/m-p/3247088#M42798</guid>
      <dc:creator>Saravanan_ameer</dc:creator>
      <dc:date>2023-05-22T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Powerbi Usage powershell scripts failed</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Powerbi-Usage-powershell-scripts-failed/m-p/3254700#M42838</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/452315"&gt;@Saravanan_ameer&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on web search results, this error may occur when you try to run the &lt;EM&gt;&lt;STRONG&gt;Search-UnifiedAuditLog&lt;/STRONG&gt;&lt;/EM&gt; cmdlet in PowerShell to search the audit log in Exchange Online. Some possible causes and solutions are:&lt;/P&gt;
&lt;P&gt;- You may not have the required permissions to run the cmdlet. You need to be assigned the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;View-Only Audit Logs&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;role or the &lt;EM&gt;&lt;STRONG&gt;Audit Logs&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;role in Exchange Online. You can check your role assignments by running the &lt;EM&gt;&lt;STRONG&gt;Get-RoleAssignmentPolicy&lt;/STRONG&gt;&lt;/EM&gt; cmdlet.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- You may have a connectivity issue with Exchange Online. You can try to reconnect to Exchange Online by using the &lt;EM&gt;&lt;STRONG&gt;Connect-ExchangeOnline&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;cmdlet with the &lt;EM&gt;&lt;STRONG&gt;ShowBanner&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;parameter. This will display a banner that shows the server name and version of Exchange Online that you are connected to.&lt;BR /&gt;- You may have a problem with the Exchange Online Management module or the PSWSMan module. You can try to update these modules by running the &lt;EM&gt;&lt;STRONG&gt;Update-Module&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;cmdlet with the names of the modules. For example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Update-Module -Name ExchangeOnlineManagement
Update-Module -Name PSWSMan&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10870" target="_blank"&gt;search-unifiedauditlog: Write-ErrorMessage : One or more errors occurred. · Issue #10870 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10693" target="_blank"&gt;Search-UnifiedAuditLog Error : Write-ErrorMessage : One or more errors occurred. · Issue #10693 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/MicrosoftDocs/office-docs-powershell/issues/10873" target="_blank"&gt;Search-UnifiedAuditLog Error : Write-ErrorMessage : One or more errors occurred when connected to delegated tenants · Issue #10873 · MicrosoftDocs/office-docs-powershell · GitHub&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2023 07:19:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Powerbi-Usage-powershell-scripts-failed/m-p/3254700#M42838</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2023-05-26T07:19:57Z</dc:date>
    </item>
  </channel>
</rss>

