Ad Widget

Collapse

Item to check for Windows Activation Status

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlbertHristov
    Junior Member
    • Jul 2023
    • 3

    #1

    Item to check for Windows Activation Status

    Hello,

    We are currently trying to see if all of our laptops have their Windows activated. We would like to achieve this with a Zabbix item, however, we are struggling to achieve this.

    We tried running Powershell scripts but we ran into a few issues which we fix company-wide and we also get a Timeout while executing the script.

    Does anyone have a clean way to check the Windows Activation status?

    Thank you in advance.
  • solution
    Senior Member
    • Jun 2020
    • 269

    #2
    increase the timeout to the maximum.
    in zabbix_agentd.conf look for:

    # Timeout=3
    and change it to:

    Timeout=30
    restart the agent


    Wellington​

    Comment


    • AlbertHristov
      AlbertHristov commented
      Editing a comment
      We did that but the used script seems to be too heavy. Timeout 30 does not work.
  • PeterZielony
    Senior Member
    • Nov 2022
    • 146

    #3
    why this script running longer than .. 30 sec?

    when run this manually does it take so long?

    tested with this@
    Get-CIMInstance -query "select Name, Description, LicenseStatus from SoftwareLicensingProduct where LicenseStatus=1" | Format-List Name, Description, LicenseStatus

    1 sec and 've got results

    Hiring in the UK? Drop a message

    Comment

    Working...