Skip to content

Instantly share code, notes, and snippets.

@riteshkawadkar
Last active April 14, 2021 06:12
Show Gist options
  • Save riteshkawadkar/324022e3def72b2f3eee2dc8df39dcb0 to your computer and use it in GitHub Desktop.
Save riteshkawadkar/324022e3def72b2f3eee2dc8df39dcb0 to your computer and use it in GitHub Desktop.
IE Settings
if((Test-Path -LiteralPath "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main") -ne $true) { New-Item "HKLM:\Software\Policies\Microsoft\Internet Explorer\Main" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'DisableFirstRunCustomize' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Search Page' -Value '' -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Enable Browser Extensions' -Value 'yes' -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Start Page' -Value 'https://valantmed.com/ValantWeb1/Login.aspx' -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Default_Page_URL' -Value 'https://valantmed.com/ValantWeb1/Login.aspx' -PropertyType String -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Main' -Name 'Default_Search_URL' -Value '' -PropertyType String -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext") -ne $true) { New-Item "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext' -Name 'IgnoreFrameApprovalCheck' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\Ext") -ne $true) { New-Item "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\Ext" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\Ext' -Name 'IgnoreFrameApprovalCheck' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\Software\Microsoft\Internet Explorer\New Windows") -ne $true) { New-Item "HKLM:\Software\Microsoft\Internet Explorer\New Windows" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\Software\Microsoft\Internet Explorer\New Windows' -Name 'ListBox_Support_Allow' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\Software\Microsoft\Internet Explorer\New Windows\Allow") -ne $true) { New-Item "HKLM:\Software\Microsoft\Internet Explorer\New Windows\Allow" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\Software\Microsoft\Internet Explorer\New Windows\Allow' -Name 'https://valantmed.com' -Value '1' -PropertyType String -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\valantmed.com") -ne $true) { New-Item "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\valantmed.com" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\valantmed.com' -Name 'https' -Value 2 -PropertyType DWord -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2") -ne $true) { New-Item "HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name 'CurrentLevel' -Value 65536 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2' -Name '2101' -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
if((Test-Path -LiteralPath "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\MINIE") -ne $true) { New-Item "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\MINIE" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\MINIE' -Name 'LinksBandEnabled' -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
@riteshkawadkar
Copy link
Author

  1. Login as Administrator
  2. Run as Admin
  3. On completion, it will copy the Settings to all the Users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment