PowerShell / DscConfiguration.Tests

Test automation scripts for evaluating the quality of DSC Configurations using Azure virtual machines and Azure Automation DSC.
MIT License
5 stars 11 forks source link

Need administrator rights when calling Install-Module #25

Open johlju opened 7 years ago

johlju commented 7 years ago

When running locally the user can not install modules if the user is not running the PowerShell console in elevated mode.

Instead of require administrator right, the cmdlet Install-Module should be called with -Scope CurrentUser.

Nimmikri commented 5 years ago

thanks a lot

MichaelMancuso commented 4 years ago

what do I do if I am on Kali Linux with power shell and I need to pass windows creds for the -Scope

johlju commented 4 years ago

I’m thinking start pwsh using sudo? 🤔