Can anyone help on this?
Configure Internet Explorer integration-->Can we configure this Using Powershell?
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.
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.