Windows/윈도우 공통

변경점검체크항목 내용 정리

99iberty 2015. 8. 6. 09:40



1. AnnounceFlags

점검내용(한)기준내용(한)기준CI 정보 수집 방법출력SAMPLE
{TARGET}
NTP 옵션 확인전후 동일동일C:\>reg query "HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config" /v AnnounceFlagsHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config
    AnnounceFlags    REG_DWORD    0xa



NTP 옵션 확인

https://technet.microsoft.com/en-us/library/cc773263(v=ws.10).aspx

AnnounceFlags

Registry path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config

Version

Windows XP, Windows Vista, Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, and Windows Server 2008 R2

This entry controls whether this computer is marked as a reliable time server. A computer is not marked as reliable unless it is also marked as a time server.

이 항목은 컴퓨터 신뢰할 수 있는 타임 서버로 표시되어 있는지 여부를 제어한다. 또한 타임서버가 아닌 경우에는 신뢰할 수 있는 걸로 마킹되지도 않는다.

  • 0x00 Not a time server

  • 0x01 Always time server

  • 0x02 Automatic time server

  • 0x04 Always reliable time server

  • 0x08 Automatic reliable time server

The default value for domain members is 10. The default value for stand-alone clients and servers is 10.

-> 위에 플래그에 어떻게 5/10이 없는데 5/10을 설정할 수 있느냐? 바로 비트연산을 하기 때문에 가능.


http://www.experts-exchange.com/Hardware/Servers/Q_23905283.html


AnnounceFlags is just a value that encodes the 4 settings above in 4 bits. Bitwise operations are documented as well.
A bitwise OR of numbers that are powers of 2 is identical with adding them:
8d + 2d = 10d = 1010b = 1000b OR 0010b
Bitwise operation
http://en.wikipedia.org/wiki/Bitwise_operation
See the example below for 5 and 10.

                 +---------------> 8 (= 2^3) Reliable_Timeserv_Announce_Auto
                 |   +-----------> 4 (= 2^2) Reliable_Timeserv_Announce_Yes
                 |   |   +-------> 2 (= 2^1) Timeserv_Announce_Auto
                 |   |   |   +---> 1 (= 2^0) Timeserv_Announce_Yes
                 |   |   |   |     
                 V   V   V   V
               +---+---+---+---+
Bit:           | 3 | 2 | 1 | 0 |
               +---+---+---+---+
AnnounceFlags: | 1 | 0 | 1 | 0 | = 8 + 0 + 2 + 0 = 10 = Reliable_Timeserv_Announce_Auto and Timeserv_Announce_Auto
               +---+---+---+---+
AnnounceFlags: | 0 | 1 | 0 | 1 | = 0 + 4 + 0 + 1 =  5 = Reliable_Timeserv_Announce_Yes and Timeserv_Announce_Yes
               +---+---+---+---+