Other issues or features related to Microsoft Edge on Windows 10
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Other issues or features related to Microsoft Edge on 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.
what is the script?
Here's the current link: IEModeExpiryFix
Here's a script that will set the expiry for all Edge IE Mode pages to 2099.
I'm curious: many of the responders in this thread are clearly network admins for many users. Why are they not using an Enterprise site list, which has no expiry date? Setting it up is a bit complex, but it is quite possible with the tools provided and it allows for central management of the list. It can also be used in parallel with a local list where appropriate. So why is this script necessary for these users?
Good point.
If their machines are in Active Directory, then they really should use an Enterprise site list with the corresponding GPO to enable it per user. I get the sense that most of the respondents are managing machines that are not in AD, but I could be wrong. The script is intended to help those who wish to override the 30 day limit on individual (not managed via AD) machines.
I added the URL to the IE Mode list and ran the script but it did not work. I am not sure what I am doing wrong. I am new with scripting, only have a little knowledge. I think it is because I do not know if the comments before the script are actually instructions or part of the script. I replaced my internal URL where it says it in Powershell but no luck.
'To find and replace a URL, uncomment and edit the FindReplace line below. 'Separate find and replace strings with a comma and separate each find/replace pair with a |. 'FindReplace = "http://localServer/register/login.aspx/,**http://**myserver.com"
I suck. I need to configure IE mode for certain incompatible sites and want to extend the duration of the IE mode setting. I know that you can do it for 90 days but that is not enough time. I would have to make updates to over 200 users machines by myself. SIGH your help is appreciated, Could you copy and paste the script and just make it bold where I have to edit and remove any comments to explain what it is doing..? That would be super helpful. Thanks for your help.
Slow down and read more carefully. The comments do provide instructions and, if you read through this thread, you will get a better feel for how it all works. Having said that, this is what you need to do...
Don't use the FindReplace feature. That feature is for finding and replacing previously added IE Mode pages that were added incorrectly (e.g. a typo in the URL). Use the AddSites feature instead. That's the part that looks like this:
'To add sites, uncomment and edit the AddSites line below. Separate each page entry with a |. 'Entries must end with a slash unless the URL ends with a file such as .html, .aspx, etc.
'AddSites = "*http://www.fiat.it/|http://www.ferrari.it/*"
In VBScript, a line that begins with a single quote is a comment, so, if you want to add the site http://myserver.com/, then you should edit the line to look like this:
AddSites = " http://myserver.com/ "
Note that the URL must end with a slash if it represents a site or directory, but must not end with a slash if it is a file reference (i.e. ends with something like .html or .aspx).
If you wish to add more than one site, then separate each entry with a vertical bar character, like this:
AddSites = " http://myserver1.com/ | http://myserver2.com/ "
That's it. If you did happen to add a URL with a typo, then you should use the FindReplace feature (read the comments for instructions) to make the correction, otherwise, just use AddSites.
If you have 200 machines to take care of, working on your scripting skills is essential. Take the time to write practice scripts (PowerShell and VBScript are both worth learning) and test them using a Virtual Machine (VM), so you can easily recover from mistakes. And that goes for using my script. Test it thoroughly on a VM before attempting to make changes to production user profiles.
I notice that the script doesn't work if profile sync is turned on in Edge. Have tested the script out on a couple of PCs and the ones that the script don't work on always have Edge profile sync turned on.
I was getting the same issue as Beatrice, but I thought it was because the script was adding the / at the end of my webpage address?
When I manually add the webpage in Edge UI, I can see in the Preferences file that it doesn’t add the / , so I just removed the line of code that adds it and it worked okay.
Is the / only for adding sites rather than pages?
I removed the code that adds the trailing slash and added a comment that says to include a trailing slash in your URLs, unless it's a file URL such as .html or .aspx. Handling the trailing slash automatically would require a big lookup table of web page file types. It would be rather difficult to know if such a table were complete.