Computer >> 컴퓨터 >  >> 시스템 >> Windows 11

PowerShell로 프로그램을 손쉽게 제거하는 2가지 방법

컴퓨터 프로그램을 일반적인 방식으로 제거하는 데 어려움을 겪고 계신가요? 혹은 기존 방법 대신 새로운 방식을 시도해 보고 싶으신가요? 다행히도 프로그램을 삭제할 수 있는 다양한 대안이 있습니다. 그중 하나가 바로 Windows PowerShell을 활용하는 방법인데요. 지금부터 자세히 살펴보겠습니다.

1. PowerShell 기본 명령어로 내장 앱 제거하기

PowerShell은 명령줄 셸, 스크립팅 언어, 관리 구조로 구성된 작업 자동화 도구로, 시스템을 효율적으로 관리할 수 있게 도와줍니다.

.NET Framework 기반으로 만들어진 PowerShell은 2006년 처음 공개된 이후 지금까지 꾸준히 발전해 왔습니다. 특히 PowerShell을 사용하면 Windows에 기본 설치된 앱도 손쉽게 제거할 수 있습니다. 방법은 다음과 같습니다.

  1. 시작 메뉴 검색창에 'powershell'을 입력한 뒤, PowerShell을 관리자 권한으로 실행합니다.
  2. 아래 목록에서 원하는 명령어를 선택해 입력하면 해당 앱이 완전히 제거됩니다.

카메라: Get-AppxPackage *windowscamera* | Remove-AppxPackage
Office 가져오기: Get-AppxPackage *officehub* | Remove-AppxPackage
메일 및 캘린더: Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage
뉴스: Get-AppxPackage *bingnews* | Remove-AppxPackage
OneNote: Get-AppxPackage *onenote* | Remove-AppxPackage
피플: Get-AppxPackage *people* | Remove-AppxPackage
시작 팁: Get-AppxPackage *getstarted* | Remove-AppxPackage
Groove 음악: Get-AppxPackage *zunemusic* | Remove-AppxPackage
지도: Get-AppxPackage *windowsmaps* | Remove-AppxPackage
Skype 시작하기: Get-AppxPackage *skypeapp* | Remove-AppxPackage
계산기: Get-AppxPackage *windowscalculator* | Remove-AppxPackage
Microsoft Solitaire Collection: Get-AppxPackage *solitairecollection* | Remove-AppxPackage
3D Builder: Get-AppxPackage *3dbuilder* | Remove-AppxPackage
알람 및 시계: Get-AppxPackage *windowsalarms* | Remove-AppxPackage
Money: Get-AppxPackage *bingfinance* | Remove-AppxPackage
영화 및 TV: Get-AppxPackage *zunevideo* | Remove-AppxPackage
Phone Companion: Get-AppxPackage *windowsphone* | Remove-AppxPackage
스포츠: Get-AppxPackage *bingsports* | Remove-AppxPackage
녹음기: Get-AppxPackage *soundrecorder* | Remove-AppxPackage
날씨: Get-AppxPackage *bingweather* | Remove-AppxPackage
Xbox: Get-AppxPackage *xboxapp* | Remove-AppxPackage
사진: Get-AppxPackage *photos* | Remove-AppxPackage
스토어: Get-AppxPackage *windowsstore* | Remove-AppxPackage

예를 들어, 아래 이미지와 같이 Xbox 앱을 제거할 수 있습니다.

PowerShell로 프로그램을 손쉽게 제거하는 2가지 방법

이것으로 끝입니다. 위 명령어 중 하나를 입력하고 Enter 키만 누르면, 몇 초 안에 해당 앱이 시스템에서 깔끔하게 제거됩니다.

2. $MyApp.Uninstall() 명령어로 프로그램 제거하기

위 방법의 대안으로 $MyApp.Uninstall() 명령어를 사용해 프로그램을 제거할 수 있습니다. 다만 이 명령어를 실행하기 전에 반드시 설치된 모든 앱의 목록을 먼저 확인해야 합니다. PowerShell이 인식하는 정확한 앱 이름이 필요하기 때문입니다. 이를 확인하는 올바른 명령어는 다음과 같습니다.

Get-WmiObject -Class Win32_Product | Select-Object -Property Name

명령어를 실행하면 몇 초 후에 설치된 프로그램의 전체 목록이 화면에 표시됩니다.

다음 단계는 목록에서 제거하려는 애플리케이션을 찾는 것입니다. 그런 다음 변수를 생성하고, 제거하고자 하는 앱에 해당 변수를 연결해야 합니다.

$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Some App"}

'Some App' 부분을 실제로 제거하려는 프로그램 이름으로 바꿔 입력하세요. 이렇게 하면 해당 앱의 정보가 MyApp 변수에 저장됩니다. 마지막으로 제거를 완료하려면 아래 명령어를 실행하고 Enter 키를 누르면 됩니다.

$MyApp.Uninstall()

이 과정을 거치면 PowerShell을 통해 프로그램이 성공적으로 제거됩니다.

마무리하며: PowerShell로 Windows 앱 관리하기

PowerShell은 PC를 더욱 세밀하게 제어할 수 있게 해주는 강력하고 유용한 도구입니다. 불필요한 앱을 제거하는 것은 이 무료 Windows 도구를 활용하는 여러 방법 중 하나이며, 아마도 가장 쉬운 활용법일 것입니다. PowerShell 스크립트 작성법부터 PowerShell을 이용한 Hyper-V 활성화 방법까지, 다양한 활용 가이드를 참고하면 이 도구의 진가를 더욱 잘 알 수 있습니다. 더 폭넓은 정보가 필요하다면 Microsoft의 공식 PowerShell 문서를 확인해 보시기 바랍니다.