Issue running conditinal access script from github

Joseph Patrick 641 Reputation points
2021-02-11T21:38:55.693+00:00

I am following the instructions in the link below but there is no excel spreadsheet being generated can someone list a visual of this working within PowerShell? I am trying to take advantage of this and I think I am running this wrong.

https://github.com/nicolonsky/ConditionalAccessDocumentation

Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Siva-kumar-selvaraj 15,721 Reputation points
    2021-02-16T10:46:16.237+00:00

    Hello @Joseph Patrick ,

    Thanks for reaching out and sorry for delayed response.

    I had tried same instructions from the link, but it wasn't working. Therefore, I made small changes in step number 2 , added the following parameter -ContextScope Process along with Connect-Graph as shown below and followed remaining instructions as per the link, which seems to be working for me.

    2.Connect to Microsoft Graph

    Grant initial consent:
    Connect-Graph -Scopes @("Application.Read.All", "Group.Read.All", "Policy.Read.All", "RoleManagement.Read.Directory", "User.Read.All") -ContextScope Process

    ------------------------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Joseph Patrick 641 Reputation points
    2021-02-18T15:11:00.823+00:00

    I am trying to run it and it is still not working, it doe snot like the &

    I have been trying to make it connect via the connect-graph and it is not letting the script run.

    Can you add a screen shot of how it is suppose to be ran? adding a live example will help


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.