Configure Internet Explorer integration-->Can we configure this Using Powershell?

Sumit Raj 1 Reputation point
2022-08-14T17:00:28.07+00:00

Hi team,

I have been following the below to Configure Internet Explorer integration. Since this setting needs to be done for multiple server. I need to create Powershell which can be run for mutliple server.

https://learn.microsoft.com/en-us/deployedge/edge-ie-mode-policies#configure-internet-explorer-integration

I tried to use the below script but it is not working. While execution it is not throwing any error and also it is not updating in the Local group Policy.

Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted

Write-Host "Installing PolicyFileEditor V3"
Install-Module -Name PolicyFileEditor -RequiredVersion 3.0.0 -Scope CurrentUser

$UserDir = "$env:windir\system32\GroupPolicy\User\registry.pol"

Write-Host "Setting Password protect the screen saver to on"
$RegPath = 'HKLM:Software\Policies\Microsoft\MicrosoftEdge'
$RegName = 'InternetExplorerIntegrationLevel'
$RegData = 'Internet Explorer mode'
$RegType = 'String'
Set-PolicyFileEntry -Path $UserDir -Key $RegPath -ValueName $RegName -Data $RegData -Type $RegType
gpupdate.exe /force

Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Edge" -Name InternetExplorerIntegrationLevel -Value "1" -PropertyType "DWORD"

Can you suggest here.

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,796 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,389 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sumit Raj 1 Reputation point
    2022-08-19T15:48:39.05+00:00

    Can anyone help on this?

    0 comments No comments