Donovand4 / ConditionalAccessPolicyReport

PowerShell Script used to create a report for Azure AD Conditional Access Policies.
MIT License
31 stars 17 forks source link

Unexpected attribute #14

Closed sonicvlada closed 1 year ago

sonicvlada commented 1 year ago

Hi, thank you for sharing this. This is the error I'm getting after I run the ".\Generate-ConditionalAccessReport.ps1 -OutputFormat CSV -BetaProfile $true" command: I couldn't find anything in the comments, and my PS skills are not good enough to troubleshoot.

At C:\scripts\Generate-ConditionalAccessReport.ps1:71 char:1
+ [CmdletBinding()]
+ ~~~~~~~~~~~~~~~~~
Unexpected attribute 'CmdletBinding'.
At C:\scripts\Generate-ConditionalAccessReport.ps1:72 char:1
+ param (
+ ~~~~~
Unexpected token 'param' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedAttribute
Donovand4 commented 1 year ago

Hi, I had to remove the beta profile as it was delaying the login and caused additional problems. Please download the latest version and run the updated commands.

Donovand4 commented 1 year ago

Beta profile has been added which uses the latest modules and resolves the errors experienced