C:\Windows\SysWOW64\ODBCAD32.EXE
C:\Windows\SysWOW64\ODBCAD32.EXE
blog.gentilkiwi.com
mimikatz # privilege::debug
Demande d'ACTIVATION du privilège : SeDebugPrivilege : OK
mimikatz # sekurlsa::logonPasswords full
mimikatz # privilege::debug
Demande d'ACTIVATION du privilège : SeDebugPrivilege : OK
mimikatz # sekurlsa::logonPasswords full
@ECHO OFF
XCOPY <Source>.<ext> %systemroot%\fonts
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "<Fontname> (<Type>)" /t REG_SZ /d "<Filename>.<ext>" /f
XCOPY <Source>.<ext> %systemroot%\fonts
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "<Fontname> (<Type>)" /t REG_SZ /d "<Filename>.<ext>" /f
If you experience behavior when using WMI, such as application errors or scripts that used to work are no longer working, you may have a corrupted WMI repository. To fix a corrupted WMI repository, use these steps:
Windows XP and Windows Vista
Click Start, Run and type CMD.EXE
Note: In Windows Vista, you need to open an elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Type this command and press Enter:
net stop winmgmt
Using Windows Explorer, rename the folder %windir%\System32\Wbem\Repository. (For example, %windir%\System32\Wbem\Repository_bad). %windir% represents the path to the Windows directory, which is typically C:\Windows.
Switch to Command Prompt window, and type the following and press ENTER after each line:
net start winmgmt
EXIT
Courtesy: The above is excerpted from Microsoft Technet article WMI Isn't Working!
© 2007 Microsoft Corporation. All rights reserved.
For Windows XP Service Pack 2
Click Start, Run and type the following command:
rundll32 wbemupgd, UpgradeRepository
This command is used to detect and repair a corrupted WMI Repository. The results are stored in the setup.log (%windir%\system32\wbem\logs\setup.log) file.
For Windows Vista
Open an elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Type the following command:
winmgmt /salvagerepository
The above command Performs a consistency check on the WMI repository, and if an inconsistency is detected, rebuilds the repository. The content of the inconsistent repository is merged into the rebuilt repository, if it can be read.
For Windows Server 2003
Use the following command to detect and repair a corrupted WMI Repository:
rundll32 wbemupgd, RepairWMISetup
Re-registering the WMI components (Ref WMI FAQ)
The .DLL and .EXE files used by WMI are located in %windir%\system32\wbem. You might need to re-register all the .DLL and .EXE files in this directory. If you are running a 64-bit system you might also need to check for .DLLs and .EXE files in %windir%\sysWOW64\wbem.
To re-register the WMI components, run the following commands at the command prompt:
•cd /d %windir%\system32\wbem
•for %i in (*.dll) do RegSvr32 -s %i
•for %i in (*.exe) do %i /RegServer
Set WshSysEnv = WshShell.Environment("Process")
User = WshSysEnv("USERNAME")
Computer = WshSysEnv("COMPUTERNAME")
MyDocs = WSHShell.SpecialFolders("MyDocuments")
Desktop = WSHShell.SpecialFolders("Desktop")
Set fso = WScript.CreateObject("Scripting.FileSystemObject")
if fso.FileExists("C:\backup\robocopy.exe") = False then
fso.CreateFolder "C:\Backup"
fso.CopyFile "\\mars.epos.domain\doc_backup$\robocopy.exe","c:\backup\"
end if
MyDocsCmdLine = """"+MyDocs+""" "+"""\\mars.epos.domain\doc_backup$\"+User+"\MyDocs"" /mir /MAX:8000000 /XF .avi .mpg .mp3 .wav .tif .jpg *.vob"
WSHShell.Run "c:\backup\Robocopy.exe "+MyDocsCmdLine,5,True
DesktopCmdLine = """"+Desktop+""" "+"""\\mars.epos.domain\doc_backup$\"+User+"\Desktop"" /mir /MAX:8000000 /XF .avi .mpg .mp3 .wav .tif .jpg *.vob"
WSHShell.Run "c:\backup\Robocopy.exe "+DesktopCmdLine,5,True
Вероятно, все без исключения пользователи Windows знают о существовании на рабочем столе Windows архиполезной кнопки "Свернуть все окна", дублирующей действие комбинации клавиш "Win+M".
Почти все известные автору пользователи рано или поздно случайно удаляли эту кнопку. Форумы подтверждают это наблюдение: вопросы о восстановлении привычной кнопки задаются регулярно. А раз так, то иллюстрированная инструкция по восстановлению этого востребованного ярлыка не помешает.
Вот что нужно сделать, чтобы удалённая кнопка "Свернуть все окна" появилась на прежнем месте.
1. Создаем на рабочем столе Windows текстовый документ и называем его "Свернуть все окна".
2. Открываем созданный документ в "Блокноте" и копируем в него нижеприведенный текст:
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
3. Следуем в меню "Файл -> Сохранить как". В открывшем окне в поле типа файла выбираем "Все файлы", вручную дописываем к имени файла расширение .scf и сохраняем документ на рабочий стол. Кстати, аббревиатура SCF расшифровывается как Shell Command File. Это для справки.
4. Проверяем: на рабочем столе должно находиться два файла — текстовый "Свернуть все окна" и только что сохраненный с новым расширением (его можно опознать также по специфичной иконке).
5. Удаляем текстовый документ в корзину, а файл "Свернуть все окна.scf " перемещаем в панель быстрого запуска.
6. Всё. Теперь у нас есть восстановленная кнопка для молниеносного сворачивания открытых окон приложений в панель задач Windows.