msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgReportOffice365ActivationUserDetail : Expected '{' or '['. Was String: Report.
PS C:\Windows\system32> Update-Module Microsoft.Graph
PS C:\Windows\system32> Get-MgReportOffice365ActivationUserDetail -OutFile D:\Export\LicensingReport\Dev-MgReportOffice365ActivationUserDetail.csv Get-MgReportOffice365ActivationUserDetail : Expected '{' or '['. Was String: Report. At line:1 char:1
- Get-MgReportOffice365ActivationUserDetail -OutFile D:\Export\Licensin ...
-
+ CategoryInfo : NotSpecified: (:) [Get-MgReportOff...nUserDetail_Get], ParserException + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgReportOffice365ActivationUserDetail_Get
Get-MgReportOffice365ActivationUserDetail -OutFile Dev-MgReportOffice365ActivationUserDetail.csv works in the latest version of SDK (1.11.0). Which module version are you using - Get-Module Microsoft.Graph.Reports?
@mjgerena thank you for identifying this issue. Kindly confirm the sdk version you are using by running the command below.
Get-Module -Name Microsoft.Graph -ListAvailable
PS C:\Windows\system32> Get-Module -Name Microsoft.Graph -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
Manifest 1.11.0 Microsoft.Graph Manifest 1.9.6 Microsoft.Graph
DISCLAIMER & CONFIDENTIALITY NOTICE: This email neither constitutes an agreement to conduct transactions by electronic means nor creates any legally binding contract or enforceable obligation in the absence of a fully signed written contract. The information contained in this email and any attachments may be confidential, legally privileged and/or exempt from disclosure under applicable law. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. Any inadvertent or accidental disclosure of confidential, legally privileged and/or exempt information contained in this email does not constitute a knowing waiver of any rights regarding such information or materials. If you have received this communication in error, please reply to the sender and destroy all copies of the message (including any attachments).
@mjgerena kindly update to version 1.11.1 and share your findings
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
PS C:\Windows\system32> Get-Module -Name Microsoft.Graph -ListAvailable
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
Manifest 1.11.0 Microsoft.Graph Manifest 1.9.6 Microsoft.Graph
DISCLAIMER & CONFIDENTIALITY NOTICE: This email neither constitutes an agreement to conduct transactions by electronic means nor creates any legally binding contract or enforceable obligation in the absence of a fully signed written contract. The information contained in this email and any attachments may be confidential, legally privileged and/or exempt from disclosure under applicable law. It has been sent for the sole use of the intended recipient(s). If the reader of this message is not an intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any unauthorized review, use, disclosure, dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. Any inadvertent or accidental disclosure of confidential, legally privileged and/or exempt information contained in this email does not constitute a knowing waiver of any rights regarding such information or materials. If you have received this communication in error, please reply to the sender and destroy all copies of the message (including any attachments).