wmic.md 967 B

wmic

์‹คํ–‰ ์ค‘์ธ ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์„ธ๋ถ€ ์ •๋ณด๋ฅผ ๋ณด๋Š” ๋ฐ ์‚ฌ์šฉ๋˜๋Š” ๋Œ€ํ™”ํ˜• ์‰˜์ž…๋‹ˆ๋‹ค. ๋” ๋งŽ์€ ์ •๋ณด: https://learn.microsoft.com/windows-server/administration/windows-commands/wmic.

  • ๊ธฐ๋ณธ ๋ฌธ๋ฒ•:

wmic {{๋ณ„์นญ}} {{where_๊ตฌ๋ฌธ}} {{verb_๊ตฌ๋ฌธ}}

  • ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ๊ฐ„๋‹จํ•œ ์„ธ๋ถ€ ์ •๋ณด ํ‘œ์‹œ:

wmic process list brief

  • ํ˜„์žฌ ์‹คํ–‰ ์ค‘์ธ ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ „์ฒด ์„ธ๋ถ€ ์ •๋ณด ํ‘œ์‹œ:

wmic process list full

  • ํ”„๋กœ์„ธ์Šค ์ด๋ฆ„, ํ”„๋กœ์„ธ์Šค ID ๋ฐ ๋ถ€๋ชจ ํ”„๋กœ์„ธ์Šค ID์™€ ๊ฐ™์€ ํŠน์ • ํ•„๋“œ ์ ‘๊ทผ:

wmic process get {{์ด๋ฆ„,ํ”„๋กœ์„ธ์Šค_id,๋ถ€๋ชจ_ํ”„๋กœ์„ธ์Šค_id}}

  • ํŠน์ • ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ์ •๋ณด ํ‘œ์‹œ:

wmic process where {{์ด๋ฆ„="example.exe"}} list full

  • ํŠน์ • ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ํŠน์ • ํ•„๋“œ ํ‘œ์‹œ:

wmic process where processid={{ํ”„๋กœ์„ธ์Šค_id}} get {{์ด๋ฆ„,๋ช…๋ น์–ด}}

  • ํ”„๋กœ์„ธ์Šค ์ข…๋ฃŒ:

wmic process {{ํ”„๋กœ์„ธ์Šค_id}} delete