배치파일

systeminfo_to_sw

by 관리자 posted Dec 31, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

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 file3=\\192.168.4.157\samba\OA_Administrator\_System_info\%ip%_%sn%_sw.txt


wmic product where name="한컴오피스 2010" call uninstall

wmic bios get serialnumber > %file3%

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

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

wmic cpu get name >> %file3%

wmic PATH Win32_PhysicalMemory  get capacity >> %file3%

wmic os get name >> %file3%

wmic os get installdate >> %file3%

wmic nicconfig get ipaddress,caption >> %file3%

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


taskkill /f /im msiexec.exe /t


exit