2014年5月27日 星期二

Registry Hack: Get Windows XP Security Updates until 2019

  • Open Notepad and create a new file.
  • Add Below given code to it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady]
"Installed"=dword:00000001
  • Save file as .reg extension and run it by double clicks.
  • Once executed, you will find lots of pending updates in your Windows Action Center.

2014年3月31日 星期一

Microsoft hướng dẫn gỡ bỏ Internet Explorer 9/10/11

Với Internet Explorer 9: FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*9.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart
Với Internet Explorer 10: FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*10.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart
​Với Internet Explorer 11: FORFILES /P %WINDIR%\servicing\Packages /M Microsoft-Windows-InternetExplorer-*11.*.mum /c "cmd /c echo Uninstalling package @fname && start /w pkgmgr /up:@fname /quiet /norestart

2014年3月22日 星期六

How to disable or enable USB Ports

How often you have witnessed blocked Pen drive or USB drive access in your work place or college or school? I believe many times; in fact every time you try to use the USB drive, you are not allowed, simply because the administrator has disabled USB drive detection on your PC. Again, how often has your data been stolen because someone connected an unauthorized USB to your computer and copied your files?  Well, you don’t need to worry because the solution to disable or enable USB Ports is pretty simple.

Restrict access to USB drives

There are three ways an administrator can prevent using of USB Drives.

They are:
  1. Altering registry values for USB Mass Storage Devices.
  2. Disabling USB Ports from Device Manager.
  3. By Un-installing the USB Mass Storage Drivers.
Lets us look at how we can fix these problems and enable USB on Windows 7 PC.

1. Disable or Enable USB Mass Storage Devices using Registry.

If the administrator is smart then he would definitely do this to ensure a tight blockade. He would alter the settings through regedit command on run console. Now how do you unlock it ? You have to go right into where the administrator has been. Here is how.
  1. Go to Start > Run , type “regedit” and press enter to open the registry editor
  2. Navigate to the following key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
In the right pane, select Start and change the value to 3. (The value 4 will disable USB Storage). Click OK. This will re-enable USB Ports and allow you to use USB or Pen drives.
image1 How to disable or enable USB Ports in Windows 7 | 8

2. Disabling USB Ports from Device Manager.

If you still don’t find your USB drive working, you may have to look into the Device Manager. The Administrator could have possibly disabled the USB port here. Check out for any possibility in the Device Manager and enable the disabled port by right clicking on selected one and click Enable.
image2 How to disable or enable USB Ports in Windows 7 | 8

3. By un-installing the USB Mass Storage Drivers.

If the authorities are really worried about security in the school they would take the extreme step of un-installing the USB Mass Storage Drivers. To make things work, just install the device drivers. Here is how you do it.
As when you plug-in your USB drive, Windows will check for drivers, if not found Windows will prompt you to install the driver. This would definitely unlock the Pen drive at your School or office.

4. Use USB Drive Disabler /Enabler.

You can download and use a free tool USB Drive Disabler / Enabler which will allow you to easily enable or disable USB drives on your Windows computer.
usb disabler How to disable or enable USB Ports in Windows 7 | 8

2014年3月21日 星期五

Disable USB mà không ảnh hưởng đến Mouse và Keyboard

****************************
@echo off
:: Retreive Windows Language
:detect
for /f "Skip=1 Tokens=3*" %%i in ('reg QUERY "hklm\system\controlset001\control\nls\language" /v Installlanguage') do set language=%%i

:: Dutch - Belgium
if "%language%" == "0813" (
set users=Gebruikers
goto select
)
:: Dutch - Netherlands
if "%language%" == "0413" (
set users=Gebruikers
goto select
)
:: English - United States
if "%language%" == "0409" (
set users=Users
goto select
)

:select
if /I "%1" == "enable" goto enable_usbstor
if /I "%1" == "disable" goto disable_usbstor

echo Invalid commandline options
echo.
echo %0 - Enable or disable USB mass storage
echo %0 enable - enable USB mass storage
echo %0 disable - disable USB mass storage
exit /b 1

:enable_usbstor
echo Enabling USBstor driver
:: Enable USBstor driver
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 3 /f
:: Enable permissions on USBstor driver
cacls %SystemRoot%\inf\usbstor.inf /E /G %users%:R
cacls %SystemRoot%\inf\usbstor.PNF /E /G %users%:R
:: Leave state for WPKG to check on
if exist %SystemRoot%\usbstor-disable.tmp del %SystemRoot%\usbstor-disable.tmp
echo enable > %SystemRoot%\usbstor-enable.tmp
goto end

:disable_usbstor
echo Disabling USBstor driver
:: Disable USBstor driver
reg add HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR /v Start /t REG_DWORD /d 4 /f
:: Disable read permissions on USBstor driver
cacls %SystemRoot%\inf\usbstor.inf /E /R %users%
cacls %SystemRoot%\inf\usbstor.PNF /E /R %users%
:: Leave state for WPKG to check on
if exist %SystemRoot%\usbstor-enable.tmp del %SystemRoot%\usbstor-enable.tmp
echo disable > %SystemRoot%\usbstor-disable.tmp
goto end

:end
exit /b 0


**************************************

2014年2月27日 星期四

解決「User Profile Service服務無法登入…」的問題

根據Windows Vista的說明:

如果您嘗試登入 Windows 且收到錯誤訊息,告知您使用者設定檔可能已毀損,您可以嘗試修復您的使用者設定檔。您將必須建立新的設定檔,然後將檔案從現有設定檔複製到新設定檔。

試過以安全模式登入或是用另一個使用者登入,再以系統管理員身分執行新增使用者,但是都無法新增使用者來建立新檔案。

在想要放棄時,最後求助於搜尋引擎。果真找到Microsoft TechNet找到Microsoft員工Vincent Lin的回答內容:

用下面的動作應該可以解決你的問題

進入安全模式(開機時按鍵盤上的F8)
點選左下角開始->所有程式->附屬應用程式->在命令提示字元上點選右鍵選擇以系統管理員身分執行
在黑色視窗輸入net user Administrator /active:yes並按下enter鍵(此動作為將Administrator帳號啟動,若要停用此帳戶時將後面的Yes改
為No後即可)
執行完上述動作後重新開機進入正常模式,並以Administrator帳號做登入的動作
登入後點選左下角開始->輸入regedit並按下enter鍵,會出現登錄編輯程式
進入下列機碼HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
您在左邊的畫面會看到兩個類似的資料夾,應該為為S-1-5-21-xxxxx & S-1-5-21xxxxx.bak(前面都一樣,只有後面有一個會加上.bak)
在S-1-5-21-xxxxx上點選右鍵->重新命名,在檔名最後面輸入.old
在S-1-5-21-xxxxx.bak上點選右鍵->重新命名,在檔名最後面的.bak刪除,檔名會變成S-1-5-21-xxxxx
點選資料夾S-1-5-21-xxxxx在右邊視窗點選RefCount兩下,並將數值修改為0,修改完後點選State兩下,也將數值修改為0
上述動作完成後關閉所有視窗並重新開機,使用原來的帳號登入即可

很輕鬆的我簡單的解決了困擾我一個晚上的問題。

Vincent Lin我不認識你,但是我謝謝你...

2012年2月20日 星期一

ATTRIB

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]] + Sets an attribute. // dấu + để thêm thuộc tính - Clears an attribute. // dấu - để loại bỏ thuộc tính R Read-only file attribute. // thuộc tính chỉ đọc A Archive file attribute. // thuộc tính lưu trữ S System file attribute. // thuộc tính hệ thống H Hidden file attribute. // thuộc tính ẩn [drive:][path][filename] attrib -s -h attrib -h -s /S /D

2011年12月17日 星期六

Reset sensor Godex EZ-2200

Reset sensor Godex EZ-2200 : Pause + Power