반응형

하아...

 

요즘 업체들은 다들 왜그렇게 모르면 안된다고들 하는지....

 

사설 인증서를 각 PC에 설치하는 것을 명령어로 요청했으나...

 

불가능하단다...

 

불가능은...

 

다음과 같은 명령어로 신뢰할수 있는 Root 인증서로 등록 가능하다.

 

certuil -addstore "Root" "인증서경로및파일명"

ex>  certuil -addstore "Root" "c:\temp\goot.world.cer"

 

신뢰할 수 있는 개인용 인증서

certuil -addstore "My" "인증서경로및파일명"

 

신뢰할 수 있는 중간 인증 기관 인증서

certuil -addstore "CA" "인증서경로및파일명"

 

등록된 신뢰할 수 있는 Root 인증서 보기

CertUtil -viewstore "Root"

(창이 뜨면 다른 옵션 선택을 통해 볼려고 하는 인증서를 확인 가능)

 

관련 MS 사이트 : https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc732443(v=ws.11)?redirectedfrom=MSDN 

 

Certutil

Table of contents Certutil Article 08/31/2016 37 minutes to read In this article --> Applies To: Windows Server 2012, Windows 8 Certutil.exe is a command-line program that is installed as part of Certificate Services. You can use Certutil.exe to dump and d

docs.microsoft.com

 

 

반응형
반응형

화면 배경과 색 변경하기


시작 -> 실행 -> regedit


아래 레지스트리 값에 cmd 창 배경/글자의 기본색 값이 저장 되어 있습니다. 아래 위치로 이동 하여 DefaultColor 값을 0으로 설정 합니다. (0 - command 의 원래 기본 값)

 

  • HKEY_CURRENT_USER\Software\Microsoft\Command Processor
    DefaultColor :  0  

[참고]

위 DefaultColor 값에 command 창의 기본 색을 지정 할 수 있습니다.

색 속성은 두자리의 16진수로 지정 되며, 첫째 자리는 배경색에 해당되고 둘째 자리는 문자색에 해당됩니다. 각 자리 수는 다음 값이 될 수 있습니다.

 

 0 = 검정색       8 = 회색
 1 = 파랑색       9 = 연한 파랑색
 2 = 초록색       A = 연한 초록색
 3 = 옥색         B = 연한 옥색
 4 = 빨강색       C = 연한 빨강색
 5 = 자주색       D = 연한 자주색
 6 = 노랑색       E = 연한 노랑색
 7 = 흰색         F = 밝은 흰색

 

예로,  레지스트리 defaultcolor 값에 fc 을 입력 하여 저장 하면 밝은 흰색 위에 연한 빨간색의 문자색을 나타냅니다.

 

명령 프롬프트에서 명령어로는 color 명령어를 사용 합니다.


출처 : http://answers.microsoft.com/ko-kr/windows/forum/windows_7-performance/cmdexe-%EC%9D%98/0e453f64-f512-4f23-83f6-b96f5fc684da?msgId=162ee89e-3ce4-4d91-a3d5-e27fb9261fb1


+ 알파!


위 내역은 레지스트리를 통한 화면내의 색과 글자 색 변경 방법이며,


이외의 모든 설정은 


시작 -> 실행 -> cmd


좌측 상단에 마우스 우클릭 -> 속성 클릭





아래는 내가 직접 설정한 화면임.










cmd 창에 제목을 바꿀때는


c:\>title [바꿀제목]


ex -> c:\> title 도스화면


화면 크기를 명령어로 조정


c:\> mode con cols=컬럼숫자값 lines=라인숫자값


ex -> c:\> mode con cols=150 lines=250


반응형

'OS' 카테고리의 다른 글

net 명령어  (0) 2014.11.13
폴더 계정별 권한 부여하기  (0) 2014.11.13
무한 반복 BAT 파일 만들기  (0) 2012.05.14
반응형


파일명.cmd 로 실행가능함

역할

1. PC 주소와 IP 세팅을 함.
2. reg add -> 레지스트리 정보에 위치시킴
3. netsh -> 정보 세팅

@Echo Off
Title CMD창에서 컴퓨터 이름 변경 (고정) by dr.jk & Mode Con Cols=47 Lines=9&SetLocal

:NameApply
Set PCName=1번피씨

Reg Add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /V "NV Hostname" /D %PCName% /F > Nul
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /V "ComputerName" /D %PCName% /F > Nul

Netsh -c Int Ip Set Address Name="로컬 영역 연결" Static 192.168.0.10 255.255.255.0 192.168.0.1 0
Netsh -c Int Ip Set DNS Name="로컬 영역 연결" Static 192.168.0.1 Primary
Netsh -c Int Ip Add DNS Name="로컬 영역 연결" 168.126.63.1 2
Goto End

:End
EndLocal

반응형
반응형

시작 → 실행(R) → 열기(O) - " cmd /k ipconfig" 를 입력 여기서 /k는 쉘을 종료하지 않도록하는 명령행 옵션이다.

이렇게 쓰기 싫으면 그냥 cmd 치고 창 열어 놓고 하면 된다

Win95, 98은 cmd 가 아니고 command다


" Window ip Configuration "


그중에.. ip Address를 보면.. 지금 내 pc의 ip dhcp는 랜카드의 주소지만, Adsl등은 전화 접속 어댑터의 주소임 헷갈리지 말것


IP 해제는 " ipconfig/release 그럼 전부 다 0.0.0.0 으로 나옴

이러면 당연히 Internet이 않되고, 새로 Ip를 받을려면 " ipconfig/renew "

더 자세한 ip 정보는 " ipconfig -all "


그리고 죽어도 Command Mode는 싫다는 사람은 바탕화면에 있는 네트웍 환경에서도 할수있다


1. ipconfig

자신의 IP주소를 나타내주고 gateway,subnet mask까지
더 자세한 내용을 알고싶으시면 -all 옵션


[ 속성 ]

Error: unrecongnized or incomplete command line.

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.


The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.


For Release and Renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed.


For Setclassid, if no ClassId is specified, then the ClassId is removed.


Examples:
    > ipconfig                   ... Show information.
    > ipconfig /all              ... Show detailed information
    > ipconfig /renew            ... renew all adapters
    > ipconfig /renew EL*        ... renew any connection that has its
                                     name starting with EL
    > ipconfig /release *Con*    ... release all matching connections,
                                     eg. "Local Area Connection 1" or
                                         "Local Area Connection 2"

2. arp

arp명령어는 네트워크에서 데이터를 전달할때 데이터를 교환하는 컴퓨터의 IP주소와
물리적인 주소 목록을 잠시동안 보관하는 arp cache를 볼수있도록 출력하는 명령


[ 속성 ]

Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

  -a            Displays current ARP entries by interrogating the current
                protocol data.  If inet_addr is specified, the IP and Physical
                addresses for only the specified computer are displayed.  If
                more than one network interface uses ARP, entries for each ARP
                table are displayed.
  -g            Same as -a.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr. inet_addr may be
                wildcarded with * to delete all hosts.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
Example:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.


3. netstat

netstat는 네트워크를 통한 접속종류와 상태를 보여주는 명령어

-a 내 네트워크에 대기중인 상태도 확인가능


-n (도메인 이름 검색 생략)스위치를 추가해주시면 좀더 빠른검색이 됨
Ex) netstat -na


-s 각각의 프로토콜에서 전송된 패킷의 양도 확인가능


LISTEN :

서버의 데몬이 떠서 접속 요청을 기다리는 상태


SYS-SENT :

로컬의 클라이언트 어플리케이션이 원격 호스트에 연결을 요청한 상태


SYN_RECEIVED :

서버가 원격 클라이언트로부터 접속 요구를 받아 클라이언트에게 응답을 하였지만 아직 클라이언트에게 확인 메시지는 받지 않은 상태


ESTABLISHED :

3 Way-Handshaking 이 완료된 후 서로 연결된 상태


FIN-WAIT1 , CLOSE-WAIT , FIN-WAIT2 :

서버에서 연결을 종료하기 위해 클라이언트에게 종결을 요청하고 회신을 받아 종료하는 과정의 상태


CLOSING :

흔하지 않지만 주로 확인 메시지가 전송도중 분실된 상태


TIME-WAIT :

연결은 종료되었지만 분실되었을지 모를 느린 세그먼트를 위해 당분간 소켓을 열어놓은 상태


CLOSED :

완전히 종료

4. nslookup

nslookup은 IP로 도메인이름을 알아보거나 도메인이름의 IP를 확인할때


[ 속성 ]

C:\>nslookup
Default Server:  ReveroF
Address:  ***.***.135.135

> help
Commands:   (identifiers are shown in uppercase, [] means optional)
NAME            - print info about the host/domain NAME using default server
NAME1 NAME2     - as above, but use NAME2 as server
help or ?       - print info on common commands
set OPTION      - set an option
    all                 - print options, current server and host
    [no]debug           - print debugging information
    [no]d2              - print exhaustive debugging information
    [no]defname         - append domain name to each query
    [no]recurse         - ask for recursive answer to query
    [no]search          - use domain search list
    [no]vc              - always use a virtual circuit
    domain=NAME         - set default domain name to NAME
    srchlist=N1[/N2/.../N6] - set domain to N1 and search list to N1,N2, etc.
    root=NAME           - set root server to NAME
    retry=X             - set number of retries to X
    timeout=X           - set initial time-out interval to X seconds
    type=X              - set query type (ex. A,ANY,CNAME,MX,NS,PTR,SOA,SRV)
    querytype=X         - same as type
    class=X             - set query class (ex. IN (Internet), ANY)
    [no]msxfr           - use MS fast zone transfer
    ixfrver=X           - current version to use in IXFR transfer request
server NAME     - set default server to NAME, using current default server
lserver NAME    - set default server to NAME, using initial server
finger [USER]   - finger the optional NAME at the current default host
root            - set current default server to the root
ls [opt] DOMAIN [> FILE] - list addresses in DOMAIN (optional: output to FILE)
    -a          -  list canonical names and aliases
    -d          -  list all records
    -t TYPE     -  list records of the given type (e.g. A,CNAME,MX,NS,PTR etc.)
view FILE           - sort an 'ls' output file and view it with pg
exit            - exit the program


5. ping

ping은 네트워크가 연결이 잘 안될때 임의의 주소로 핑을 날려서 잘받았나
확인해보는 명령어


[ 속성 ]

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:
    -t             Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-C.
    -a             Resolve addresses to hostnames.
    -n count       Number of echo requests to send.
    -l size        Send buffer size.
    -f             Set Don't Fragment flag in packet.
    -i TTL         Time To Live.
    -v TOS         Type Of Service.
    -r count       Record route for count hops.
    -s count       Timestamp for count hops.
    -j host-list   Loose source route along host-list.
    -k host-list   Strict source route along host-list.
    -w timeout     Timeout in milliseconds to wait for each reply.


6. tracert
tracert는 네트워크의 병목현상을 확인하는데 도움
임의의 사이트로 접속하는동안 거치는 라우터의 IP가나오고 그에대한
그것에 대한 ping값이 보임


[ 속성 ]

반응형

+ Recent posts