Hiển thị các bài đăng có nhãn Windows Vista. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn Windows Vista. Hiển thị tất cả bài đăng

Chủ Nhật, 1 tháng 3, 2009

Disable Autorun in Vista to Protect Against Malware Infections

anti-virus old school
Tất cả các phiên bản Windows hiện nay có tính năng được gọi là AutoPlay và AutoRun. AutoPlay cho phép bạn chọn chương trình nào được dùng cho các ứng dụng media, như là các CD/VCD/DVD chứa nhạc, video, phim, hoặc là hình ảnh. Lấy ví dụ, lần đầu tiên bạn nghe nhạc từ đĩa CD, nếu bạn có nhiều hơn 1 chương trình media player trên máy tính, AutoPlay sẽ hỏi bạn muốn dùng chương trình media player nào. Bạn có thể thay đổi "AutoPlay settings - Thiết lập Autoplay" cho mỗi loại media.

AutoPlay

Autorun là cách để chạy nhiều chương trình hoặc nội dung nổi bậc (như là video trên đĩa CD nhạc) một cách tự động khi bạn bỏ đĩa CD hoặc cắm ổ USB vào máy tính. Khác với AutoPlay ở điểm này, nhưng kết quả là giống nhau, khi được đưa vào, đĩa CD hoặc ổ USB tự động bắt đầu dùng một chương trình nào đó để chạy ứng dụng. Autorun kết hợp chặt chẽ với loại media mà nó dùng và bạn không thể điều chỉnh nó.

Khi một đĩa được bỏ vào hoặc một ổ đĩa được kết nối với máy tính, Windows tìm file có tên là autorun.inf trong thư mục gốc - root directory của đĩa đó. Nếu tìm thấy, Windows thực thi theo hướng dẫn trong file đó mà không cần biết đó là gì (có thể là nhạc và cũng có thể là virus)!!!

Lấy ví dụ, một file autorun.inf trên một CD có thể gồm một dòng là "open=setup.exe". Có nghĩa là máy tính sẽ chạy một cài đặt ngay khi đĩa CD đó được bỏ vào.

Bây giờ tôi biết bạn đang nghĩ là tại sao không disable nó trong Control Panel.

Adjust Autoplay
và bạn có thể làm như thế. Nhưng ngay khi mở ổ đĩa từ from My computer hoặc Windows Explorer, Windows sẽ vẫn cứ chạy file autorun.inf !!!

Bạn có thể cũng tin là có thể tự bảo vệ đối với AutoRun bằng cách sửa lại 2 keys trong Registry là NoDriveAutoRun and NoDriveTypeAutoRun, but it has been shown that these keys can be overridden by a little-known registry key called MountPoints2 which contains cached information about every memory stick or other removable device that your PC has ever seen, and that overrides the NoDriveTypeAutoRun value if you insert a device which the PC already knows about.

The solution to this problem is to globally block autorun.inf files from executing without using the dialog boxes in Vista to do this. Here’s how:

  1. Start Notepad or any text editor.
  2. Copy the text below into the text editor, [everything between the square brackets should be all on one line]REGEDIT4
    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionIniFileMappingAutorun.inf]
    @=”@SYS:DoesNotExist”
  3. Save it to your desktop as NoAutoRun.reg. Make sure the extension is .reg and not .txt.
  4. Right-click your new .reg file and choose Merge.
  5. If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
  6. Click Yes when you’re asked “Are you sure you want to add the information in C:NoAutoRun.reg to the registry?

Now the next time you insert a flash drive, CD, DVD, or other removable disc into your system, Windows will not execute the information in any autorun.inf file that may be present. The downside of this is that when you insert a CD or DVD with software on it, you have to find the setup program using My Computer or Windows Explorer and launch it yourself. But I think that’s a small price to pay for the increased security.

Copyright © VistaRevisited.com. All Rights Reserved.

RELATED POSTS:
  • Change which programs Windows uses by default
  • Running Vista’s Compatibility Mode
  • Add 3D Pinball To Windows Vista
  • Remote Differential Compression And Your Vista Network Part 2
  • Add Take Ownership Of Files To Vista’s Right Click Menu
  • Disable/Turn Off User Account (Access) Control (UAC) in Windows Vista

    Source: http://www.tipandtrick.net/2008/ways-to-disable-or-turn-off-user-account-access-control-uac-in-windows-vista/
    http://www.pcdoctor-guide.com/wordpress/?p=4641

    Ways to Disable or Turn Off User Account (Access) Control (UAC) in Windows Vista

    User Account Control (UAC), or unknowingly mistaken as User Access Control is new security feature in Windows Vista. The main display of UAC is the occasional pop up dialog box asking for user’s permission needed by Windows or for user to enter administrator’s password to perform the operation or run a program especially setup executable, installer or system tools. UAC also affects command prompt (Cmd.exe) with errors such as “The requested operation requires elevation” or “Access Denied” when not running in elevated command prompt with full privileges.

    The annoying symptom happens because User Account (Access) Control or UAC forces all processes to run in lower elevation mode with limited privileges. When a program or process requires access to system files, folders or registry hives that only administrator can access, UAC launch a consent prompt to allow user to give approval or enter administrator’s credential to higher elevation with full administrator’s rights.

    For user who find the constant UAC elevation approval request annoying, and confident that you can maintain the security of computer from infection without the help of UAC, it’s possible to turn off and disable UAC. Turning User Account Control off potentially fix compatibility issue where UAC prevents some programs, applications, components, processes or games from running properly even if authorization is given to elevate its privileges, as delay in execution as may break certain real-time functions.

    There are a few ways that you can use to turn off the UAC, but most home and personal users should find method to disable UAC via Control Panel easiest to do. User Account Access Control, when turned off and disabled., will affect all users on the computer.

    Method 1 - Turn Off UAC via Users Accounts Control Panel

    1. Click Start and then open Control Panel.
    2. In the Control Panel, click User Accounts and Family Safety.

      Disable UAC

    3. Click User Accounts.

      Turn Off UAC

    4. Click Turn User Account Control on or off.

      Turn Off and Disable User Access Control in Vista

      When prompted that Windows needs your permission to continue, press Continue button or enter the administrator’s password.

    5. Clear the tick or check mark on the check box beside the option to Use User Account Control (UAC) to help protect your computer.

      Turn Off and Disable User Account Control in Vista

    6. Click OK.
    7. When prompted that computer must be restarted to apply the changes, reboot the computer.
    8. To enable the UAC, simply tick or select the checkbox again.

    Method 2 - Disable UAC Using Registry Editor

    1. Run Registry Editor by typing RegEdit in Start Search or command prompt.
    2. Registry Editor, navigate to the following registry key:

      HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System

      where HKLM is HKEY_LOCAL_MACHINE.

    3. Right click on EnableLUA registry subkey and choose Modify or double click on EnableLUA registry value name in the right pane to modify the setting.

      Disable UAC via EnableLUA

    4. On “Edit DWORD (32-bit) Value” dialog box, set the new value data as 0.

      Turn of UAC via Registry Setting

    5. Exit from Registry Editor.
    6. Restart the computer.
    7. To enable the UAC again, simply change back the value data of EnableLUA to 1.

    Method 3 - Turn Off UAC Using MSConfig System Configuration Utility

    • Type MSConfig in Start Search box or Run command (open by pressing Win+R) and hit Enter key.

      When prompted that Windows needs your permission to continue, press Continue button or enter the administrator’s password.

    • In System Configuration window, click on the Tools tab.
    • Scroll down and locate to select Disable UAP or Disable UAC option in the item list.

      Disable User Access Control with MSConfig

    • Click the Launch button.
    • A command prompt window will open and automatically execute and run scripted process to disable UAC.
    • On completion, The operation completed successfully message will be shown. Close Cmd.exe window when done, and then exit form MSConfig.
    • Restart computer for changes to apply and become effective.
    • To return UAC to on status, simply select Enable UAP or Enable UAC, and then click on Launch button.

    Method 4 - Disable UAC Using Group Policy (Active Directory GPO or Local Group Policy)

    Note: Windows Vista Home Premium and Home Basic editions do not have Local Group Policy Editor.

    1. Click Start and then type GPEdit.msc in the Start Search box and hit Enter key to open the Group Policy Editor.

      Note: If you’re using Active Directory Domain GPO which controls many computers, open Group Policy Management Console by click on Start, and then type GPMC.msc in the Start Search and hit Enter key from a Windows Vista computer that is a member of the AD domain. In the Group Policy Management Console (GPMC) window, browse to the respective GPO which is linked and enabled to the OU (organization unit) or domain where the Vista computers are located, then edit it.

    2. Navigate and browse to Computer Configuration -> Windows Settings -> Security Settings -> Local Policies -> Security Options.
    3. In the right details pane, there are a few User Account Control related policies. Right click each of the following policies and configure or change the value to the new value indicated below after the dash (-):
      • User Account Control: Behavior of the elevation prompt for administrators - Elevate without prompting
      • User Account Control: Detect application installations and prompt for elevation - Disabled
      • User Account Control: Run all administrators in Admin Approval Mode - Disabled

      Turn Off User Access Control using Group Policy

    4. Restart the computer to make the changes effective.
    5. To re-turn on UAC, revert back to original values of the policies, which is Enabled and Prompt for Consent.

    Method 5 - Disable User Access Control from Command Prompt

    1. Open an elevated command prompt.
    2. Run the following command to disable and turn off UAC:

      C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

    3. To re-enable and turn back on the User Account Control, run the following command:

      C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

    4. Reboot the computer for the changes to take effect.

    Note: After disabling and turning off UAC, a red X shield icon of Windows Security Center will be displayed in the notification area (system tray). My Digital Life has the guide to remove the Windows Security Center warning icon and messages.