Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
How to make 'Windows OS - Servers' Pattern return Bios Serial number instead of Baseboard Serial number - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • How to make 'Windows OS - Servers' Pattern return Bios Serial number instead of Baseboard Serial number
KB0749739

How to make 'Windows OS - Servers' Pattern return Bios Serial number instead of Baseboard Serial number


4107 Views Last updated : Jul 7, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

Symptoms

By default, OOB 'Windows OS - Servers' Pattern return Baseboard Serial number, but in some case, customer might wanted to use the Bios Serial number for the CI instead.

 

Cause

From the 'Windows OS -Server' pattern, step '5. Insert serial number to cmdb_ci_win_server':

Value=$cmdb_serial_number[1].serial_number [we will get the 1st row (baseboard) in the cmdb_serial_number table]

Resolution

There are 2 options:

1) Changed the order/swap these 2 steps (3.10 and 3.12) in the pattern 

 

2) Edit the 'OSs - Pre Sensor' Pattern Pre/Post Script index:

FROM: for(var serialIndex = 0; serialIndex < serialList.length; serialIndex++){
TO: for(var serialIndex = 1; serialIndex < serialList.length; serialIndex++){

https://<instancename>.service-now.com/$sn_pattern_designer.do?sys_id=670e55a4db702200c06776231f961942&authoring_mode=modify&editor_mode=advanced&section_item_type=identification&section_item_name=discovery

[Note: attached script here]

Additional Information

Serial Number Valid Field:

https://hi.service-now.com/kb_view.do?sys_kb_id=198e4f97db583b4813b5fb2439961924&sysparm_rank=7&sysparm_tsqueryId=b77a23a7db2dbf084819fb24399619ba


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.