Skip to content

Instantly share code, notes, and snippets.

@hrz6976
Last active February 1, 2022 06:21
Show Gist options
  • Save hrz6976/d245a65fc5502456dfb6042ab7118b12 to your computer and use it in GitHub Desktop.
Save hrz6976/d245a65fc5502456dfb6042ab7118b12 to your computer and use it in GitHub Desktop.
windows bat scripts
@echo off&cd\&color 0a&cls
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpeg" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".bmp" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d PhotoViewer.FileAssoc.Tiff /f
pause
@echo off&cd\&color 0a&cls
regsvr32 %systemroot%\system32\vbscript.dll
regsvr32 scrrun.dll
regsvr32 cscript.dll
regsvr32 wshom.ocx
regsvr32 wshext.dll
pause
@echo off&cd\&color 0a&cls
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment