How to disable "ActiveX Control May Be Unsafe" popup - scripting

In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"?
The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe for scripting" to Enabled for various zones, but files on the local computer don't appear to be in any of the listed zones.
So I guess the alternate question is "How can I edit the security options for local files?"
System:
Windows XP SP3
Internet Explorer 7

By pure hackery, I discovered that setting the following registry value does it:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
But I'm still wondering whether there's any supported way of doing this.

Tools |Internet Options | Advanced tab .. way down under Security .. "Allow active content to run in files on My Computer"

Start Menu, Run and type INETCPL.CPL
Click the Security tab
In the Internet Zone, click the Custom Level button
Set Initialize and script ActiveX controls not marked as safe to Allow

There's a registry way of getting "Local Computer" to appear as one of the security zones. But this article doesn't mention IE7, so IE7 might be different. XP also has new settings like "Allow active content to run in files on My Computer" under advanced options.
Alternatively, if you rename your local .html file to .hta (a HMTL application), that might be what you're looking for. Unless you need all the browser chrome.

as someone mentioned that this should be added to registry
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
but i found that "Initialize and script ActiveX controls not marked as safe" must be enabled too for internet zone

Depends on the version. Here's for IE32 on x64 Windows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95802-9882-11CF-9FA9-00AA006C42C4}]

I also had ActiveX security warning ("an activex control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction ?") on IE11 Win10 & with the below registry setting I could suppress that popup.
[HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0] "1201="dword:00000000".
[HKEY_USERS\S-1-5-18 is for SYSTEM account & we can also set this for HKCU for current user account.

Activex Controls often prompt an error message while trying to launch course through the local files. (For IE7)
Please set the following settings under internet option\Security\Internet\custom level\
Run Activex controls and plug ins - Enable
Script Activex control marked safe for scripting - Enable
under Scripting - Active Scripting - Enable
Also please check the following check box undertools\Internet options\Advanced\security
1. Allow active content to run in my files on my computer.
~Alpana

Related

I can't start Internet Explorer 11, always Edge is opened in Windows 10

I have to test a product on Internet Explorer but when I try to start it always Edge browser is opened. I tried to set IE as default browser but did not help. I try to set Chrome or Firefox as default but also not help. I tried to uninstall then reinstall IE component from 'Uninstall programs - Turns windows feature on or off' but also did not help.
I have upgraded my Windows to Version 1909 x64 but also before this update the problem existed. I am using a Dell Latitude E5470 laptop. I also search the IE and Edge group policy settings but I don't find anything which help solving this problem.
Your suggestions, ideas and help would be very appreciated.
Thanks.
For me, I was able to fix the behavior by searching for "Internet Explorer Compatibility" in the Edge settings panel. Then setting the "Open Sites in Edge" setting to "Never."
I have had a similar behavior in Windows 10 20H2 (As of writing this answer, the latest Windows 10 build so far). I had a scheduled task which opens a website at a given time, the command there is:
"C:\Program Files\Internet Explorer\iexplore.exe" https://some.webiste.com
After upgrading to 20H2 it always opened in Edge, also manually browsing to that website was redirected to Edge.
I found a setting in Internet Explorer under Internet Options -> Advanced Tab -> Browsing section -> Uncheck Enable third party extensions.
Note: This might need a restart to take effect and disable also other extensions but unfortunately as of this day there seems to be no other options to browse a website in IE which needs IE for one or the other reason.
Edit:
This behavior I was experiencing seems to be a DLL (ie_to_edge_bho.dll) file which comes with Edge and is being installed in IE. There is a static list of websites which get automatically redirected to Edge. Disabling this extension is greyed out and not supported out of the box, other than disabling all extensions via the option described above.
This setting lets you decide whether to open all sites not included in the Enterprise Mode Site List in Microsoft Edge. If you use this setting, you must also turn on the Administrative Templates\Windows Components\Internet Explorer\Use the Enterprise Mode IE website list policy setting and you must include at least one site in the Enterprise Mode Site List.
Enabling this setting automatically opens all sites not included in the Enterprise Mode Site List in Microsoft Edge.
Disabling, or not configuring this setting, opens all sites based on the currently active browser.
Note: If you've also enabled the Administrative Templates\Windows Components\Microsoft Edge\Send all intranet sites to Internet Explorer 11 policy setting, then all intranet sites will continue to open in Internet Explorer 11.
https://admx.help/?Category=Windows_10_2016&Policy=Microsoft.Policies.InternetExplorer::RestrictInternetExplorer
The problem was with 20H2(Microsoft Windows 10 Enterprise ver 10.0.19042) when I received the same complaint from multiple users.
So this has been sorted out using below registry fix as mentioned by #alpar
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main\EnterpriseMode and set RestrictIE value from 1 to 0
For me, the correct answer was the one provided by #josibu.
I was trying to use the performance profiler in Visual Studio 2019 for a Web project. For this function, there is no way to convince Visual Studio 2019 to use anything other than Internet Explorer. Even on Windows 11, it tries to run iexplore.exe when no such program exists. For those machines that do have Internet Explorer installed, but crippled by Microsoft, disable third party extension, as directed by #josibu.
You may get a message that the setting will not take effect until you restart your system. In my case, this was not needed. The change worked after I simply closed Internet Explorer.

TFS2015 Document library- open file instead of download

when i am trying to view files from my TFS document library it's download the file instead of opening it automatic with excel OR word that are already installed on my pc, does someone know how to fix it?
i am using office365 and TFS2015 as you can see at the screenshot that attached this is how it's look like in PC that working fine.
This kind of issue may related to your IE security setting, try to add the related sharepoint site in trust site and try again:
Close your browser (if you don't and you have your SharePoint site up you'll get a bunch of script errors because of the change to access
levels).
Go to your Control Panel
Open Internet Properties
Select the Security tab.
Select Trusted Sites
Click Sites, and add the URL for your SharePoint site.
More details please refer this similar issue: "Some files can harm your computer" dialog when I open a file from the document library
If the warning dialog is disappear, but when you open file still download. Then that behavior maybe defined by your browser. Try some other browser such as IE/Chrome/FireFox. Double check the integration/link of your browser and Word,Excel.

Message Compose Outlook add-in is not activated in Outlook 2016 desktop

I developed an add-in with a MessageComposeCommandSurface extension point.
It appears, is activated and works on outlook.office.com but with windows desktop client, Outlook 2016 (version 16.0.8625.2121), the button appears in compose mode but stays gray and it is not clickable.
I tested the command-demo-addin mentioned in Microsoft Docs and published on Github with the same result. Similarly, as shown on screenshot, it is impossible to click and launch the add-in which seems unactivated.
The COMPOSE buttons are disabled in the following instances:
1) The Item is in a public folder.
2) The Item is in Junk, Outbox (not drafts), or Sync Issues.
3) The item is "secure". DRM, or S-MIME encrypted. (older versions of Outlook also do not support S-MIME signed)
4) Outlook is offline.
In the situation where Read Mode add-ins are working, but Compose does NOT it is almost always #3. Usually the user will have on the option to always DRM / S-MIME their outgoing messages.
Update with image of security settings:
If Com Add-ins load a Custom Form this can also affect add-ins:
Checking Com Add-ins:
Note that outlook actually ships with some add-ins and a lot of com-addins work fine with Web Add-ins. It's only when Com Add-ins override the default new mail form (or other forms) that they can interfere with Web Add-ins.
Some COM add-ins will NOT use Custom Form, but will access the parent folder (item.Parent) and there is currently a bug that disable's Web Add-ins when a COM Add-in or VBA script does this.
File->Options->Add-Ins-> "Go" (next to manage add-ins)
If you have an antivirus instaled like avast, try to disable the addin of this and then try to open your compose mail window.

Access denied error while attaching files

I am trying to attach my mdf files to SQL server (using windows XP) but it gives operating system error (error 5), saying Access is denied to the dbMaster.mdf
I gave full control to folder in Windows Vista and 7 and it worked but I did not find how to give control in Windows XP. Please help.
Thanks
For XP Professional you may have to uncheck simple file sharing first to see ntfs security tab. Follow these steps (taken from here)
Launch Windows Explorer or My Computer.
Click on the Tools at the menu bar, then click on Folder Options.
Click on View tab.
In the Advanced Settings section at the bottom of the list, uncheck and unselect (clear the tick) on the “Use simple file sharing
(Recommended)” check box.
Click OK.
For XP Home you could use some 3rd party tool like FaJo XP File Security Extension to set NTFS permissions.

Authentication Providers 'greyed out' in sharepoint 2010 (enable anonymous access)

I am trying to config a sharepoint 2010 site for anonymous access. The tutorials I am following are:
http://live.visitmix.com/Videos
http://blog.drisgill.com/2009/11/sp2010-branding-tip-9-turn-on-anonymous.html
http://www.topsharepoint.com/enable-anonymous-access-in-sharepoint-2010
And a few youtube videos.
I am stuck fast in a certain point. When I am told in Central Admin to click "Site Actions > Site Settings > Application Management > Manage Applications > SharePoint - 80" I do this. My next step is to click "Authentication Providers".
In my system this option is 'Greyed out' and not selectable. I also try to click "Anonymous Policy". The options in this section are also not selectable.
Is there further config needed? Can anyone suggest a possible solution? or link an article with the solution? The mix videos leave this config out.
Thanks in advance
Here is the solution:
I went a different way and basically opened every option related to security / perms / anon.
I ended up from central administration clicking "Security > Specify Authentication Provider > Default"
I was then able to allow anon access. The correct options have appeared to the site collection administrator.
In case you're using Windows 8 ensure that the browser you're using for the update is running in admin mode.
Otherwise just open another instance by "Run as administrator".
Good luck!
Try using Internet Explorer.
I had the same problem when using Firefox 3.6.8, but not in IE 8.
Also don't forget to open Internet Explorer with elevated administrator privileges.
I logged on as the local administrator on the box and the button was enabled, but when I tried to save, it error'ed out.
I created a new web application, and successfully made it anon, and was then able to make the original one anon too - no more error.
The quickest thing to verify: when opening up Central Administration in IE, ensure that you run it 'as administrator'
If you do, then no items like the authentication provider options on the ribbon will be disabled.