Export (0) Print
Expand All

How to Start Resource Explorer From the Command Line

Updated: January 1, 2014

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

You can start Resource Explorer from the Configuration Manager console. Alternatively, you can start it from the command line by specifying one of the following:

  • An explicit resource using the resource identifier

  • A query that returns a resource

When using Resource Explorer from the command line, you might also need to specify a collection that the resource belongs to, for example, if the user does not have appropriate security credentials to access all resources, but has credentials for accessing specific collections.

Using Resource Explorer from the command line is frequently a faster way to view data than using the Configuration Manager console for occasional inventory data review or for accessing client inventory information from a computer that does not have the Configuration Manager 2007 console installed.

To start Resource Explorer by specifying a resource identifier

  1. Click Start and then Run

  2. In the Run dialog box, enter the following command to open Resource Explorer:

    <console path>\resourceexplorer.msc -s -sms:ResourceID=<n> -sms:Connection=<namespace path>
    

Comments

When entering the command to start Resource Explorer by specifying a resource identifier:

  • <console path> is the full path to resourceexplorer.msc. If you are starting Resource Explorer from the Run dialog box, you must enter the full path to resourceexplorer.msc:
    <install drive letter>\sms\adminui\bin\resourceexplorer.msc.

  • <n> is the ResourceID of the Configuration Manager client that you want to display inventory for.

  • <namespace path> is the path to the Windows Management Instrumentation (WMI) namespace that contains the client data (\\<site server name>\root\sms\site_<site code>)

Example

The following command displays inventory data for the client associated with ResourceID=1:

c:\sms\adminui\bin\resourceexplorer.msc -s -sms:ResourceID=1 -sms:Connection=\\<site server name>\root\sms\site_<site code>

To start Resource Explorer by specifying computer name

  1. Click Start and then Run

  2. In the Run dialog box, enter the following command to open Resource Explorer:

    <console path>\resourceexplorer.msc -s -sms:ResExplrQuery="SELECT ResourceID FROM SMS_R_SYSTEM WHERE Name = ‘<computer name>’ -sms:Connection=<namespace path>
    
    noteNote
    Your query might return more than one instance, but Resource Explorer only displays the first instance that is returned.

Comments

When entering the command to start Resource Explorer by specifying a computer name:

  • <console path> is the full path to resourceexplorer.msc. If you are starting Resource Explorer from the Run dialog box, you must enter the full path to resourceexplorer.msc:
    <install drive letter>\sms\adminui\bin\resourceexplorer.msc.

  • <computer name> is the name of the computer Resource Explorer will attempt to display inventory data for.

  • <namespace path> is the path to the Windows Management Instrumentation (WMI) namespace that contains the client data (\\<site server name>\root\sms\site_<site code>)

Example

The following command displays inventory data for the client named MyComputer:

c:\sms\adminui\bin\resourceexplorer.msc -s -sms:ResExplrQuery="Select ResourceID FROM SMS_R_System WHERE Name = ‘MyComputer’ -sms:connection=\\<site server name>\root\sms\site_<site code>

To start Resource Explorer by specifying a resource in a specific collection

  1. Click Start and then Run

  2. In the Run dialog box, enter the following command to open Resource Explorer:

    <console path>\resourceexplorer.msc -s -sms:CollectionID=<Collection ID> -sms:ResExplrQuery=<WQL Query> -sms:Connection=<namespace path>
    

Comments

When entering the command to start Resource Explorer by specifying a resource in a specific Collection:

  • <console path> is the full path to resourceexplorer.msc. If you are starting Resource Explorer from the Run dialog box, you must enter the full path to resourceexplorer.msc:
    <install drive letter>\sms\adminui\bin\resourceexplorer.msc.

  • <Collection ID> is the CollectionID of the Configuration Manager collection that the resource is a member of. This option may be necessary for administrators who do not have permissions to query the All Systems collection.

  • <WQL Query> is a valid WQL query that will determine the ResourceID for a resource, located within the specified collection, that you want to display inventory data for.

  • <namespace path> is the path to the Windows Management Instrumentation (WMI) namespace that contains the client data (\\<site server name>\root\sms\site_<site code>)

Example

The following command displays inventory data for the client named MyComputer located in the custom Tier 2 Admin collection:

c:\sms\adminui\bin\resourceexplorer.msc -s -sms:CollectionID=<Tier 2 Admin collection's Collection ID> -sms:ResExplrQuery "Select ResourceID FROM SMS_R_System WHERE Name = ‘MyComputer’-sms:Connection=\\<site server name>\root\sms\site_<site code>

See Also

For additional information, see Configuration Manager 2007 Information and Support.
To contact the documentation team, email SMSdocs@microsoft.com.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft