• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

Hi

 

Is it possible to set an asset tag from a command line, preferably using a VB script?

 

3 REPLIES 3
HP Recommended

What model HP PC do you have? What Windows version?

HP Recommended

We have these plus a load more but with less of them, this list covers 90%.  They are all Windows 7, both x86 and x64

 

HP Compaq dc7900 Small Form Factor
HP EliteDesk 800 G1 SFF
HP Compaq 8200 Elite SFF PC
HP Z420 Workstation
HP Compaq 8000 Elite SFF PC
HP Compaq Elite 8300 SFF
HP EliteBook 8470p
HP Compaq 6730b
HP Z400 Workstation
HP ProBook 6560b
HP ProBook 6570b
HP xw4600 Workstation
VMware Virtual Platform
HP EliteBook 840 G1
HP ProBook 6550b
HP Z820 Workstation
HP EliteBook 820 G1
HP Z800 Workstation

 

HP Recommended

Yes!

 

HP BIOS Configuration Utility (sp68876) allows you to configure your BIOS using an executable from a command line.  I've talked to a lot of customers who use this tool to configure various BIOS settings as part of a script while installing an OS image.  Since Asset Tag is set in BIOS, this tool should be right up your alley.

 

Also if you are using a BIOS password, or need to set one up during your deployment, HPQ Password (sp69128) will let you generate a BIN file so the HP BIOS Configuration Utility can have the password available to run, or set it for you.

 

You can download both from http://www8.hp.com/us/en/ads/clientmanagement/download.html  for free. 

 

BIOS Config reads the settings from a plain text ASCII file.  This file essentially matches what you see when you run 'replicated setup' from within BIOS and save a configuration.   You can pare the config file down to only the settings you want to change.

 

If you are writing a script, you can just update the ASCII config file between machines if you need a different asset tag between machines.  I'm not a VB script expert, but that should be something achievable.  You can modify the config file via your script if you need to.   If you don't need to change the asset tag from machine to machine, then you can just keep the same config file and run with it.

 

 

I'm a HP Support professional and work on HP's behalf.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.