Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work #2

Open
vitusq opened this issue Dec 1, 2019 · 0 comments
Open

Does not work #2

vitusq opened this issue Dec 1, 2019 · 0 comments

Comments

@vitusq
Copy link

vitusq commented Dec 1, 2019

Hi,

I recently came across this and executed it. However, it doesn't seem to work and fails.

The error messages are as follows:

Method invocation failed because [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext] does not
contain a method named 'AcquireToken'.
At C:\Temp4\Office365Dashboard-master\PowerShellO365Dash.ps1:25 char:2

  • $authResult = $authContext.AcquireToken($resourceAppIdURI, $clien ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : MethodNotFound

You cannot call a method on a null-valued expression.
At C:\Temp4\Office365Dashboard-master\PowerShellO365Dash.ps1:27 char:2

  • @{
    
  • ~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

New-UDLink : The term 'New-UDLink' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Temp4\Office365Dashboard-master\PowerShellO365Dash.ps1:41 char:19

  • $NavBarLinks = @((New-UDLink -Text "<i class='material-icons' style=' ...
  •               ~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (New-UDLink:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Start-UDDashboard : The term 'Start-UDDashboard' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Temp4\Office365Dashboard-master\PowerShellO365Dash.ps1:45 char:1

  • Start-UDDashboard -Wait -Port 8081 -Content {
  •   + CategoryInfo          : ObjectNotFound: (Start-UDDashboard:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant