Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Index Into a Null Array #45

Open
D-Maxwell opened this issue Dec 21, 2023 · 2 comments
Open

Cannot Index Into a Null Array #45

D-Maxwell opened this issue Dec 21, 2023 · 2 comments

Comments

@D-Maxwell
Copy link

hello there ;

Today I found myself quite annoyed upon finding out Microsoft Edge still had an entry in the Apps section of Windows 10's Settings ; even though I had already ran an —albeit different— debloater months ago.
The app is labelled as being worth short of a few kilobytes, indicating that it did in fact not get reinstalled, to which I rejoice ; although it still shows up at all, and that bothers me.

So I tried running your debloater in the hope that it may fully remove this piece of garbage Microsoft has been enforcing onto us (EU, please, save us), and I was quite unpleasantly surprised to find out that it is not able to handle missing registry files (i.e. empty reg key), and instead of skipping any problematic step, it will resort to outright crashing, outputting the following message :

Cannot index into a null array.
At line:1 char:4
+ & {iex((gp 'Registry::HKEY_Users\S-1-5-21*\Volatile*' Edge_Removal -e ...
+    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

Which leads me to believe that it has trouble running after another debloater (and even potentially after itself ?), which I find odd.

@AveYo
Copy link
Owner

AveYo commented Dec 21, 2023

That's the script copying itself in the temporary registry by design, not some random non-existing key.
So either a copy-paste error occurred, or AV is blocking it.

@freeload101
Copy link

freeload101 commented Mar 20, 2024

If I run it from powershell_ise or shell it does that... very strange script ... bat script that calls powershell ... I do that to bypass AV but there's no need here ? only way I can get it to run is if I rightclick and "run as administrator " or whatver

  • can't run it in admin cmd line
  • can't right click it and run as admin
  • I don't even remember how I got it to run beforen now ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants