Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. #Get-AppxPackage -AllUsers
  2.  
  3. #SYNTAX TO REMOVE AN APP
  4. #Get-AppxPackage SampleAppName | Remove-AppxPackage
  5.  
  6. #START
  7.  
  8. Get-AppxPackage Microsoft.windowscommunicationsapps | Remove-AppxPackage
  9. Get-AppxPackage king.com.CandyCrushSaga | Remove-AppxPackage
  10. Get-AppxPackage king.com.CandyCrushFriends | Remove-AppxPackage
  11. Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
  12. Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
  13. Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage
  14. Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
  15. Get-AppxPackage Microsoft.Office.Desktop | Remove-AppxPackage
  16. Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage
  17. Get-AppxPackage AD2F1837.HPJumpstart | Remove-AppxPackage
  18. Get-AppxPackage AD2F1837.HPSystemInformation | Remove-AppxPackage
  19. Get-AppxPackage AD2F1837.HPPowerManager | Remove-AppxPackage
  20. Get-AppxPackage AD2F1837.HPPCHardwareDiagnosticsWindows | Remove-AppxPackage
  21. Get-AppxPackage 7EE7776C.LinkedInforWindows | Remove-AppxPackage
  22.  
  23.  
  24. #Uninstall Device Manager First
  25. $HPDeviceManager = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP Device Access Manager" }
  26. $HPDeviceManagerID = $HPDeviceManager.properties["IdentifyingNumber"].value.toString()
  27. MsiExec.exe /norestart /q/x $HPDeviceManagerID REMOVE=ALL
  28.  
  29. #Uninstall HP Client Security Manager
  30.  
  31. $HPClientSecurityManager = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP Client Security Manager" }
  32. $HPClientSecurityManagerID = $HPClientSecurityManager.properties["IdentifyingNumber"].value.toString()
  33. MsiExec.exe /norestart /q/x $HPClientSecurityManagerID REMOVE=ALL
  34.  
  35. #Uninstall HP Client Support Assistant
  36.  
  37. $HPSupportAssistant = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP Support Assistant" }
  38. $HPSupportAssistantID = $HPSupportAssistant.properties["IdentifyingNumber"].value.toString()
  39. MsiExec.exe /norestart /q/x $HPSupportAssistantID REMOVE=ALL
  40.  
  41. #Uninstall HP Notifications
  42.  
  43. $HPNotifications = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP Notifications" }
  44. $HPNotificationsID = $HPNotifications.properties["IdentifyingNumber"].value.toString()
  45. MsiExec.exe /norestart /q/x $HPNotificationsID REMOVE=ALL
  46.  
  47. #Uninstall HP JumpStart Bridge
  48.  
  49. $HPJumpStartBridge = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP JumpStart Bridge" }
  50. $HPJumpStartBridgeID = $HPJumpStartBridge.properties["IdentifyingNumber"].value.toString()
  51. MsiExec.exe /norestart /q/x $HPJumpStartBridgeID REMOVE=ALL
  52.  
  53. #Uninstall HP JumpStart Launch
  54.  
  55. $HPJumpStartLaunch = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP JumpStart Launch" }
  56. $HPJumpStartLaunchID = $HPJumpStartLaunch.properties["IdentifyingNumber"].value.toString()
  57. MsiExec.exe /norestart /q/x $HPJumpStartLaunchID REMOVE=ALL
  58.  
  59. #Uninstall HP MAC Address Manager
  60.  
  61. $HPMACAddressManager = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP MAC Address Manager" }
  62. $HPMACAddressManagerID = $HPMACAddressManager.properties["IdentifyingNumber"].value.toString()
  63. MsiExec.exe /norestart /q/x $HPMACAddressManagerID REMOVE=ALL
  64.  
  65. #Uninstall HP Sure Click
  66.  
  67. $HPSureClick = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match "HP Sure Click" }
  68. $HPSureClickID = $HPSureClick.properties["IdentifyingNumber"].value.toString()
  69. MsiExec.exe /norestart /q/x $HPSureClickID REMOVE=ALL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement