Invoke-WebRequest without Internet Explorer

When trying to make a connection with PowerShell without a prior opening of Internet Explorer we receive an error message that the Internet Explorer engine is not configured. To get rid of it we can simply open Internet Explorer, but if we are using a service account on multiple machines it can be very tedious.

To get rid of this message, we can simply create an entry in the registry at HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main with name DisableFirstRunCustomize, value 1 and type DWORD.

With Ansible we can automate this process:

- name: Disable IE first run
    path: HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main
    name: DisableFirstRunCustomize
    data: 0x1
    type: dword
    state: present