Professional Documents
Culture Documents
Hướng Dẫn Thực Hành Module 5
Hướng Dẫn Thực Hành Module 5
BÀI 2: How to Filter Group Policy Settings Using WMI Filters (Dùng WMI filter)
Tham khảo Website:
http://www.microsoft.com/technet/scriptcenter/guide/sas_wmi_overview.mspx
http://grouppolicy.editme.com/WMIFilters
To create a WMI filter and link it to a GPO, perform the following steps:
1. Open Group Policy Management, expand the forest that contains the GPO that you
want to add a WMI filter to, expand Domains, expand the domain that contains the
GPO, expand WMI Filters, right-click WMI Filters, and then click New.
2. In the New WMI Filter dialog box, in the Name box, type a name of the query.
3. In the Description box, type a description of the query.
4. Click Add.
5. In the WMI Query dialog box, in the Namespace box, type the namespace path
of the query, or click Browse to see a list of available namespaces.
For each query, you must specify the WMI namespace where the query is to be
executed. The default namespace is root\CIMv2, which should be appropriate for
most scenarios.
6. In the Query box, type a valid WQL query statement, and then click OK.
7. In the New WMI Filter dialog box, click Save.
8. Expand Group Policy Objects, and then drag the WMI filter to a GPO.
For example, to target computers that have more than 10 MB of available space on the
C, D, or E drive, the partitions must be located on one or more hard disks and they
must be running NTFS file system. Type the following WMI query:
Vd1: Ổ đĩa E: phải là đĩa cứng, dung lượng lớn hơn 10GB, NTFS
Select * FROM Win32LogicalDisk WHERE (Name = "E:") AND DriveType = 3
AND FreeSpace > 10485760 AND FileSystem = "NTFS"
Cấu hình thời gian apply policy cho client (default theo bảng trên)
Open the appropriate GPO in Group Policy, expand Computer
Configuration, expand Administrative Templates, expand System, click Group
Policy, and then double-click each item in the preceding table.
Change to 60 minute
BÀI 5: Tạo .ADM file: (Đọc bài tham khảo)
- Tạo file .adm cấu hình policy dấu ổ đĩa F:
Registry:
HKCU\Software\Microsoft\Windows\Current Version\Policies\Explorer
Value: Nodrives Type: DWORD Data: 20=A:
21=B:
22=C:
…….
- Tạo file .adm cấu hình policy disable default share
Registry:
Server: (2000 Server, 2003)
Hive: HKEY_LOCAL_MACHINE
Key: SYSTEM\CurrentControlSet\Services\LanManServer\Parameters
Name: AutoShareServer
Data Type: REG_DWORD
Value: 0
Đọc thêm: