๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

์นดํ…Œ๊ณ ๋ฆฌ ์—†์Œ

์œˆ๋„์šฐ10 ์—ฃ์ง€ ์‚ญ์ œ

์œˆ๋„์šฐ10 ์—ฃ์ง€ ์‚ญ์ œ ๋ฐฉ๋ฒ•

์œˆ๋„์šฐ10์—์„œ๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ Microsoft Edge(์—ฃ์ง€) ์›น ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ, ์‚ฌ์šฉ์ž๋“ค์ด ๋‹ค๋ฅธ ์›น ๋ธŒ๋ผ์šฐ์ €๋ฅผ ๋” ์„ ํ˜ธํ•˜๋Š” ๊ฒฝ์šฐ, ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•˜๊ณ  ์‹ถ์„ ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์ด ๊ธ€์—์„œ๋Š” ์œˆ๋„์šฐ10์—์„œ ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

1. ์ปจํŠธ๋กค ํŒจ๋„์—์„œ ์‚ญ์ œํ•˜๊ธฐ

  1. ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ "์ œ์–ดํŒ"์„ ๊ฒ€์ƒ‰ํ•˜์—ฌ ์ปจํŠธ๋กค ํŒจ๋„์„ ์—ฝ๋‹ˆ๋‹ค.
  2. ์ปจํŠธ๋กค ํŒจ๋„์—์„œ "ํ”„๋กœ๊ทธ๋žจ"์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
  3. "ํ”„๋กœ๊ทธ๋žจ ๋ฐ ๊ธฐ๋Šฅ"์„ ์„ ํƒํ•ฉ๋‹ˆ๋‹ค.
  4. ๋ชฉ๋ก์—์„œ "Microsoft Edge"๋ฅผ ์ฐพ์•„ ๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
  5. "์ œ๊ฑฐ"๋ฅผ ์„ ํƒํ•˜๊ณ  ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.

2. PowerShell์„ ์‚ฌ์šฉํ•˜์—ฌ ์‚ญ์ œํ•˜๊ธฐ

  1. ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ "PowerShell"์„ ๊ฒ€์ƒ‰ํ•˜์—ฌ PowerShell์„ ์—ฝ๋‹ˆ๋‹ค.
  2. PowerShell ์ฐฝ์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค: Get-AppxPackage *edge* | Remove-AppxPackage
  3. ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•ฉ๋‹ˆ๋‹ค.

์ฐธ๊ณ : PowerShell์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์€ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์ด ํ•„์š”ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

3. PowerShell ์Šคํฌ๋ฆฝํŠธ ์‚ฌ์šฉํ•˜๊ธฐ

  1. ํ…์ŠคํŠธ ํŽธ์ง‘๊ธฐ์—์„œ ๋‹ค์Œ ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค:
$Packages = Get-AppxPackage *edge*
foreach ($Package in $Packages) {
    if ($Package.packagefullname -match "Microsoft.MicrosoftEdge_") {
        Write-Host "Removing: " $Package.packagefullname
        remove-AppxPackage -package $Package.packagefullname
    }
}
  1. ์ €์žฅํ•œ ํ›„, ํŒŒ์ผ์„ ".ps1" ํ™•์žฅ์ž๋กœ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  2. ์‹œ์ž‘ ๋ฉ”๋‰ด์—์„œ "PowerShell"์„ ๊ฒ€์ƒ‰ํ•˜์—ฌ PowerShell์„ ์—ฝ๋‹ˆ๋‹ค.
  3. PowerShell ์ฐฝ์—์„œ ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ฉ๋‹ˆ๋‹ค: Set-ExecutionPolicy Unrestricted
  4. ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜์—ฌ ์Šคํฌ๋ฆฝํŠธ ์‹คํ–‰ ์ •์ฑ…์„ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค.
  5. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ €์žฅํ•œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค: .\scriptName.ps1 (์Šคํฌ๋ฆฝํŠธ ํŒŒ์ผ ์ด๋ฆ„์— ๋งž๊ฒŒ ๋ณ€๊ฒฝ)

์œ„์˜ ๋ฐฉ๋ฒ• ์ค‘ ํ•˜๋‚˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์œˆ๋„์šฐ10์—์„œ ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฃ์ง€๋ฅผ ์‚ญ์ œํ•œ ํ›„, ๋‹ค๋ฅธ ์›น ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์„ค์น˜ํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.