By
» Command Line Tips
Posted In
Command, Line, Tips,
Indianofs.blogspot.com
Command Line Tips
Creating service entry for a kernel mode driver |
sc create NAME type= kernel start= demand error= normal binPath= System32\Drivers\DRIVER.sys DisplayName= DESCRIPTION |
WinDBG command line for Virtual PC Kernel Debugging on COM1 |
"windbg.exe" -Q -k "com:port=\\.\pipe\COM1,baud=115200,pipe,resets=0,reconnect" |
Configure the system to generate complete kernel memory dump |
wmic recoveros set AutoReboot = False wmic recoveros set DebugInfoType = 1 |
Enabling Administrator Account on Windows Vista and setting up a password |
net user administrator password /active:YES |
Command Line INF File Installation on Vista and later versions of Windows |
%WINDIR%\system32\InfDefaultInstall.exe MyInfFile.inf |
Backup the current boot loader entry to an entry named "Microsoft Windows Vista [debugger disabled]" |
bcdedit /copy {current} /d "Microsoft Windows Vista [debugger disabled]" |
Enable debugging in the current boot loader entry |
bcdedit /debug ON |
Enable debugging over COM1 at 115200 baud in the current boot loader entry |
bcdedit /set {current} debugtype SERIAL bcdedit /set {current} debugport 1 bcdedit /set {current} baudrate 115200 |
Enable debug over 1394 channel 5 in the current boot loader entry |
bcdedit /set {current} debugtype 1394 bcdedit /set {current} channel 5 |
Enable debug over USB2.0 using the name USBDEBUG in the current boot loader entry |
bcdedit /set {current} debugtype usb bcdedit /set {current} targetname usbdebug |
Enable DbgPrint() (debug print) output to appear in Vista and later versions of Windows |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /v DEFAULT /t REG_DWORD /d 0xffffffff |
Configure the system (Vista SP1 and above) to generate a user mode mini-dump with full memory information |
reg add "HKLM\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps" /v DumpType /t REG_DWORD /d 0x2 |
User Mini Dump File would be generated in %LOCALAPPDATA%\CrashDumps upon application crash. |
Configure the system to generate a kernel or complete memory dump upon detecting the key combination "Ctrl + Scroll Lock + Scroll Lock" from a PS/2 keyboard |
reg add "HKLM\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters" /v CrashOnCtrlScroll /t REG_DWORD /d 0x1 |
Configure the system to generate a kernel or complete memory dump upon detecting the key combination "Ctrl + Scroll Lock + Scroll Lock" from an USB keyboard |
reg add "HKLM\SYSTEM\CurrentControlSet\Services\kbdhid\Parameters" /v CrashOnCtrlScroll /t REG_DWORD /d 0x1 |
https://indianofs.blogspot.com/2011/07/tim-gunn-blasts-hillary-clintons.html
https://indianofs.blogspot.com/2011/07/directly-open-command-line-on-current.html
0 comments:
Post a Comment