Kaseya Community

Finding software licenses

  • Hi chaps

    Has anyone had any success with creating a script to list license codes for common apps in OS X? Ideally Office and any others too. This is easy on a WIndows machine but it's proving harder in OS X.

    Help.

    Olly

    Legacy Forum Name: Finding software licenses,
    Legacy Posted By Username: oliverm
  • This short script reads the registration info for Microsoft Office 2008 and puts the info in the agents Documents folder. I haven't tested this yet on other machines.

    Step1: Execute Shell Command (on Mac OS X) (Execute as System)
    echo Microsoft Office 2008 >> #vAgentConfiguration.agentTempdir#/softwareinfo.txt

    Step2: Execute Shell Command (on Mac OS X) (Execute as System)
    defaults read /Applications/Microsoft\ Office\ 2008/Office/OfficePID | grep 1000 | cut -d"=" -f2 | sed -e 's/;//g' >>>> #vAgentConfiguration.agentTempdir#/softwareinfo.txt

    Step3: Execute Shell Command (on Mac OS X) (Execute as System)
    defaults read /Applications/Microsoft\ Office\ 2008/Office/OfficePID | grep 1600 | cut -d"=" -f2 | sed -e 's/;//g' >>>> #vAgentConfiguration.agentTempdir#/softwareinfo.txt

    Step4: Execute Shell Command (on Mac OS X) (Execute as System)
    defaults read /Applications/Microsoft\ Office\ 2008/Office/OfficePID | grep 1825 | cut -d"=" -f2 | sed -e 's/;//g' >>>> #vAgentConfiguration.agentTempdir#/softwareinfo.txt

    Step5: Get File (on Mac OS X)
    remote path: #vAgentConfiguration.agentTempdir#/softwareinfo.txt
    Kserverpath: ..\Docs\softwareinfo.txt

    Step6: Write Script Log Entry (on Mac OS X)
    Softwareinfo collected.

    Legacy Forum Name: Macintosh,
    Legacy Posted By Username: macbofh