
Portal User asked a question.
I've perfected the PS commands that yield the desired information, which in this case is the physical Harddrive's Name, SerialNumber and Tags. I've tested the PS1 script as well as the encrypted version which does pipe the desired information to the cmdline; however, when I review the logs it presents a 'PowerShell exited with error code 6'.
I suspect, that the results the agent is expecting are:
(1) Data (nVarchar),
(2) ModifiedTime(Datetime2),
(3) Name(nVarchar),
(4) RegKey(nVarchar),
(5)Type (int).
But I'm unsure how to actually declare those. Does anyone know? Maybe @Oliver Berger​ or @Detlev Eufinger​ @Ester_locked Memoli(Retired)​ ?
If Snow can provide me with the pattern or expected outputs that agent can use, I will offer to compose a guide for the community to use as well as share materials :)
Happy new year @Kris Wong​ !
I guess you want to use Yield-RegistryKey?
Yield-RegistryKey -key [string] -name [string] -value [string] -type [int] -lastModified [DateTime]
There is an (internal?) document from 2013. We did not really change anything, but maybe i find a more current version.
Cheers Oliver
Hi @Kris Wong​ @Chris Bianchetti​ Find an working example here Scan-OracleVBExtensionPack
second option: dynamic inventory https://community.flexera.com/s/feed/0D51r00008PwuFJCAZ
Thank you, this is very helpful. Is it possible to view data collected with either of these two methods in License Manager? This https://community.flexera.com/s/feed/0D51r00008PwuFKCAZ seems to imply that (at least with dynamic inventory) it is not.
Hi @Chris Bianchetti​ ,
yes, please have a look here: https://community.flexera.com/s/feed/0D51r00008Ypm97CAB
BR Michael
Any information you can provide would be helpful. I am also trying to create a custom script but unsure how to store/return the data the script collects. I was given the attached template which contains functions Yield-Software & Yield-RegistryKey but it seems like those are only used to store data about the script itself. It would be helpful to see the code of one of the scripts in the repository mentioned here: https://community.flexera.com/s/article/Release-notes-Snow-Inventory-Script-Repository-260?tabset-1909e=2