/build/static/layout/Breadcrumb_cap_w.png

Windows 10 Custom App CIR

I've been working on a CIR to gather specific custom apps that are installed.  Yes, they do appear in the Software Catalog, but do not show the installed version. 


I believe that I have everything setup properly, however, I cannot get the powershell command to work properly.  I've tested the script locally and remotely with it working every time.  When I run the same command through Kace SMA, it says that it completes successfully, but there's nothing in the output file.  I've ran it as the local system, logged in user, and with domain admin credentials.  I would also like to have the script where I can add other apps later if possible.  Any help would be greatly appreciated!

B6wGkTAUrvpyAAAAAElFTkSuQmCC

Get-AppxPackage *innovative* | Select Name, Version | ft -HideTableHeaders | out-file c:\it\appsCIR.txt

wFddp4ulJkDagAAAABJRU5ErkJggg==




1 Comment   [ + ] Show comment
  • So I believe that I've found the issue. It seems that I needed to add -AllUsers to my command for it to return any data.

    Get-AppxPackage -AllUsers *innovative* | Select Name, Version | ft -HideTableHeaders | out-file c:\it\appsCIR.txt

    That solves one problem. My next part would be to have it as a script to where I could search for multiple apps and output to the same txt file. Any ideas on that? - Nick_F 3 years ago

Answers (1)

Posted by: chucksteel 3 years ago
Red Belt
0

The Get-AppXPackage might be a 64bit module and therefore not normally accessible when launching powershell.exe in the 32bit context (which is where the agent lives). Try using the sysnative path: C:\Windows\sysnative\WindowsPowerShell\v1.0



Comments:
  • Thanks for the suggestion chucksteel, unfortunately it is still not returning any results in the output file. - Nick_F 3 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ