顯示具有 windows 標籤的文章。 顯示所有文章
顯示具有 windows 標籤的文章。 顯示所有文章

2016年1月24日 星期日

enable user environment debug logging

enable user environment debug logging 

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
Entry: UserEnvDebugLevel
Type: REG_DWORD 

NONE 0x00000000
NORMAL 0x00000001
VERBOSE 0x00000002
LOGFILE 0x00010000
DEBUGGER 0x00020000
The default value is NORMAL|LOGFILE (0x00010001).

Note To disable logging, select NONE (0x00000000).

You can combine these values. For example, you can combine VERBOSE 0x00000002 and LOGFILE 0x00010000 to get 0x00010002. Therefore, if UserEnvDebugLevel is given a value of 0x00010002, LOGFILE and VERBOSE are both turned on. Combining these values is the same as using an OR statement.
0x00010000 OR 0x00000002 = 0x00010002
Note If you set UserEnvDebugLevel to 0x00030002, the most verbose details are logged in the Userenv.log file.

%Systemroot%\Debug\UserMode\Userenv.log file. If the Userenv.log file is larger than 300 KB, the file is renamed Userenv.bak, and a new Userenv.log file is created.

you can set the read-only attribute on the Userenv.bak file, and the Userenv.log file will grow indefinitely.

2016年1月21日 星期四

啟用 Wiadebug.log 檔案的記錄

啟用 Wiadebug.log 檔案的記錄

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\StillImage\Debug\Module_name\DebugFlags
WIA 服務中,適當的二進位模組會是 Wiaservc.dll。

DebugFlags中的值會控制的記錄級別。下列清單說明這三個設定:
  • 0x00000001: 顯示錯誤
  • 0x00000002: 顯示警告 
  • 0x00000004: 顯示追蹤
DebugFlags的值是bit旗標值

重新啟動 
 net stop stisvc
 net start stisvc
 
 

2016年1月17日 星期日

windows xp , stop wbem logging, and change WMI repository to ramdisk

windows xp , stop wbem logging, and change WMI repository to ramdisk

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM
Key: Repository Directory
value: R:\xxx\Repository
where R: drive is your ramdisk drive, and xxx is your existing folder in ramdrive.


Key: Logging
value:  1  --> 0

您也可以為 WMI 設定錯誤記錄檔:
  • 所有的記錄檔的目的資料夾是設定此登錄子機碼:
    HKEY_LOCAL_MACHINE\Software\Microsoft\WBEM\CIMOM\LoggingDirectory
  • 最大檔案大小是設定下列登錄子機碼:
    HKEY_LOCAL_MACHINE\Software\Microsoft\WBEM\CIMOM\Log File Max Size
下列登錄子機碼會決定如何 Windows 驅動程式模型 (WDM) 提供者將會記錄錯誤:
HKEY_LOCAL_MACHINE\Software\Microsoft\WBEM\CIMOM\Logging

值:
0: 關閉記錄
1:   錯誤記錄
2: 詳細資訊記錄

windows XP assign Recent folder to ramdisk, or other drive

windows XP  assign Recent folder to ramdisk, or other drive

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
key: Recent
string: R:\Recent

purpose: decrease ssd, or system drive read/write activity

食用油

豆大芥小 加熱均 又非橄㰖 造假多 油麻菜籽 螻蟻命 自求多福 身安康 目前 我推 芥花油,較耐高溫. 從成份上來看 橄㰖>芥花>大豆 . 從CP/造假上來看 又不推 高價 橄㰖了, 可能 摻其它大豆等油/加色素等, 最近新聞 數千公頓大豆 不知所踪, 合理推測, 是...