/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Windows 10 Custom App CIR

06/09/2020 269 views

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

Comments

  • 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?

All Answers

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


Answered 06/10/2020 by: chucksteel
Red Belt

  • Thanks for the suggestion chucksteel, unfortunately it is still not returning any results in the output file.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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