Skip to content

Install-M365Dependcey failed permissions error #29

@TheInverseKey

Description

@TheInverseKey

Running the command below in powershell 7 terminal does not allow the dependencies to be installed.

PS C:\Users\User> Install-M365Dependency
Copy-Item: C:\Users\User\Documents\PowerShell\Modules\SystemAdmins.M365Assessment\1.0.16\private\helper\module\Install-ModulePnpPowerShellFix.ps1:43
Line |
43 | Copy-Item -Path $sourceCoreDll -Destination $destinationCoreD …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'C:\Program
| Files\WindowsPowerShell\Modules\PnP.PowerShell\3.1.0\Core\Microsoft.Graph.Core.dll' is denied.
Copy-Item: C:\Users\User\Documents\PowerShell\Modules\SystemAdmins.M365Assessment\1.0.16\private\helper\module\Install-ModulePnpPowerShellFix.ps1:44
Line |
44 | Copy-Item -Path $sourceClientDll -Destination $destinationCli …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'C:\Program
| Files\WindowsPowerShell\Modules\PnP.PowerShell\3.1.0\Core\Microsoft.Identity.Client.dll' is denied.
PS C:\Users\User>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions