byteben / MEM

40 stars 8 forks source link

$global:winGetPath Reset-Appx.ps1 #6

Closed alexyvic closed 1 year ago

alexyvic commented 1 year ago

$global:winGetPath instead of $winGetPath To get rid of error winget.exe list --id 9WZDNCRFJ3PZ --source msstore --accept-source-agreements WARNING: Error while running the WinGet command line to check if 'Company Portal' is already installed WARNING: Cannot process argument because the value of argument "path" is null. Change the value of argument "path" to a non-null value.

byteben commented 1 year ago

Thanks for submitting the PR. Declaring the var in the function as Global sufficed and this was changed in a minor revision update. I will be considering a new function to test the winget path to avoid the need for a global var.