Powershell problem

Marouf Ali 500 Reputation points
2025-01-11T11:47:45.7266667+00:00

Hello,

I am not able to connect to my Azure account via Powershell. I first used winget to install PS 7 and then used Install-Module -Name Az -AllowClobber -Scope CurrentUser to further the installation. Is this correct? Attached is the screenshot.

Thanks

Marouf

User's image

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,726 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 34,951 Reputation points
    2025-01-11T13:23:28.15+00:00

    It looks like you did "something" with OneDrive .

    User's image

    You've got too many folders in there. The directory should be C:\Users\Dell5010\OneDrive\Documents\WindowsPowerShell.

    Like this.

    User's image

    I would expect you to be having problems with OneDrive, so you might want to get that fixed first. You might need to uninstall/reinstall. I don't know what you did or why.

    You could try using "Install-Module -Scope AllUsers", but that won't fix OneDrive.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.