Kaseya Community

Audit - Driver - Get Nvidia Driver Version

  • Greetings everyone. Try this out. It can be used with any file, not just the Nvidia driver. Please give feedback and success stories.

    Description: This procedure will audit the current Nvidia graphics driver version.

    Kaseya customer value: Verify the correct Nvidia graphics driver on the machine for compability issues and trouble  shooting. This is especially true with graphics intense software like AutoCAD and desktop publishing.

    End user value: Ensures that the machine is working in optimal performance conditions without compability issues.

    Dependencies: Nvida graphics driver installed.

    Usage: Make sure you have created "Nvidia Graphics Driver" under Audit, Custom Fields. Run at any given time or scheduled frequently to ensure the Audit is up to date.

    Report options: Audit, Aggregate Table, "Nvidia Graphics Driver".

    Script maintainer: ronny [at] upstream.se

    Support: This script is delivered "as is". No support included.

    Screenshot:

    Copy and import this procedure:

    <?xml version="1.0" encoding="utf-8"?>
    <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="Audit - Driver - Get Nvidia Driver Version" treePres="3">
        <Body description="Description: This procedure will audit the current Nvidia graphics driver version.&#xA;&#xA;Kaseya customer value: Verify the correct Nvidia graphics driver on the machine for compability issues and trouble  shooting. This is especially true with graphics intense software like AutoCAD and desktop publishing.&#xA;&#xA;End user value: Ensures that the machine is working in optimal performance conditions without compability issues.&#xA;&#xA;Dependencies: Nvida graphics driver installed.&#xA;&#xA;Usage: Make sure you have created &quot;Nvidia Graphics Driver&quot; under Audit, Custom Fields. Run at any given time or scheduled frequently to ensure the Audit is up to date.&#xA;&#xA;Report options: Audit, Aggregate Table, &quot;Nvidia Graphics Driver&quot;.&#xA;&#xA;Script maintainer: ronny [at] upstream.se&#xA;&#xA;Support: This script is delivered &quot;as is&quot;. No support included.">
          <Statement description="Get the response from a web page." name="GetURL" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="StringParameter" name="URL" value="http://live.sysinternals.com/sigcheck.exe" />
            <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.agentTempDir#\sigcheck.exe" />
            <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
          </Statement>
          <If description="">
            <Condition name="CheckVariable">
              <Parameter xsi:type="StringParameter" name="VariableName" value="#vMachine.OsInfo#" />
              <Parameter xsi:type="EnumParameter" name="Condition" value="Contains" />
              <Parameter xsi:type="StringParameter" name="Value" value="x64" />
            </Condition>
            <Then>
              <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="#vAgentConfiguration.agentTempDir#\sigcheck.exe -n -q -accepteula c:\windows\system32\drivers\nvlddmkm.sys &gt;&gt;#vAgentConfiguration.agentTempDir#\nvidia-driver.txt" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="True" />
              </Statement>
            </Then>
          </If>
          <If description="">
            <Condition name="CheckVariable">
              <Parameter xsi:type="StringParameter" name="VariableName" value="#vMachine.OsInfo#" />
              <Parameter xsi:type="EnumParameter" name="Condition" value="DoesNotContain" />
              <Parameter xsi:type="StringParameter" name="Value" value="x64" />
            </Condition>
            <Then>
              <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="#vAgentConfiguration.agentTempDir#\sigcheck.exe -n -q -accepteula c:\windows\system32\drivers\nvlddmkm.sys &gt;&gt;#vAgentConfiguration.agentTempDir#\nvidia-driver.txt" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
            </Then>
          </If>
          <Statement description="Creates a variable from the content in &quot;kworking\nvidia-driver.txt&quot;." name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="FileContent" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="#vAgentConfiguration.agentTempDir#\nvidia-driver.txt" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="nvidia-driver" />
          </Statement>
          <Statement description="Updating the custom field &quot;Nvida Graphics Driver&quot;." name="UpdateSystemInfo" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="StringParameter" name="ColumnName" value="Nvidia Graphics Driver" />
            <Parameter xsi:type="StringParameter" name="Value" value="#nvidia-driver#" />
          </Statement>
          <Statement description="Deletes Sigcheck.exe from local machine." name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\sigcheck.exe" />
          </Statement>
          <Statement description="Deletes nvidia-driver.txt from local machine." name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.agentTempDir#\nvidia-driver.txt" />
          </Statement>
          <Statement description="Writes confirmation in the procedure log." name="WriteScriptLogEntry" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="StringParameter" name="Comment" value="Current Nvidia Graphics Driver: #nvidia-driver#" />
          </Statement>
        </Body>
      </Procedure>
    </ScriptExport>

  • Could any kind Moderator move this to the Resources, scripts section? It fits better there, don't you think?



    [edited by: Ronny Tunfjord at 1:57 AM (GMT -8) on 1-10-2011] Speeling issue
  • Tweaked so that it would get the version of our software on the machines. Works great, our client is very happy now

  • Glad I could help.

  • Old post, but just wanted to say it works great for identifying notebooks with a problematic wireless driver.

  • Glad to help