Loading
SNOW PowerShell module request

I'm working a lot with PowerShell and over the time I wrote my own cmdlet's to work with SNOW Data.

For example:

PS > Get-SNOWComputerDetails -IP 192.168.1.222

   Name : COMPUTER001

 

   Manufacturer : Hewlett-Packard

 

   Model : HP Pro 3130 Microtower PC

 

   OperatingSystem : Microsoft Windows 7 Professional

 

   IPAddresses : 192.168.1.222

 

   Organization : RootCompany/My Company

 

   LastScanDate : 2017-10-02 09:59:39

 

   EOL :

 

   AssetNR : 264/01

 

   Localization : Office/3rd floor/HR  

   ....

PS > Get-SNOWObject -Name ProLite

   ObjectID : 2110

 

   Name : ProLite XB2483HSU-B2

 

   Org : MY Company

 

   Type : Monitor

 

   LinkedComputer : COMPUTER002

 

   ComputerID : 1105

 

   Localization : Office/3rd floor/HR

 

   EOL : False

 

   SN : 1246860111410

 

   Asset : 482/22  

 

   Model : ProLite XB2483HSU-B2

 

   Vendor : IIYAMA   

 

   PurchaseDate : 2017-03-01

 

   Link : http://SNOWSERVER/Pages/CustomObject.aspx?id=2110

It would be great if SNOW would create an official PowerShell module for at least SLM. What do you think of that?

Maybe we should make a feature request at SNOW? 


  • Has this idea been posted on the Ideas Board so we can vote it up?
  • Thats a great idea! I would support this. Some feature requests maybe are done with it. Kind regards, Kai
  • Community Manager (Flexera Software)

    Hi Adam, That is great work with PowerShell and Snow products. I agree we should expand our UI to include PowerShell. If you outline what the business need is for this module, I can request a formal feature request internaly.      By chance have you use Snow Automation Platform? It is leverages PowerShell to automate day to day functionality of licensing, software deliver, and even user management. 
  • Have to agree with Kai, this is a fantastic idea Adam! Cheers Harry
  • Would you consider sharing the modules you´ve created ?
    • Here are some functions:  [PowerShell] Get-SNOW_ComputerDetails - Pastebin.com   PS > Get-SNOW_ComputerDetails -ComputerName COMPUTER1           Name            : COMPUTER1         Manufacturer    : TOSHIBA         Model           : TECRA A50-A         OperatingSystem : Microsoft Windows 7 Professional         IPAddresses     : 192.168.12.31,192.168.15.8,192.168.56.1         Organization    : My Company/Org         LastScanDate    : 2017-05-07 10:19:45 Use "PS > Get-SNOW_ComputerDetails -ComputerName COMPUTER1 | SELECT *" to show all values [PowerShell] Get-SNOW_Object - Pastebin.com   PS > Get-SNOW_Object -Name OBJECT1         ObjectID       : 1204     Name           : OBJECT1     Org            : My Org     Type           : Network     LinkedComputer :     ComputerID     :     Categorie      : AccessPoint     Localization   : City\Floor\Room     EOL            : False     SN             : XXXXXXXXXXXX     Asset          :     IP             : 192.168.17.232     Model          : MODEL XYZ     Vendor         : VENDOR     Notes          : Some notes ...     PurchaseDate   : 2014-10-01     LINK           : https://SnowServer/Pages/CustomObject.aspx?id=1204 [PowerShell] Get-SNOW_AssignedLicense - Pastebin.com   PS > Get-SNOW_AssignedLicense -Application 'Windows XP' | ft     HostName         LicenseID ApplicationName         IsUpgrade ExternalID           --------         --------- ---------------         --------- ----------                 XXXXNB015              327 Windows XP Professional     False XXXXNB015           XXXXNB016             1098 Windows XP Professional     False XXXXNB016           XXXXNB036              331 Windows XP Professional     False XXXXNB036                 PS >  Get-SNOW_AssignedLicense -ComputerName XXXXPC123 | ft     HostName  LicenseID ApplicationName                         IsUpgrade ExternalID     --------  --------- ---------------                         --------- ----------     XXXXPC123       415 Windows 7 Professional                      False XXXXPC123     XXXXPC123       990 Microsoft Office 2010 Home and Business     False XXXXPC123 [PowerShell] Get-SNOW_UserComputer - Pastebin.com   PS > Get-SNOW_UserComputer -UserName amnich -Last 5         UserName        Fullname      LastLogon           HostName       --------        --------      ---------           --------       DOMAIN\amnich   Mnich, Adam   2017-05-12 09:51:49 COMPUTER1       DOMAIN\amnich   Mnich, Adam   2017-04-27 09:12:53 COMPUTER2     DOMAIN\amnich   Mnich, Adam   2017-03-29 11:33:55 SERVER1        PS > Get-SNOW_UserComputer -ComputerName COMPUTER1         UserName                   Fullname                 LastLogon           HostName       --------                   --------                 ---------           --------       COMPUTER1\NoLoggedOnUser                            2017-08-24 09:39:00 COMPUTER1     DOMAIN\User1               User One                 2017-08-10 12:29:15 COMPUTER1     DOMAIN\User2               User Two                 2017-06-29 12:42:49 COMPUTER1 Notes: It is basically every time a SQL query. I included the SQL Function in every paste. I make heavy use of the Get-SNOW_Object as searching for objects in SLM is a little bit slow. PS:     PS > Get-BGHSNOW_Object -Name Object -ShowInSnow The switch -ShowInSnow opens the default browser with the object in Snow
      Expand Post
      • Hi , These are great, Have you thought about creating a GitHub Repo for these? Others could then contribute and build the Module up? Snow have started added in there own AP playbooks too: https://github.com/SnowSoftware What issues were you having with the APIs? Did you try getting them to work in Postman ( https://www.getpostman.com/ ) first?
        Expand Post
    • Hi, I will need some time to take it out from my internal module and sanitize it. Will post back here.
  • Community Manager (Flexera Software)

    Hi ?, good idea! As you might know there is already the SOAP/REST web API of Snow License Manager that additionally secures your data by requestiong authentication. IMHO this API could be easily encapsulated in PowerShell as well. Best regards, Michael
10 of 11

Loading
SNOW PowerShell module request