Searching...
Filters
SmallMediumLarge
Home Print Show Topic URL Previous Next
IT Management Suite
Client Management Suite
Server Management Suite
Deployment Solution
Asset Management Suite
ServiceDesk

How to run inventory policies and tasks on Windows computers using InvSoln.exe

Inventory Solution

Inventory Solution provides the utility InvSoln.exe that lets you run inventory policies and tasks on managed Windows computers. You may need to initiate inventory scans on managed Windows computers in the following cases:

  • You want to schedule inventory policies and tasks according to your needs. You want to initiate inventory scans and view the progress window during the inventory scans.

  • You need to troubleshoot the problems that may arise when you run inventory policies or tasks from the Notification Server computer.

    For example, Symantec support can quickly gather the inventory on Windows computers to diagnose any inventory data class issue.

When you install Inventory Solution or Inventory Pack for Servers, Inventory Plug-in or Inventory Pack for Servers Plug-in saves the utility InvSoln.exe and the default task configuration files for the predefined inventory policies to the following locations on managed Windows computers:

  • InvSoln.exe is located at %ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent

  • The default task configuration files are located at %ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent\InvTaskConfig

By default, the target computers for the predefined inventory policies are all Windows computers with Inventory Plug-in or Inventory Pack for Servers Plug-in installed.

If you use Inventory Solution, the following default task configuration files are saved:

Table: Default task configuration files for the predefined policies in Inventory Solution

File

Description

Collect Delta Hardware Inventory.xml

Default task configuration file for the predefined policy Collect Delta Hardware Inventory.

Collect Delta Software Inventory.xml

Default task configuration file for the predefined policy Collect Delta Software Inventory.

Collect Full Inventory.xml

Default task configuration file for the predefined policy Collect Full Inventory.

If you use Inventory Pack for Servers, the following default task configuration files are saved:

Table: Default task configuration files for the predefined policies in Inventory Pack for Servers

File

Description

Collect Delta Server Inventory.xml

Default task configuration file for the predefined policy Collect Delta Server Inventory.

Collect Full Server Inventory.xml

Default task configuration file for the predefined policy Collect Full Server Inventory.

See About predefined inventory policies

You can use the InvSoln.exe utility and the saved task configuration files to run the predefined inventory policies on managed Windows computers. To perform this action, you run the following commands at the command-prompt:

Table: Default commands to run the predefined inventory policies

Command

Description

InvSoln.exe /dhi

The command to run the predefined policy Collect Delta Hardware Inventory.

InvSoln.exe /dswi

The command to run the predefined policy Collect Delta Software Inventory.

InvSoln.exe /fi

The command to run the predefined policy Collect Full Inventory.

InvSoln.exe /dsi

The command to run the predefined policy Collect Delta Server Inventory.

InvSoln.exe /fsi

The command to run the predefined policy Collect Full Server Inventory.

You can modify the predefined policy on the Notification Server computer. After Inventory Plug-in or Inventory Pack for Servers Plug-in receives and executes the modified policy, the default task configuration file of the predefined policy gets overwritten on managed Windows computers. You use the default commands to run the modified predefined policies.

Inventory Plug-in or Inventory Pack for Servers Plug-in must automatically run the modified predefined policy on managed Windows computers at least once. After the policy runs automatically, the task configuration file of the policy is saved. Only then can you use the InvSoln.exe utility to run the modified policy on these computers.

See Gathering inventory with predefined inventory policies

When the predefined policy runs on managed Windows computers, the progress window for gathering inventory does not appear by default. To view the progress window during the inventory scan, you can run the /p true command-line switch at the command-prompt. To hide the progress window during the inventory scan, you can run the /p false command-line switch at the command-prompt. By specifying the /p true or /p false command-line options, you update the default task configuration file of the policy or task accordingly, and save the file for future use.

For example, to run the Collect Delta Hardware Inventory policy and view the progress window, you run the following command:

InvSoln.exe /dhi /p true

To view the details of other available command-line options, you can run one of the following commands at the command-prompt:

InvSoln.exe /?

InvSoln.exe /Help

You can create a new inventory policy or task on the Notification Server computer. When you configure the policy or task, you specify the managed Windows computers to which the policy or task applies. After the Plug-in receives and runs the new policy or task, the task configuration file for the policy or task is saved to the following location on managed Windows computers:

%ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent\InvTaskConfig

For example, if you create a policy Select HW Data classes, the Plug-in saves the task configuration file Select HW Data classes.xml. If you create a Gather Inventory task, the Plug-in saves the task configuration file Gather Inventory.xml.

You can use the InvSoln.exe utility and the saved task configuration file to run the newly created inventory policy or task on managed Windows computers, and then view the progress window. To do this, you run the following command at the command-prompt:

InvSoln.exe /i "%ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent\InvTaskConfig\%task-configuration-file-name%" /p true

For example, to run the Select HW Data classes policy and view the progress window, you run the following command:

InvSoln.exe /i "%ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent\InvTaskConfig\Select HW Data classes.xml" /p true

To run the Gather Inventory task and hide the progress window, you run the following command:

InvSoln.exe /i "%ProgramFiles%\Altiris\Altiris Agent\Agents\Inventory Agent\InvTaskConfig\Gather Inventory.xml" /p false

Inventory Plug-in or Inventory Pack for Servers Plug-in must automatically run the newly created policy or task on the managed Windows computers at least once. After the policy or task is run, the task configuration file of the policy or task gets saved. Only then can you use the InvSoln.exe utility to initiate running the policy or task on these computers.

See Creating and configuring inventory policies and tasks