Credit to LesFerch who written this vbs. Thank you LesFerch.
- Download the IEModeExpiryFix.vbs to set the date to 2099
https://github.com/LesFerch/SampleCode/blob/main/VBS-misc/IEModeExpiryFix.vbs
Double click the IEModeExpiryFix.vbs
Then ALL website under Internet Explorer mode pages expires will change to xx/xx/2099
Before:
After:
If you want to add the website by using this vbs, use the "AddSites" in the vbs
AddSites = http://www.abc.com/|http://www.bbb.com/
Remark: Entries must end with a slash unless the URL ends with a file such as .html, .aspx, etc
For example: http://www.abc.com/
http://www.abc.com.hk/index.html
https://www.aaa.com/aaa/
*You need to put ALL website in one line
** You can create multiple file to add different website to append to the list e.g. File1 have 5 URL, File 2 have 4 URL. Then 9 URL will add into the list after you run both of them.
***If you put multiple AddSites line in same file, it will add the final line website only
Constraints and limitation:
- Locale setting must be consistent with the date format. For example, if you run this script on Chinese Windows 10, it will not work. You need to make change on the Setlocale("en-us") to Setlocale("zh-hk" or any locale you are using)
For more details: Available Language Packs for Windows | Microsoft Docs
If you running the script but the locale did not correct, it will crash your Edge profile.
- The script did not work if your edge login Microsoft account
Verified:
Tested on Windows 10 21H2 domain joined, run by normal domain user account.
Tested on Windows 10 21H2 workgroup machine, run by normal local user account.
Reference:
No comments:
Post a Comment