Loading
Run custom scripts for SNOW on agents

We would like SNOW to execute Powershell scripts on devices. Does anyone know how to prepare the scripts so that they can be processed by SNOW?

 

Is there an example of which return value can be processed by SNOW?

The database itself probably has to be adapted by a SNOW consultant, I would just like to prepare the script so that the consultant can start it.


  • Jelle Wijndelts (Flexera Software)

    Gutentag Julian, Any power shell script that you would to be executed by Snow needs to be signed by Snow otherwise the agent won't execute it. I would recommend you engage early on with Snow to ensure you discuss what it is you want the power shell to do how the data is captured and passed through to the database and then visualised within SLM, Herzlichen gruβen, Jelle
  • It would be handy to be able to something similar for Linux, is it possible?
    • ‌, I have added this to the Snow Ideas board today, feel free to place your vote... Regards, David
  • My question relates to Gerrard's above about Linux. How does the Powershell function Yield-RegistryKey work? Does it only write to the registry or is there some other useable information returned by it that is used by the agent to recognize software? If it can write only to the registry, then it can be used only for windows. If we could write some sort of token in each operating system that could be read by the agent many things presently unrecognizable could be found.
    Expand Post
    • Oliver Berger (Flexera Software)

      Hi ‌, well the Yield-... commands only create virtual entries in the inventory file sent back to the snow inventory server. Nothing really "written" into the client registry itself. And I don't think the Snow Inventory server cares, if data from linux machines returns with "custom registry" values. And it would be really nice, to have something similar on other environments than on windows. Best, Oliver
      Expand Post
      • Thank you, Oliver! So if I understand your comment correctly, it should be possible to create a virtual registry entry (that is, trick the inventory into believing there was a registry entry) for Macintosh and Linux using Microsoft's new core Powershell tools for Mac and Linux. See --  Installing PowerShell Core on macOS | Microsoft Docs  or  Installing PowerShell Core on Linux | Microsoft Docs  and creating a proprietary script for that environment. That is, of coursse, provided the Linux and MacOS agents know to run scripts in these environments. Will the Linux and MacOS agents run Powershell scripts? Or would Snow need to extend those agents?
        Expand Post
        • Oliver Berger (Flexera Software)

          No, executing Powershell scripts is currently and, as far as I know, will be, exclusively supported with our Windows Agents...
          • But the Linux and MacOS agents do check for SWID tags, don't they? So my idea is, if we wrote our own SWID tags in the case of missing SWID tags, or altered existing ones, it could help in the recognition of plugins on the Mac or Linux OSes. That would mean of course a significant change in the organizational permissions, but it would be a potential starting point using existing facilities of Snow. What do you think?
            Expand Post
10 of 15

Related  Product Forums


                     → Flexera One



                      → Snow Atlas



                      → FlexNet Manager



                      → Snow License Manager



                       → App Broker


       Need help finding an answer?


        Ask a Question →


Loading
Run custom scripts for SNOW on agents