Comment : rétablir une extension de fichier pour qu’elle s’exécute en tant que fichier batch

Block Email Spam
SHARE WITH YOUR NETWORK!

Table of Contents

Comment : rétablir une extension de fichier pour qu’elle s’exécute en tant que fichier batch

Nous sommes tous conscients du fait que les extensions de fichiers dans Windows 7 et Server 2008 peuvent être modifiées pour fonctionner sous une application différente. Exemple comme faire exécuter .TXT fichiers en tant que fichiers .DOCX ou faire en sorte que .PDF fichiers s’exécutent en tant que programme IE. Ces extensions de fichiers peuvent être changées ou modifiées pour fonctionner sous différentes applications de leur choix, puis elles peuvent être rétablies si nécessaire.

Curieusement, on ne peut pas en dire autant des extensions de fichiers batch. ‘. BAT’ Une fois que l’association de l’extension de fichier .BAT a été modifiée, Windows n’offre pas la possibilité de revenir à un shell de commandes. Un script de registre doit être téléchargé et exécuté pour modifier les clés de registre nécessaires pour revenir à .BAT fichiers en tant que commandes shell reconnues.

Le script énuméré ci-dessous doit être enregistré en tant que fichier . REG puis exécutée. Cela modifiera les ruches de registre requises afin que .BAT fichiers soient maintenant reconnus comme une commande shell.

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT.bat]
[HKEY_CLASSES_ROOT.bat]
@="batfile"
[HKEY_CLASSES_ROOT.batPersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOTbatfile]
@="Windows Batch File"
"EditFlags"=hex:30,04,00,00
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,
00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,
32,00,5c,00,61,00,63,00,70,00,70,00,61,00,67,00,65,00,2e,00,64,00,6c,00,6c,
00,2c,00,2d,00,36,00,30,00,30,00,32,00,00,00
[HKEY_CLASSES_ROOTbatfileDefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,69,00,6d,00,
61,00,67,00,65,00,72,00,65,00,73,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,36,
00,38,00,00,00
[HKEY_CLASSES_ROOTbatfileshell]
[HKEY_CLASSES_ROOTbatfileshelledit]
[HKEY_CLASSES_ROOTbatfileshelleditcommand]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,
00
[HKEY_CLASSES_ROOTbatfileshellopen]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOTbatfileshellopencommand]
@=""%1" %*"
[HKEY_CLASSES_ROOTbatfileshellprint]
[HKEY_CLASSES_ROOTbatfileshellprintcommand]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,
54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,
00,25,00,31,00,00,00
[HKEY_CLASSES_ROOTbatfileshellrunas]
"HasLUAShield"=""
[HKEY_CLASSES_ROOTbatfileshellrunascommand]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6d,00,
64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,43,00,20,00,22,00,25,00,31,00,22,
00,20,00,25,00,2a,00,00,00
[HKEY_CLASSES_ROOTbatfileshellrunasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
[HKEY_CLASSES_ROOTbatfileshellrunasusercommand]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
[HKEY_CLASSES_ROOTbatfileShellEx]
[HKEY_CLASSES_ROOTbatfileShellExContextMenuHandlers]
@="Compatibility"
[HKEY_CLASSES_ROOTbatfileShellExContextMenuHandlersCompatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTbatfileShellExDropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[-HKEY_CLASSES_ROOTSystemFileAssociations.bat]
[-HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.bat]

Explore our Advanced Email Security Solutions

Protect your clients and simplify your operations with reliable, scalable email security solutions. Get in touch today to learn how we can support your success.

SHARE WITH YOUR NETWORK!

Ready to See the Difference?
Discover our advanced security products today.

Faire défiler vers le haut

Joignez-vous à nous au MSP Summit Orlando, du 15 au 17 septembre – Code : Vircom