Hi all,
I have problem when try to run the script. I registered the app and use client secrets instead of using certificate. When I run the script, I use the following command:
.\Find-EwsUsage.ps1 -OutputPath C:\Temp\Output -OAuthSecretKey <secret value> -OAuthClientId <clientid> -OAuthTenantId <tenantid> -PermissionType Application -Operation GetEwsActivity
and I got the error:
Find-EwsUsage.ps1 : Cannot process argument transformation on parameter
'OAuthClientSecret'. Cannot convert the <secret value> value of type "System.String" to type
"System.Security.SecureString".
At line:1 char:165
+ ... b00b7 -OAuthClientSecret <secret value> -Permis ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Find-EwsUsage.ps1], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Find-EwsUsage.ps1
Is there anything wrong on the command I run?