-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Milestone
Description
Brief description of your issue
Winget not recognised in powershell/cmd
Steps to reproduce
How to solve:
Check your current execution policy:
powershell
Type
Get-ExecutionPolicy
Then
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
Then
.\winget-install.ps1 -Force
You will probably get an error, trust me!
Next step
Install-Script -Name winget-install -Force
This will install it in C:\ powershell directory
Then
Since you already bypassed the execution policy for this session, now just run:
& "C:\Program Files\WindowsPowerShell\Scripts\winget-install.ps1" -Force
This Worked For Me Guys
LakesideTech102
Expected behavior
For It To Work
Actual behavior
It didnt work till i found the solution
Environment
winget in powershellMetadata
Metadata
Assignees
Labels
No labels