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!
Get-AppxPackage *innovative* | Select Name, Version | ft -HideTableHeaders | out-file c:\it\appsCIR.txt
Answers (1)
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 4 years ago
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 4 years ago