This is a small script to get the System Install date from the OS and put the data in a custom field in Audit>Machine Summary.
First, go to Audit>Machine Summary and create a new Custom Field and name it “Original Install Date” without the quotes.
Image may be NSFW.
Clik here to view.
Then you can either import the script below or just write a new one. It is only 2 lines.
Image may be NSFW.
Clik here to view.
<ScriptExport xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=”http://www.kaseya.com/vsa/2008/12/Scripting”><Procedure name=”System Install Date” treePres=”3″ id=”1325867912″ folderId=”71817821612791213127822581″ treeFullPath=”Managed Services.System Mgmt”><Body description=”Get System install date and write it to the custom Audit field: Original Install Date.”>cmdresults#’” name=”Execute Shell Command – Get Results to Variable” continueOnFail=”false”>xsi:type=”StringParameter” name=”Parameter1″ value=”systeminfo|find /i “Original Install Date”"/>xsi:type=”StringParameter” name=”Parameter2″ value=”false”/>xsi:type=”StringParameter” name=”Parameter3″ value=”User”/></Statement><Statement description=”Update the selected System Info field with the specified value for the agent this procedure runs on.” name=”UpdateSystemInfo” continueOnFail=”false”>xsi:type=”StringParameter” name=”ColumnName” value=”Original Install Date”/>xsi:type=”StringParameter” name=”Value” value=”#global:cmdresults#”/></Statement></Body></Procedure></ScriptExport>
I have hundreds of scripts(Agent Procedures). If there is something you need, let me know and if I have it I will post it here.