Disable Edge shortcut creation on desktop

maszd

Member
Hi,

i was disable this at setting but edge shortcut still created at desktop after windows installation finish, is there any registry key to disable this?
tested with 20H2.

2021-05-31_221619.png

Regards.
 
I have idea to add script command execution into Active setup to delete it. It should be a good solution that is applied when also when is created new user.

EDIT: Please try to save this as .CMD and execute. And tell me if it remove your desktop icon. If not it must be in diferent folder
Code:
FOR /f "delims=" %%I IN ('dir /s /b /o:n "%SystemDrive%\Users\%UserName%" ^| findstr /i ".lnk" ^| findstr /i "edge"') DO (del /q /s "%%I")

If this can delete it, I can post Active setup registry .REG for easy automated removal

EDIT2: This is more deep icon removal for every occurence in users folder
Code:
FOR /f "delims=" %%I IN ('dir /s /b /o:n "%SystemDrive%\Users" ^| findstr /i ".lnk" ^| findstr /i "edge"') DO (del /q /s "%%I")
 
Last edited:
OK, this seems to be easy.

Save as LiveEdgeIconRemoval.reg and import in NTLite. This will remove all *Edge*.lnk in %SystemDrive%\Users. And this is lauched on every new user creation.
Code:
; Microsoft Edge Icon removal

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{ffae50fd-8928-4e7e-a0c4-325b0daabae9}]
@="Edge icon removal"
"LocalizedName"="Microsoft Edge"
"IsInstalled"=dword:00000001
"StubPath"="%WinDir%\\system32\\cmd.exe /c \"FOR /f \"delims=\" %I IN ('dir /s /b /o:n \"%SystemDrive%\\Users\" ^| findstr /i \".lnk\" ^| findstr /i \"edge\"') DO (del /q /s \"%I\")\""
"Version"="1,0"
 
OK, this seems to be easy.

Save as LiveEdgeIconRemoval.reg and import in NTLite. This will remove all *Edge*.lnk in %SystemDrive%\Users. And this is lauched on every new user creation.
Code:
; Microsoft Edge Icon removal

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{ffae50fd-8928-4e7e-a0c4-325b0daabae9}]
@="Edge icon removal"
"LocalizedName"="Microsoft Edge"
"IsInstalled"=dword:00000001
"StubPath"="%WinDir%\\system32\\cmd.exe /c \"FOR /f \"delims=\" %I IN ('dir /s /b /o:n \"%SystemDrive%\\Users\" ^| findstr /i \".lnk\" ^| findstr /i \"edge\"') DO (del /q /s \"%I\")\""
"Version"="1,0"
Hi George King

Thank you for help, but that not working, edge shortcut still created at desktop after windows installation done.
tested with 19043.1023.

2021-06-01_062941.png

TIA.
 
maszd Are you sure your desktop icon is in mentioned path? Can you right click that icon and incspect it? Maybe is placed somewhere in ProgramData?
 
Interesting maybe is Active setup ignored for some reason?

Then try to add this directly into SetupComplete.cmd
Code:
FOR /f "delims=" %%I IN ('dir /s /b /o:n "%SystemDrive%\Users" ^| findstr /i ".lnk" ^| findstr /i "edge"') DO (del /q /s "%%I")
 
Last edited:
Interesting maybe is Active setup ignored for some reason?

Then try to add this directly into SetupComplete.cmd
Code:
FOR /f "delims=" %%I IN ('dir /s /b /o:n "%SystemDrive%\Users" ^| findstr /i ".lnk" ^| findstr /i "edge"') DO (del /q /s "%%I")
same result, doesn't work
also if i run manually that command, this error appear:

2021-06-01_155058.png
 
It delete only file that is *.lnk and matches pattern edge. I tested it on my desktop where is huge set of icons, only *edge*.lnk are removed
 
Last edited:
Back
Top