Jump to content


  • 0
Packie

Query Model/Serial No. of Dell machine

Question

Hi,

 

I have this query to retreive machine model & S/N.

select SMS_G_System_PC_BIOS.SerialNumber, SMS_R_System.Name, SMS_R_System.LastLogonUserName, SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_COMPUTER_SYSTEM.Model from  SMS_R_System inner join SMS_G_System_PC_BIOS on SMS_G_System_PC_BIOS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where System.Name = ##PRM:SMS_R_System.Name##

 

but it does not return any result

but how do i make it to prompt for particular machine hostname only?

 

thanks in advanced

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You will have to create collection under quiries section to prompt for hostname,btw,where are you creating this ?

 

Try creating this collection/report:

 

http://wmug.co.uk/bl...n-computer.aspx

 

and here is summary of computer information http://eskonr.wordpr...cm-web-reports/

 

Moving this post under collection section.

Share this post


Link to post
Share on other sites

  • 0

You will have to create collection under quiries section to prompt for hostname,btw,where are you creating this ?

 

Try creating this collection/report:

 

http://wmug.co.uk/bl...n-computer.aspx

 

and here is summary of computer information http://eskonr.wordpr...cm-web-reports/

 

Moving this post under collection section.

select SMS_G_System_COMPUTER_SYSTEM.Manufacturer, SMS_G_System_PC_BIOS.SerialNumber, SMS_G_System_COMPUTER_SYSTEM.Model, SMS_R_System.LastLogonUserName from  SMS_R_System inner join SMS_G_System_PC_BIOS on SMS_G_System_PC_BIOS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceID = SMS_R_System.ResourceId where SMS_R_System.Name = ##PRM:SMS_R_System.Name##

 

awesome... this code is now working for me :)

thank you

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.