-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows - si.chassis() and si.baseboard() do not return an AssetTag #851
Comments
@shoustech Thank you! Will correct this ... |
@shoustech ... i fixed it by adding also |
@sebhildebrandt The patch worked for the |
@shoustech you are absolutely right ... I worked on it early in the morning ... maybe to early ;-) Will try to provide a fix tomorrow. |
@shoustech ... after thinking about it ... Would you provide the full
of your Dell machine? Thank you in advance. |
@sebhildebrandt Here is the full output from both of those commands: It's a bit hard to say if that data should or should not be added to si.baseboard(). I could see it being the last option in your list of variables that is sorted through for the field. It would be nice if Windows was more reliable on the output / descriptions of its own commands! A bit unrelated but I noticed that the serial number for both sections are similar but slightly different: For Win32_baseboard the output reflects:
|
Describe the bug
The powershell commands that are used for
si.chassis()
andsi.baseboard()
do not return the system's asset tag. The Powershell command forsi.chassis()
can be edited to pull the Asset Tag from the BIOS.To Reproduce
Steps to reproduce the behavior:
si.chassis()
andsi.baseboard()
Current Output and Expected behavior
![image](https://private-user-images.githubusercontent.com/56267251/267806613-eca3558c-7e46-4f22-b0ab-28c7516b680e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxNDY5NzIsIm5iZiI6MTcyMjE0NjY3MiwicGF0aCI6Ii81NjI2NzI1MS8yNjc4MDY2MTMtZWNhMzU1OGMtN2U0Ni00ZjIyLWIwYWItMjhjNzUxNmI2ODBlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDA2MDQzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNhNzZmYWE1MTQ2NmVlNDE5ODA0OTZhYjE5OTNkNjU4Zjc3YjRlZDA1ZThhZWIzYzUwODE1NDRlNWE4YjIyMWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.m0RiwAlkfyUcY2h4tlij47MkccjKTiJqfURVce0q9Q0)
Here is a screenshot of the existing powershell command being executed. I pulled this command from the chassis function inside of system.js. The function that calls this command tries to pull the information from the
partnumber
field from the output and if it is empty it uses thesku
field. I suggest addingSMBIOSAssetTag
to the list of parameters that are being pulled from Powershell and using the result of that field for the assetTag value. You might want to use the same value in the si.baseboard() function.Environment (please complete the following information):
** NOTE ** : I have testing this on a few other computers and I have noticed that Dell has the option to configure an asset tag in the bios but on my home system I am using consumer components and I do not have an asset tag configuration option in that BIOS. With these systems I find that the value is often
Default string
:The text was updated successfully, but these errors were encountered: