Find app installed in PC

%3CLINGO-SUB%20id%3D%22lingo-sub-211320%22%20slang%3D%22en-US%22%3EFind%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211320%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20list%20of%20application%20which%20is%20pre%20installed%20in%20PC%20and%20i%20want%20to%20find%20out%20using%20powershell.%20so%20basically%20i%20want%20to%20write%20a%20script%20which%20will%20check%20that%20which%20app%20is%20installed%20from%20th%20app%20list.%20in%20my%20app%20list%20i%20have%20kind%20of%20candy%20crush%2C%20Farmville.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-211320%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-224503%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-224503%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20Vasil%20wrote%2C%20don't%20use%20PackageFullname.%20Use%20DisplayName.%3C%2FP%3E%3CP%3EHere%20is%20a%20script%20I%20run%20during%20computer%20deployment%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CBLOCKQUOTE%3E%3CDIV%3E%3CSPAN%3E%5B%3C%2FSPAN%3E%3CSPAN%3ECmdletBinding%3C%2FSPAN%3E%3CSPAN%3E()%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EParam%3C%2FSPAN%3E%3CSPAN%3E()%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20Remove%20everything%20but%20StickyNotes%2C%20Paint%2C%20Photos%2C%20Calc%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20Michael%20B.%20Smith%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20April%204%2C%202018%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20michael%40smithcons.com%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20No%20warranties%2C%20etc.%20etc.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20Somewhat%20based%20on%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20%3CA%20href%3D%22https%3A%2F%2Fgal.vin%2F2017%2F04%2F06%2Fremoving-uwp-apps-mdt%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgal.vin%2F2017%2F04%2F06%2Fremoving-uwp-apps-mdt%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20But%20do%20NOT%20do%20a%20'Get-AppxPackage%20%7C%20Remove-AppxPackage%20-AllUsers'.%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20You%20will%20break%20Windows.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20The%20initial%20posting%20on%20this%20topic%20from%20Michael%20Niehaus%20in%202015%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%20%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fmniehaus%2F2015%2F11%2F11%2Fremoving-windows-10-in-box-apps-during-a-task-sequence%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fmniehaus%2F2015%2F11%2F11%2Fremoving-windows-10-in-box-apps-during-a-task-sequence%2F%3C%2FA%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%23%23%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Ekeepers%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%40%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E'Microsoft.MicrosoftStickyNotes'%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E'Microsoft.MSPaint'%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E'Microsoft.Windows.Photos'%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDI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3C%2FSPAN%3E%3CSPAN%3E%22WILL%20remove%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3E(%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Epackage%3C%2FSPAN%3E%3CSPAN%3E.DisplayName%3C%2FSPAN%3E%3CSPAN%3E)%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EWrite-Verbose%3C%2FSPAN%3E%3CSPAN%3E%22PackageFullName%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3E(%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Epackage%3C%2FSPAN%3E%3CSPAN%3E.PackageName%3C%2FSPAN%3E%3CSPAN%3E)%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ERemove-AppxPackage%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EPackage%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Epackage%3C%2FSPAN%3E%3CSPAN%3E.PackageName%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EAllUsers%20%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EVerbose%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ERemove-AppxProvisionedPackage%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EOnline%20%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EPackageName%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Epackage%3C%2FSPAN%3E%3CSPAN%3E.PackageName%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EVerbose%20%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3EErrorAction%20SilentlyContinue%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3Epackages%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E%24null%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FBLOCKQUOTE%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211699%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211699%22%20slang%3D%22en-US%22%3EHere%20is%20the%20update%20code%3CBR%20%2F%3E%24PackageFullName%20%3D%20(Get-AppxPackage%20-allusers%20%24App).PackageFullName%3CBR%20%2F%3Ewrite-host%20%24PackageFullName%3CBR%20%2F%3Eif%20(%24PackageFullName)%3CBR%20%2F%3E%7B%3CBR%20%2F%3EWrite-Host%20%22Package%20found%20%3A%20%24App%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3Eelse%3CBR%20%2F%3E%7B%3CBR%20%2F%3EWrite-Host%20%22Unable%20to%20find%20package%3A%20%24App%22%3CBR%20%2F%3E%7D%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211697%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211697%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20you%20said%20i%20am%20using%20only%20get-Appxpackage%20but%20still%20its%20not%20working%20how%20it%20suppose%20to%20work.%20i%20have%20a%20list%20of%20package%20which%20need%20to%20be%20find%20apps%20is%20installed%20in%20pc%20but%20some%20application%20is%20not%20installed%20and%20it%20still%20says%20it%20is%20installed.%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EPackageFullName%3C%2FSPAN%3E%3CSPAN%3E%3D%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3EGet-AppxPackage%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Eallusers%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EApp%3C%2FSPAN%3E%3CSPAN%3E).PackageFullName%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3Ewrite-host%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EPackageFullName%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3Eif%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EPackageFullName%3C%2FSPAN%3E%3CSPAN%3E)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EWrite-Host%3C%2FSPAN%3E%3CSPAN%3E%22Removing%20Package%3A%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EApp%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3Eelse%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EWrite-Host%3C%2FSPAN%3E%3CSPAN%3E%22Unable%20to%20find%20package%3A%20%3C%2FSPAN%3E%3CSPAN%3E%24%3C%2FSPAN%3E%3CSPAN%3EApp%3C%2FSPAN%3E%3CSPAN%3E%22%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3E%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211564%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211564%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20starters%20the%20PackageFullName%20property%20is%20different%20from%20the%20DisplayName%20one%2C%20so%20you%20should%20not%20be%20comparing%20them%20directly.%20The%20Get-ProvisionedAppxPackage%26nbsp%3Blists%20apps%20that%20are%20included%20in%20the%20windows%20image%2C%20not%20necessarily%20ones%20that%20are%20installed.%20If%20you%20only%20care%20about%20the%20installed%20ones%2C%20use%20just%20Get-AppxPackage%2C%20which%20will%20cover%20any%20app%2C%20regardless%20of%20the%20source%20it%20was%20installed%20from%20(as%20mentioned%20above%2C%20some%20will%20be%20directly%20downloaded%20from%20the%20internet).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211415%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211415%22%20slang%3D%22en-US%22%3E%3CP%3EI%20just%20want%20to%20write%20a%20script%20will%20check%20that%20any%20of%20the%20following%20script%20is%20running%20or%20not.%20i%20tried%20what%20you%20suggested%20and%20still%20it%20is%20not%20working%20properly.%20Here%20is%20my%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EForEach(%24App%20in%20%24AppsList)%20%7B%3C%2FP%3E%3CP%3E%24software%20%3D%20(Get-AppxPackage%20-allusers%20%24App).PackageFullName%3CBR%20%2F%3E%24installed%20%3D%20(Get-ProvisionedAppxPackage%20-online%20%7C%20Where%20%7B%24_.DisplayName%20-eq%20%24software%7D)%20-ne%20%24null%3C%2FP%3E%3CP%3Eif%20(%24installed)%20%7B%3CBR%20%2F%3EWrite-Host%20%22'%24App'%20not%20found.%22%3B%3CBR%20%2F%3E%7D%20else%20%7B%3CBR%20%2F%3EWrite-Host%20%22'%24App'%20found.%22%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-211358%22%20slang%3D%22en-US%22%3ERe%3A%20Find%20app%20installed%20in%20PC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-211358%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20report%20on%20those%20via%20Get-AppxPackage%2FGet-AppxProvisionedPackage%2C%20however%20the%20good%20folks%20at%20Microsoft%20have%20decided%20to%20be%20more%20and%20more%20annoying%20which%20each%20new%20release%20of%20W10%20and%20the%20latest%20ones%20also%20feature%20some%20other%20mechanisms.%20Such%20as%20downloading%20apps%20directly%20upon%20detecting%20internet%20connectivity.%20They%20don't%20show%20up%20in%20the%20list%20of%20preinstalled%20apps%2C%20but%20will%20still%20be%20deployed%20and%20you%20have%20to%20deploy%20some%20registry%20keys%20as%20well...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETL%3BDR%20version%2C%20read%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.tenforums.com%2Ftutorials%2F68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.tenforums.com%2Ftutorials%2F68217-turn-off-automatic-installation-suggested-apps-windows-10-a.html%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Hello 

 

I have a list of application which is pre installed in PC and i want to find out using powershell. so basically i want to write a script which will check that which app is installed from th app list. in my app list i have kind of candy crush, Farmville. 

6 Replies

You can report on those via Get-AppxPackage/Get-AppxProvisionedPackage, however the good folks at Microsoft have decided to be more and more annoying which each new release of W10 and the latest ones also feature some other mechanisms. Such as downloading apps directly upon detecting internet connectivity. They don't show up in the list of preinstalled apps, but will still be deployed and you have to deploy some registry keys as well...

 

TL;DR version, read here: https://www.tenforums.com/tutorials/68217-turn-off-automatic-installation-suggested-apps-windows-10-...

I just want to write a script will check that any of the following script is running or not. i tried what you suggested and still it is not working properly. Here is my 

 

ForEach($App in $AppsList) {

$software = (Get-AppxPackage -allusers $App).PackageFullName
$installed = (Get-ProvisionedAppxPackage -online | Where {$_.DisplayName -eq $software}) -ne $null

if ($installed) {
Write-Host "'$App' not found.";
} else {
Write-Host "'$App' found."
}
}

For starters the PackageFullName property is different from the DisplayName one, so you should not be comparing them directly. The Get-ProvisionedAppxPackage lists apps that are included in the windows image, not necessarily ones that are installed. If you only care about the installed ones, use just Get-AppxPackage, which will cover any app, regardless of the source it was installed from (as mentioned above, some will be directly downloaded from the internet).

Hi @Vasil Michev

 

As you said i am using only get-Appxpackage but still its not working how it suppose to work. i have a list of package which need to be find apps is installed in pc but some application is not installed and it still says it is installed.

$PackageFullName = (Get-AppxPackage -allusers $App).PackageFullName
write-host $PackageFullName
if ($PackageFullName)
{
Write-Host "Removing Package: $App"
}
else
{
Write-Host "Unable to find package: $App"
}
Here is the update code
$PackageFullName = (Get-AppxPackage -allusers $App).PackageFullName
write-host $PackageFullName
if ($PackageFullName)
{
Write-Host "Package found : $App"
}
else
{
Write-Host "Unable to find package: $App"
}

As Vasil wrote, don't use PackageFullname. Use DisplayName.

Here is a script I run during computer deployment:

 

[CmdletBinding()]
Param()
##
## Remove everything but StickyNotes, Paint, Photos, Calc
##
## Michael B. Smith
## April 4, 2018
## michael@smithcons.com
##
## No warranties, etc. etc.
##
## Somewhat based on
##
## But do NOT do a 'Get-AppxPackage | Remove-AppxPackage -AllUsers'.
## You will break Windows.
##
## The initial posting on this topic from Michael Niehaus in 2015:
##
$keepers = @(
    'Microsoft.MicrosoftStickyNotes',
    'Microsoft.MSPaint',
    'Microsoft.Windows.Photos',
    'Microsoft.WindowsCalculator',
    'Microsoft.StorePurchaseApp',
    'Microsoft.WindowsStore'
)
$packages = Get-AppxProvisionedPackage -Online
foreach( $package in $packages )
{
    if( $keepers -contains $package.DisplayName )
    {
        Write-Verbose "Will NOT remove $( $package.DisplayName )"
    }
    else
    {
        Write-Verbose "WILL remove $( $package.DisplayName )"
        Write-Verbose "PackageFullName $( $package.PackageName )"
        Remove-AppxPackage -Package $package.PackageName -AllUsers -Verbose
        Remove-AppxProvisionedPackage -Online -PackageName $package.PackageName -Verbose -ErrorAction SilentlyContinue
    }
}
$packages = $null