Skip to content

Instantly share code, notes, and snippets.

@OpossumPetya
OpossumPetya / start-ie-maximized.bat
Created November 23, 2018 08:45
Start IE browser maximized (can be used with automation)
@echo OFF
setlocal ENABLEEXTENSIONS
set IE11Maximized=2C0000000200000003
set KEY_NAME="HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main"
set VALUE_NAME=Window_Placement
:: REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" /v Window_Placement
for /f "usebackq tokens=3" %%A in (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) do (