"윈도우 설정 수집"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
(다른 사용자 한 명의 중간 판 7개는 보이지 않습니다)
7번째 줄: 7번째 줄:
set today=%date:~0,4%%date:~5,2%%date:~8,2%
set today=%date:~0,4%%date:~5,2%%date:~8,2%
set today=%date%
set today=%date%
tasklist > tasklist.%hostname%.%date%.txt
tasklist | sort | findstr /r /v "^sort. ^tasklist. ^System\ Idle" > tasklist.%hostname%.%date%.txt
netstat -ban > netstat_ban.%hostname%.%date%.txt
netstat -ban > netstat_ban.%hostname%.%date%.txt
wmic useraccount > useraccount.%hostname%.%date%.txt
wmic useraccount > useraccount.%hostname%.%date%.txt
start .
exit
</source>
</source>


==참고 자료==
==같이 보기==
*[[리눅스 설정 수집]]
*[[sosreport]]
 
==참고==
*http://eqcode.com/wiki/index.php/Hostname
*http://eqcode.com/wiki/index.php/Hostname
*http://eqcode.com/wiki/index.php/Today_(YYYYMMDD)
*http://eqcode.com/wiki/index.php/Today_(YYYYMMDD)


[[분류: 윈도우]]
[[분류: 윈도우]]

2017년 7월 20일 (목) 00:23 기준 최신판

윈도우 설정 기록
윈도우 설정 수집

1 스크립트[ | ]

for /f "tokens=1" %a in ('hostname') do set hostname=%a
set today=%date:~0,4%%date:~5,2%%date:~8,2%
set today=%date%
tasklist | sort | findstr /r /v "^sort. ^tasklist. ^System\ Idle" > tasklist.%hostname%.%date%.txt
netstat -ban > netstat_ban.%hostname%.%date%.txt
wmic useraccount > useraccount.%hostname%.%date%.txt

start .
exit

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}