Skip to content

Fix not existing registry path in ToggleDefender#21

Open
Vanav wants to merge 1 commit into
AveYo:mainfrom
Vanav:patch-1
Open

Fix not existing registry path in ToggleDefender#21
Vanav wants to merge 1 commit into
AveYo:mainfrom
Vanav:patch-1

Conversation

@Vanav

@Vanav Vanav commented Jan 11, 2026

Copy link
Copy Markdown

Fix error: "sp : Cannot find path 'HKEY_Users\S-1-5-21-xxx_Classes\Software\Microsoft\Edge\SmartScreenEnabled' because it does not exist"

sp : Cannot find path
'HKEY_Users\S-1-5-21-xxx_Classes\Software\Microsoft\Edge\SmartScreenEnabled' because
it does not exist.
At line:80 char:6
+      sp "$($_.PSPath)\Edge\SmartScreenEnabled" "(Default)" $toggle_re ...
+      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (HKEY_Users\S-1-...rtScreenEnabled:String) [Set-ItemProperty], ItemNotFo
   undException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand

…ftware\Microsoft\Edge\SmartScreenEnabled' because it does not exist"
@Vanav Vanav changed the title Fix not existing registry path Fix not existing registry path in ToggleDefender Jan 11, 2026
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

Successfully merging this pull request may close these issues.

1 participant