nntrn / save

https://nntrn.github.io/save/
2 stars 0 forks source link

Windows #9

Open nntrn opened 1 year ago

nntrn commented 1 year ago

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:

nntrn commented 1 year ago

Read only attribute after Windows Reinstall

Using attrib

:: for folders
attrib -r c:\my-folder

:: for files
attrib -r c:\my-folder\*.*

Source

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

Source

nntrn commented 11 months ago

Group Policy

https://techwiser.com/best-group-policy-settings-you-need-to-tweak-to-control-windows/