본문 바로가기
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
배치파일
2017.01.11 09:53

systeminfo_to_info_COMPUTERNAME

조회 수 396

c:
cd\
cls


for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "IPv4"') do set ip=%%b
set ip=%ip:~1%

for /F "tokens=2 delims==" %%s in ('wmic bios get serialnumber /value') do set sn=%%s

echo IP address : %ip%

echo Computer Serical Number : %sn%

set file=\\192.168.4.157\samba\OA_Administrator\_System_info\%ip%_%COMPUTERNAME%.txt

set file2=C:\%ip%_%COMPUTERNAME%.txt

set file3=\\192.168.4.157\samba\OA_Administrator\_System_info\%ip%_%COMPUTERNAME%_cpu.txt

set file4=C:\%ip%_%COMPUTERNAME%_cpu.txt

timeout 5

 

wmic bios get serialnumber > %file%

wmic computersystem get "Model","Manufacturer" >> %file%

wmic computersystem get "Name", "UserName" >> %file%

wmic cpu get name >> %file%

wmic PATH Win32_PhysicalMemory  get capacity >> %file%

wmic os get name >> %file%

wmic os get installdate >> %file%

wmic nicconfig get ipaddress,caption >> %file%

 

wmic bios get serialnumber > %file2%

wmic computersystem get "Model","Manufacturer" >> %file2%

wmic computersystem get "Name", "UserName" >> %file2%

wmic cpu get name >> %file2%

wmic PATH Win32_PhysicalMemory  get capacity >> %file2%

wmic os get name >> %file2%

wmic os get installdate >> %file2%

wmic nicconfig get ipaddress,caption >> %file2%

 

wmic product get name,vendor,installdate >> %file%

taskkill /f /im msiexec.exe /t

 

C:\Windows\Temp\cpuz\cpuz.exe -txt=%file3%

C:\Windows\Temp\cpuz\cpuz.exe -txt=%file4%

timeout 10


cls

exit


List of Articles
날짜 카테고리 제목 조회 수
2019.09.18 배치파일 CASZONE X-TOOLS Add-On v1.6.3 file 2048
2019.09.01 배치파일 CASZONE X-TOOLS v4.8.2 file 1699
2016.12.31 배치파일 systeminfo_to_sw 281
2016.12.31 배치파일 systeminfo_to_winup 251
2016.12.31 배치파일 systeminfo_to_vbs 311
2016.12.31 배치파일 systeminfo_to_tel 271
2017.01.11 배치파일 systeminfo_to_info_COMPUTERNAME 396
2017.05.02 배치파일 파티션 볼륨명 변경 배치파일 (자동 D 드라이버 변경) 1141
2017.05.02 배치파일 설치현장용 : 기존PC 인증서 NPKI GPKI 백업, 즐겨찾기 백업 517
2017.05.02 배치파일 설치현장용 : 네트워크 정보 추출 604
2017.05.02 배치파일 설치현장용 : 컴퓨터 정보 및 프린트 장치 정보 추출 40271
2017.05.02 배치파일 백업한 인증서, 즐겨찾기 - 새PC로 파일 복사하기 (관리자 권한으로 실행) 617
2018.11.29 배치파일 USB삭제_윈도우10 file 618
2019.01.28 배치파일 윈도우7 제품키 변경 배치파일 WinKey_Change.bat file 420
2019.01.28 배치파일 윈도우 제품키 삭제 배치파일 WinKey_Delete.bat file 850
2019.03.12 배치파일 컴퓨터이름IP변경v1 file 642
2019.03.23 배치파일 IE RESET v2.3.4 (인터넷 익스플로러 초기화) 410
2019.03.23 배치파일 컴퓨터이름IP변경v2 (관리자 권한 실행) file 960
2019.04.03 배치파일 IE RESET v2.3.5 (인터넷 익스플로러 초기화) 711
2019.04.15 배치파일 윈도우 제품키 변경 배치파일 842
2019.04.20 배치파일 카스존 CMD ROBOCOPY 설정 519
2019.05.19 배치파일 크롬 기록 삭제하기 1571
Board Pagination Prev 1 2 3 Next
/ 3