0
votes

I am new to Powershell and trying to learn it and have started from scratch. I have a task to retrieve some information from Sharepoint Online and i am supposed to do it with Powershell, however whenever i try to run the cmdlet Install-Module SharePointPnPPowerShellOnline i get the following error.

Install-Module : Administrator rights are required to install modules in 'C:\Program Files\WindowsPowerShell\Modules'. Log on to the computer with an account that has Administrator rights, and then try again, or install

Is it because I don't have the global administrator rights?

2

2 Answers

0
votes

You require Local Administrator rights on the local machine, this has nothing to do with Sharepoint or PowerShell. If you do have these rights, right click the PowerShell executable and choose Run As Administrator.