How to Extend IE mode more than 30 days

Anonymous
2022-03-03T10:10:12+00:00

After adding URL's in IE mode pages it has a expire days of 30. I would like to know how to extend more than 30 days as per InternetExplorerIntegrationLocalSiteListExpirationDays policy.

Please help.

Microsoft Edge | Other | Windows 10

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

167 answers

Sort by: Most helpful
  1. Anonymous
    2023-02-21T11:45:43+00:00

    Thank you for the thorough testing and excellent suggestions.

    Regarding (3), you can use the FindReplace feature to correct bad entries, rather than manually editing the Preferences file.

    Yes, but stupid me did not even think the issue was the Case, and I kept trying to Replace my original entry, which had uppercase, and of course InStr(Start, String, Substring, Compare) defaults to case sensitive if the Compare is not set to 1. So I kept searching, then opening Edge, only to find it still there, bang my head on the desk a couple of time, then try again :D

    I've also implemented all of your suggestions except for (1) because the FindReplace will work on any substring and not just whole URLs.

    I get what you mean, but now it opens the way for users to replace the whole URL with HTTP capitalized.

    Also, I see what you did by trimming on "?", to ommit the parameters, but it doesn't work that way all the time unfortunately. Case in my point, Old Oracle Apps has a "login link", that contains parameters for a .jsp, that then redirect to another link for a different .jsp, that contain a longer set of parameters (read: really really really long). That's the reason for the redirection. Now, when you add the login link, it gets trimmed back to the .jsp, but that's not the .jsp that encapsulates the whole site, so it will not be running in IE Mode.

    Hmmm, I guess that would happen for redirection anyway, having parameters or not. May be add yet another prompt warning about redirection? (i.e. "Make sure you use the final URL, and not the easy-to-use-redirected-bookmark ... etc" or some such).

    Please test the new version and let me know the results. Be sure to test URLs with IP addresses. Thanks.

    • Backup works.
    • Sadly, the IP Address URL does not work. After some testing, I found the issue, and it has nothing to do with being an IP. The issue was it is my homepage, and also set as the "When Edge starts open these pages". The script looks for the site, and finds it after "homepage" and after "startup_urls" as well, so it does not add it.

    I think I fixed it. In the AddEntries sub, I replaced the condition If Instr(Data,AddSite)=0 with the following:

    FoundAddSite = Instr(Data,AddSite)

    If FoundAddSite=0 Or FoundAddSite > Instr(Data,"homepage"":""" & AddSite) Or FoundAddSite > Instr(Data,"startup_urls"":[""" & AddSite)

    (I put the Instr(Data,AddSite) in a variable so I wouldn't search for it 3 times)

    • ClearAll works perfectly. Except that if the new AddSites are same as the old ones, and the ClearAll is activated, it says "Profile already updated" (because it matches Data to OriginalData) when in fact it did remove old entries and add the same exact entries again.

    Thank you for everything.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-02-21T06:22:23+00:00

    Hello Mr.LesFerch,

    First of all, Thank you for your solution. I did make it work when my system locale is set to United states.Image

    However, it pops out this error message when the locale is set to my current location, Taiwan.

    Image

    Is there any fix for this? I'll just switch the locale to US if there isn't any anyway. Grateful for the script.

    I've poked around the script like changing the locale to zh-tw, no luck.Image

    Again, thank you very much for your solution. Have a great day master.

    Was this answer helpful?

    0 comments No comments
  3. Les Ferch 10,361 Reputation points Volunteer Moderator
    2023-02-21T05:53:26+00:00

    Thank you for the thorough testing and excellent suggestions.

    Regarding (3), you can use the FindReplace feature to correct bad entries, rather than manually editing the Preferences file. Or, now, you can just go back to a previous Preferences file because I've added an automatic backup feature.

    I've also implemented all of your suggestions except for (1) because the FindReplace will work on any substring and not just whole URLs.

    Please test the new version and let me know the results. Be sure to test URLs with IP addresses. Thanks.

    Was this answer helpful?

    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Anonymous
    2023-02-20T09:28:04+00:00

    Done. How to download and run:

    1. Go to this page.
    2. Alt-click the Raw button (or Right-click and select Save link as...)
    3. Go to File Explorer and double-click the newly downloaded file.

    It worked!

    Thank you @LesFerch

    A couple of things though:

    1- I think you should also "FixURL(aFindReplacePair(1))", in the Replace section, so it could benifit from the fix.

    2- IP Addresses (example: http://192.168.0.55/) don't work, and not in the version before the latest fix either, so it's not the fix.

    3- Would it be possible to add a "Reset" method at the beginning? Maybe a "ClearList" binary? While testing yesterday on URLs that end in parameters, the settings in Edge wouldn't let me delete entries because they neither ended in a file name, nor a forward slash, and I had to edit the "Preferences" files manually each time to remove them.

    4- I think it would be better if you add a step in your instructions here before the "Go to File Explorer ... etc", to "Disable your PC's anti-malware, as it might delete the script/prevent it from running ... Do so at your own risk ... etc"

    5- I know it's an Edge thing, but links with parameters will not work in Edge IE mode. Your script adds them, but for Edge it doesn't not switch the webpage to IE mode. Users should trim it down to the ".something" that is using the parameters. That should work. It would be a nice piece of information in the commented instructioons section at the beginning of the script.

    Again, I can't thank you enough. This saves a lot of time for so many people. I just hope MS does not break the functionality, and render all this effort in vain ...

    Was this answer helpful?

    0 comments No comments