Fix cmd.exe crash when opening
Edit registry value for Autorun
in HKEY_CURRENT_USER\Software\Microsoft\Command Processor
to empty string (blank)
Clear-ItemProperty -Path "Registry::HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor" -Name "AutoRun"
Source:
Read only attribute after Windows Reinstall
Using attrib
:: for folders
attrib -r c:\my-folder
:: for files
attrib -r c:\my-folder\*.*
Using takeown
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /V EnableLUA /T REG_DWORD /D 0 /F
takeown /F c: /r
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
Group Policy
https://techwiser.com/best-group-policy-settings-you-need-to-tweak-to-control-windows/