2019년 6월 21일 금요일

#Windows #batch #bat #cmd

https://support.microsoft.com/ko-kr/help/875424/time-synchronization-may-not-succeed-when-you-try-to-synchronize-with
http://faq.hostway.co.kr/Windows_ETC/2765
NTP



# Internet Explorer - 팝업 차단 사용
reg add "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\New Windows" /v PopupMgr /t REG_DWORD /d 0 /f
기본값 1
변경값 0


# HTTPS(SSL) 접속 시 10초이상 초기 딜레이(접속은 정상)가 걸리는 경우의 조치 방법
# Internet Explorer - 서버의 인증서 해지 확인
https://getadmx.com/?Category=Windows_10_2016&Policy=Microsoft.Policies.InternetExplorer::Advanced_CertificateRevocation&Language=ko-kr
테스트 결과 HKEY_CURRENT_USER 에만 변경해주면 됨
1(기본값) : 인증서 해지를 확인 함
0 : 인증서 해지를 확인하지 않음


# 참고자료
https://www.snoopybox.co.kr/1404
https://blog.naver.com/masakie/12459776
https://seleucos.tistory.com/1041

# 입력값 받기
http://mwultong.blogspot.com/2006/11/dos-nt-batch-file-input-string.html

# 부팅시간 확인
systeminfo
net stats srv

# search.txt 파일 안의 단어를 찾아서 result.txt에 저장
dir \ /S /B | findstr /G:search.txt >> result.txt

# 실행(win+r)의 기록 삭제
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU /f

# 탐색기 주소 기록 삭제
Explorer TypedPaths

# 탐색기 검색 기록 삭제
Microsoft Windows CurrentVersion Explorer WordWheelQuery

# IE 기록 삭제
Microsoft Internet Explorer TypedURLs

# 시작 페이지 설정
Internet Explorer Main
Start Page

# 신뢰할 수 있는 시이트 추가

# 소프트웨어 서명 올바르지 않더라고 실행 설치 허용
Internet Explorer Download
CheckExeSignatures
RunInvalidSignatures

#서버의 인증서 해지
Internet Settings
CertificationRevocation

# 팝업차단 해지
Internet Explorer New Windows Allow

# 제목
title xxx

# 배경색
color f0

# 32bit 64bit 구분
if exist 'ProgramFiles(x86)' (
...
) else (
...
)

# 창 크기
mode con cols=100 lines=50

# dll 등록
regsvr32 xxx.dll
32bit는 경로 없어도 실행 됨
C:\Windows\System32\regsvr32 xxx.dll
C:\Windows\SysWOW64\regsvr32 xxx.dll

# 인증서 등록
certutil -addstore -f 'root' xxx.cer
certmgr /c /add xxx.cer /s root
오래되서 기억이 안나는데 아랫것은 실패했던 것 같은데

# 경로
%TEMP%

댓글 없음: