-
Unblock the Script:
- Right-click the script file and select "Properties."
- Under the "Security" tab, check the "Unblock" option if available.
-
Run the Script as Administrator:
- Right-click the script file and select "Run as administrator."
- If the script closes automatically after a few seconds, proceed to the next steps.
-
Open PowerShell as Administrator:
- Right-click the PowerShell icon and select "Run as administrator."
-
Navigate to the Script Directory:
- Use the
cd
command to change to the directory where the script is located.
-
Execute the Script:
-
Handle Script Hanging:
- If the script hangs, note the last task it was performing (likely the installation of Microsoft.Graph).
- Press
Ctrl+C
to stop the script.
-
Install Microsoft.Graph Manually:
-
Re-run the Script:
- Press the "Up" arrow key to recall the previous command
.\Journaling-App-Registration.ps1
and run it again.
- The script should now execute successfully.