Unlock: C:\Windows\System32\msconfig.exe CMD: FOR /F "usebackq delims==" %i IN (`wevtutil el`) DO wevtutil cl "%i"