Skip to content

[BUG] Connect-PnPOnline throws "Could not load file or assembly 'Microsoft..Identity.Client' #3194

@SpodoY

Description

@SpodoY

Reporting an Issue or Missing Feature

When I try to execute 'Connect-PnPOnline' with a given URL and a PSCredential Object I get the following error:

Expected behavior

I get a connection to my site

Actual behavior

image

Steps to reproduce behavior

$credObject = New-Object System.Management.Automation.PSCredential -ArgumentList $username, $securePwd
Connect-PnPOnline -Url $SiteURL -Credentials $credObject

What is the version of the Cmdlet module you are running?

image

image

Which operating system/environment are you running PnP PowerShell on?

  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions