Thứ Năm, 25 tháng 6, 2009

Cách đơn giản và hiệu quả nhất để loại bỏ quảng cáo của Yahoo Messenger mọi phiên bản (cả 9.x)

Ưu điểm:
1. Không cần sửa registry: sửa registry luôn phải chạy theo phiên bản YM mới
2. Không cần file patch (có thể có virus, trojan...)
3. Chỉ cần Notepad
Nguyên tắc:
Chặn server quảng cáo của Yahoo (cái này Yahoo không thể thay đổi liên tục được )
Hướng dẫn: Có thể dùng để chặn địa chỉ web
1. Dùng Notepad.
2. Mở file sau:
C:\Windows\system32\drivers\etc\hosts
3. Thêm dòng sau vào cuối file:
127.0.0.1 insider.msg.yahoo.com #chan server quang cao yahoo
4. Save lại, restart YM nếu đang bật -> đã xong \^^/

Thứ Năm, 18 tháng 6, 2009

MS Windows XP Professional Service Pack 2 VOL (Bản gốc + CDkey xịn )


(20/05/08)

[FONT="Arial Black"]Win Cực Chuẩn
MS Windows XP Professional Service Pack 2 VOL (Bản gốc + CDkey xịn )
Bản Windows này mang những đặc điểm nổi bật sau đây :
Trong quá trình cài đặt bằng BootCd các bạn điền CDkey xịn vào , và sau khi cài đặt hoàn thành Windows của bạn đã trở thành Win bản quyền 100% , mà không cần phải Crack hay Active gì hết !
CD Windows này sau quá trình chạy thử ở nhiều máy và máy của mình thì hầu như không có lỗi gì xẩy ra , hay nói cách khác là nó chạy rất ổn định !
Vì là bản Windows Xp Sp2 bản gốc nguyên thủy đầu tiên nên nó vẫn giữ nguyên Windows Media 9 và Internet Explorer 6 nhưng các bạn đừng quá lo lắng , nếu ai đó muốn Update lên Windows Media 11 hay IE7 thì quá trình này diễn ra rất nhanh lẹ, đơn giản mà không gặp phải bất kỳ 1 trở ngại nào của Sir Bill ( Microsoft) !
Các bạn nếu muốn thì có thể Update lên thẳng Service Pack 3 bản Final của Microsoft thông qua hệ thống Microsoft Update , mất khoảng 1-2 giờ chờ đợi tùy theo cấu hình máy và tốc độ đường truyền !
Sau khi kiểm tra tính tương thích với đa số các phần mềm thông dụng thì chưa nhận ra sự xung đột hay lỗi gì với các phần mềm đó !
Đây là phiên bản CD ISO nguyên gốc từ Microsoft chưa hề chỉnh sửa , thêm hay bớt đi bất kỳ 1 thành phần nào trong đó cả !
Các bạn lưu ý :
Sau khi tải về các bạn dùng Winrar giải nén 1 lần trong đó có 1 file ISO , sử dụng bất kỳ phần mềm Ghi ISO nào mà các bạn biết ( Nero , Power ISo, Open Iso , ...) tiến hành ghi ra đĩa CD và sử dụng !
Trong File mình Up đã bao gồm CDkey zịn rồi !Chúc các bạn thành công !
Pass Unrar : softvnn.com
Pass Mediafile :www.softvnn.com
http://www.mediafire.com/?sharekey=a...db5ed05e94f9bd

Thứ Ba, 16 tháng 6, 2009

xcopy

Vừa rồi cty đưa ra 1 yêu cầu khá "độc": copy toàn bộ files hình ảnh từ 1 server sang backups folders đồng thời giữ nguyên cấu trúc folders Yêu cầu này khá "căng" vì hình ảnh từ server rất nhiều, và lồng vào rất nhiều thư mục con cũng như kèm chung với những định dạng files khác. Do đó, nếu làm thủ công là copy tòan bộ sang folder backup rồi lọc lại thì chít chắc
Sau khi tham khảo khá nhiều cao thủ mà vẫn chưa có kết quả khả quan, tui đành nhờ bạn đồng hành google trợ giúp. Sau 1 tiếng mài mò với các softwares của anh google đưa ra, tui cũng rối tung. Cuối cùng, sau 1 hồi bẻ tay, bứt tóc, tui cũng tìm ra kết quả
Sau đây là cách tui làm:
Đầu tiên, login vào Backup Server, tạo 1 folder để chứa backups. Ở đây tui đặt là C:\Backups.
Sau đó, tui connect UNC qua IMG Server bằng Enterprise Admin để có toàn quyền. Truy cập đến share folder và có được đường dẫn sau:\\imgsrv\project\ (hix, trong cái folder projects có gần cả nghìn folders con )
Hehe, giờ bắt đầu:
Vào Start > Run, gõ CMD
Tại command Prompt, ta gõ;

Code:

xcopy \\imgsrv\project\*.jpg c:\backups /S /C /K /O > c:\copyjpg.txt


Trong đó các tham số:

/S: copy tất cả các files và folders, ngoại trừ những folder trống


/C: tiếp tục copy nếu có lỗi giữa chừng


/K: Giữ nguyên attributes của files


/O: Giữ nguyên permission và ACL


/X: Giữ nguyên tính năng theo dõi (audit)


> c:\copyjpg.txt : Xuất ra txt những files đã copy


Các tham số của xcopy rất nhiều để làm những việc khác, các bạn có thể tham khảo thêm bằng cách gõ xcopy /?


Hehe, ngồi nhìn hàng nghìn dòg log show ra sướng mắt. Sau khi kết thúc, vào kiểm tra lại folder backups thì thấy rất nhiều files JPG và cấu trúc folders vẫn được giữ nguyên, ngay cả permission cũng không thay đổi

Thứ Tư, 3 tháng 6, 2009

MS Office SharePoint Server - Part 1 - Installation

Trong một hệ thống công ty từ vừa đến rất lớn thì nhu cầu về chia sẻ tài liệu cũng như thông tin trong công việc là điều không thể thiếu trong thời đại CNTT hiện nay.

Ý thức được nhu cầu thực tế này Microsoft đã cho ra đời các công cụ rất mạnh mẽ như Microsoft SharePoint Services, Microsoft Office SharePoint Server…. chạy trên ứng dụng Web.

Dịch vụ SharePoint cung cấp các tính năng rất cần thiết cũng như có độ bảo mật, tin cậy cao hơn nữa không chỉ gói gọn cho việc sử dụng trong nội bộ mà Microsoft Office SharePoint Server còn có khả năng chia sẻ cho cộng đồng mạng Internet với mức độ truy cập rất cao thậm chí đến hàng triệu người dùng cùng lúc.

Như vậy nói nôm na Microsoft SharePoint ServicesMicrosoft Office SharePoint Server (MOSS) là các Website có nhiều tính năng rất mạnh mẽ vì chúng có thể tương tác sâu trong hệ thống và khai thác triệt để các tính năng mạnh mẽ sẵn có như Certificate, Domain, Microsoft Office…. Ngoài ra do được viết trên nền .Net sử dụng cơ sở dữ liệu MS SQL Server nên Microsoft Office SharePoint Server có tốc độ truy cập rất nhanh và chịu được áp lực cực lớn (hàng triệu truy vấn cùng một lúc).

Để cài đặt được Microsoft Office SharePoint Server hệ thống của bạn cần có:

- Internet Information Services (IIS)

- Microsoft .Net Framework v2.0 hoặc cao hơn

- Windows Internal Database

Trong bài tôi sẽ cài đặt Microsoft Office SharePoint Server lên một máy Windows Server 2008

Tại máy Server bạn vào Server Manager -> Roles -> Add Roles

Tiến hành cài đặt dịch vụ Web Server (IIS) lên máy

2009-02-10_163510_GF

Sau khi cài đặt IIS hoàn tất bạn vào lại Server Manager -> Features -> Add Features

Tiến hành cài đặt dịch vụ Windows Internal Database bằng cách chọn Windows Internal Database trong cửa sổ Select Features

2009-02-10_163511_GF

Cửa sổ Add Features Wizard bật lên chọn Yes

2009-02-10_163512_GF

Sau khi cài đặt các dịch vụ cần thiết bây giờ ta tiến hành cài đặt Microsoft Office SharePoint Server

Tại màn hình cài đặt của Microsoft Office SharePoint Server bạn chọn Advanced trong Choose the installation you want

2009-02-10_163515_GF

Chọn Install Now để tiến hành cài đặt

2009-02-10_163545_GF

Cuối quá trình cài đặt Microsoft Office SharePoint Server yêu cầu bạn tiếp tục cấu hình cho Microsoft Office SharePoint Server bạn chọn Run the SharePoint Products and Technologies Configuration Wizard now và nhấp Close

2009-02-10_172241_GF

Trong màn hình SharePoint Products and Technologies Configuration Wizard nhấp Next

2009-02-10_172342_GF

Chọn Yes

2009-02-10_172938_GF

Tiến trình cấu hình MOSS bắt đầu, tiến trình này hoàn toàn tự động và mất khá nhiều thời gian

2009-02-10_182119_GF

Sau khi cấu hình hoàn tất bạn nhấp Finish trong Configuration Successful

Trong bài vì máy Server của tôi đã được nâng cấp lên thành DC Server nên MOSS yêu cầu ta truy cập vào MOSS với cú pháp [Domain Name]\[Username]

2009-02-10_191150_GF

Windows sẽ tự động bật IE lên và truy cập vào trang Web của MOSS theo đường  dẫn http://[Tên máy cài MOSS]

Bạn nhập User/Pass của Admin Domain để truy cập vào MOSS

2009-02-10_191340_GF

Giao diện trang Web chính của MOSS đây chính là giao diện trang web chính thức mà người dùng bên ngoài sẽ truy cập và khai thác tài nguyên trên này

2009-02-10_191627_GF

Bạn vào Start -> Programs -> Microsoft Office Server -> SharePoint 3.0 Central Administration

2009-02-10_200411_GF

Bạn nhập User/Pass của Admin Domain để truy cập vào MOSS

2009-02-10_200500_GF

Trang Web Central Administration hiện ra theo địa chỉ http://[Tên máy cài MOSS:{Port Ramdon}] đây chính là giao diện trang Web chính thức mà Admin dùng để quản lý MOSS

2009-02-10_200613_GF

OK mình vừa trình bày xong phần Microsoft Office SharePoint Server - Installation trong 70-630 của MCSA.

Thứ Ba, 2 tháng 6, 2009

Config Internet Information Services 6 (IIS 6)

Internet Information Services 6 (IIS 6) is a powerful platform for hosting web sites on both the public Internet and on private intranets. Creating and configuring web sites and virtual directories are bread-and-butter tasks for IIS Administrators, and in this article we'll walk through the process of doing this using both the GUI (IIS Manager) and using various scripts included with Windows Server 2003. The seven specific tasks we'll walk through will include:

  • Creating a Web Site
  • Creating a Local Virtual Directory
  • Creating a Remote Virtual Directory
  • Controlling Access to a Web Site
  • Configuring Web Site Logging
  • Configuring Web Site Redirection
  • Stopping and Starting Web Sites

For sake of interest, we'll explain these tasks in the context of a fictitious company called TestCorp as it deploys IIS for its corporate intranet.

Preliminary Steps

Unlike earlier versions of Microsoft Windows, IIS is not installed by default on Windows Server 2003. To install IIS, open Manage Your Server from the Start menu and add the Application Server role:

Note that for simple security reasons IIS should only be installed on member servers, not domain controllers. The reason is that if you install IIS on a domain controller and your web server becomes compromised, the attacker could gain access to your accounts database and wreak havoc with your network.

Creating a Web Site

The simplest approach is to use a separate IP address to identify each web site on your machine. Let's say our server has five IP addresses assigned to it from the range 172.16.11.220 through 172.16.11.224. Before we create a new Human Resources web site, let's first examine the identify of the Default Web Site. Open IIS Manager in Administrative Tools, select Web Sites in the console tree, and right-click on Default Web Site and open it's properties:

The IP address for the Default Web Site is All Unassigned. This means any IP address not specifically assigned to another web site on the machine opens the Default Web Site instead. A typical use for the Default Web Site is to edit it's default document to display general information like a company logo and how to contact the Support Desk.

Let's use IP address 172.16.11.221 for the Human Resources site and make D:\HR the folder where the home page for this site is stored. To create the HR site, right-click on the Web Sites node and select New --> Web Site. This starts the Web Site Creation Wizard. Click Next and type a description for the site:

Click Next again and specify 172.16.11.221 as the IP address for the site:

Click Next and specify D:\HR as the home folder for the site. We've cleared the checkbox to deny anonymous access to the site because this is an internal intranet so only authenticated users should be able to access it (public web sites generally allow anonymous access):

Click Next and leave only Read access enabled since the Human Resources site will initially only be used to inform employees of company policies:

Click Next and then Finish to create the new web site:

Now let's create another intranet site, this time for Help Desk, which will use IP address 172.16.11.222 and home folder D:\Help. We'll create this one using a script instead of the GUI:

And here's the result:

The script we used here is Iisweb.vbs, one of several IIS administration scripts available when you install IIS on Windows Server 2003. The basic syntax of this script is easy to figure out from the previous screenshot, and a full syntax can be found here. Note that unlike the Web Site Creation Wizard used previously. you can't use this script create a web site with anonymous access disabled. So if you want to disable anonymous access you should do it by opening the properties sheet for the Help Desk site, selecting the Directory Security tab, and clicking the Edit button under Authentication and Access Control. This opens the Authentication Methods box where you can clear the checkbox to disable Anonymous Access and leave Windows Integrated Authentication as the only authentication method available for clients on your network:

Creating a Local Virtual Directory

Let's say Human Resources keeps their policies in a folder called D:\HR Policies on your web server and you would like users to be able to use the URL http://172.16.11.221/policies when they need to access these policies. To do this we need to create a virtual directory that associates the /policies portion of the URL, called the alias for the virtual directory, with the physical directory D:\HR Policies where these documents are actually located.

Let's do this now. Right-click on the Human Resources site and select New --> Virtual Directory to start the Virtual Directory Creation Wizard. Click Next and type the alias for the virtual directory:

Click Next and specify the physical folder on the local server to map to this alias:

Click Next and specify permissions (again we'll just leave Read enabled) and finish the wizard. Here's the result:

Let's do something similar using another IIS script named Iisvdir.vbs, only we'll create a /procedures virtual directory instead:

Open IIS Manager to display the new virtual directory:

Note the difference in the icons for the two virtual directories. That's because when the script creates a virtual directory it also creates an application starting point for that directory, while the wizard does not. This doesn't matter though, since for now we're only hosting static content in these directories. For the full syntax of Iisvdir.vbs see here.

Creating a Remote Virtual Directory

Help Desk likes to do things differently than Human Resources does, and their user manual is stored in HTML form in the share \\srv230\helpdesk on a network file server. Let's create a remote virtual directory within the Help Desk site that associates the alias /usermanual with this share. Right-click on the Help Desk site and select New --> Virtual Directory to start the Virtual Directory Creation Wizard again, specify usermanual as the alias for the directory, and type \\srv230\helpdesk as the UNC path to the share:

Click Next and a new screen appears prompting you to either specify credentials for accessing the share or use the authenticated user's credentials for this purpose (we'll use the latter):

Click Next and finish the wizard. Let's look at the result:

The Iisvdir.vbs script can similarly be used for creating remote virtual directories.

Controlling Access to a Web Site

Now that we have a couple of web sites and virtual directories created, let's look at a few administration tasks. This will be only a brief overview--you can find a much more detailed treatment of the subject in my book IIS 6 Administration (Osborne/McGraw-Hill).

First let's look at how we can control access to our web sites. There are basically four ways you can do this: NTFS Permissions, web permissions, IP address restrictions, and authentication method. NTFS permissions is your front line of defense but it's a general subject that we can't cover in detail here. Web permissions are specified on the Home Directory tab of your web site's properties:

By default only Read permission is enabled, but you can also allow Write access so users can upload or modify files on your site.

Script source access so users can view the code in your scripts (generally not a good idea), or Directory browsing so users can view a list of files in your site (also not a good idea). Web permissions apply equally to all users trying to access your site, and they are applied before NTFS permissions are applied. So if Read web permission is denied but NTFS Read permission is allowed, users are denied access to the site.

IP address restrictions can be used to allow or deny access to your site by clients that have a specific IP address, have an IP address within a range of addresses, or have a specific DNS domain name. To configure this, select the Directory Security tab and click the Edit button under IP Address and Domain Name Restrictions. This opens the following dialog, which by default does not restrict access to your site:

The main thing to watch for here is that denying access based on domain name involves reverse DNS lookups each time clients try to connect to your web site, and this can significantly impact the performance of your site.

The final way of controlling access to your sites is to use the Authentication Methods dialog box we looked at previously:

In summary, the five authentication options displayed here are:

  • Anonymous access. Used mainly for web sites on public (Internet) web servers.
  • Integrated Windows authentication. Used mainly for web sites on a private intranet.
  • Digest authentication. Challenge/response authentication scheme that only works with clients running Internet Explorer 5.0 or later.
  • Basic authentication. Older authentication scheme that transmits passwords over the network in clear text, so use this only in conjunction with SSL.
  • .NET Passport authentication. Allows users to use their .NET Passport for authentication.

Configuring Web Site Logging

Since web sites are prime targets for attackers, you probably want to log hits to your site to see who's visiting it. By default IIS 6 logs traffic to all content as can be seen on the bottom of the General tab of the properties for a web site or virtual directory:

The default logging format is the W3C Extended Log File Format, and clicking Properties indicates new log files are created daily in the indicated directory. It's a good idea to specify that local time be used for logging traffic as this makes it easier to interpret the logs:

The key of course is to review log files regularly to look for suspicious activity. IIS doesn't include anything for this purpose, but the IIS 6.0 Resource Kit Tools does include version 2.1 of Microsoft Log Parser, which can be used for analyzing IIS logs. You can download these tools here.

Configuring Web Site Redirection

Sometimes you need to take your web site down for maintenance, and in such cases it's a good idea to redirect all client traffic directed to your site to an alternate site or page informing users what's going on. IIS lets you redirect a web site to a different file or folder on the same or another web site or even to an URL on the Internet. To configure redirection you use the Home Directory tab and choose the redirection option you want to use:

Stopping and Starting Web Sites

Finally, if sites become available you may need to restart IIS to get them working again. Restarting IIS is a last resort as any users currently connected will be disconnected and any data stored in memory by IIS applications will be lost. You can restart IIS using IIS Manager by right-clicking on the server node:

You can also do the same from the command-line using the Iisreset command:

Type iisreset /? for the full syntax of this command. You can also start and stop individual web sites using IIS Manager or the Iisweb.vbs script. And you can stop or start individual IIS services using the net commands, for example net stop w3svc will stop the WWW services only.

Summary

In this article I've explained how to create and configure web sites and virtual directories on IIS 6. Most of what we've covered also applies to IIS 5 on Windows 2000 as well. In the next article I'll delve into creating and configuring FTP sites and implementing FTP User Isolation, a new feature of Windows Server 2003. For a deeper look at IIS 6 see my book IIS 6 Administration (Osborne/McGraw-Hill).