본문 바로가기
배치파일 Batch/배치파일

JCC software to samba server

by #XTRM 2021. 4. 24.
반응형

JCC software to samba server

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

 

반응형

댓글