How To Find Asset Tag Windows 10
This guide is a quickie on how yous can use a batch file to retrieve asset tag and / or serial number information for a Dell desktop or laptop. This recipe assumes that the Dell computer has had its asset tag entered into the BIOS. Note, not all estimator motherboards employ this field in WMIC simply Dell computers will.
Basic batch file skills volition aid you lot sympathize this process.
1. Create a new text file and rename it with a .bat extension (ie create a getasset.txt and rename to getasset.bat)
ii. Right-click on the bat file we created (ie getasset.bat) and choose Edit. This will open up upwardly notepad.
three. Enter in the following pieces of lawmaking:
@echo on
for /F "skip=2 tokens=2 delims=," %%A in ('wmic systemenclosure get serialnumber /FORMAT:csv') exercise (fix "serial=%%A")
echo %series%
pause
four. Explanation of the batch file and for statement:
First, we are turning echo on to see what our batch will do. We using the WMIC command to admission the asset tag information on the computer. Not all computers have an nugget tag field or use it simply Dell computers all exercise since most are used in an enterprise / corporate surroundings and are used to keep track of hardware. We apply CSV as our output format then we tin can parse the data w/our FOR and tokens statement.
We then are setting the asset tag information as a variable called: serial and then employ the echo command to just display the information on screen.
I finish with the Pause command and so that the batch file / command line window will not disappear afterward it runs.
POSSIBLE USES:
- -Create a batch file similar to above and have it output the data we set as the series variable to a text file and and then accept another process copy all files back to a binder to combine and create an inventory list
- -Use to create a sysprep batch file that would allow yous to set the reckoner name during sysprep to the asset tag and then have it join the domain using the netdom.exe application (non natively in windows).
- -This batch file tin easily be modified to become any WMIC value; merely open up a command prompt and type: WMIC <enter> and so type /? to become a full list of available parameters.
Source: https://www.tech-recipes.com/windows/batch-file-programming/batch-file-how-to-retrieve-asset-tag-serial-number-for-a-dell-computer/
Posted by: tolartherect.blogspot.com

0 Response to "How To Find Asset Tag Windows 10"
Post a Comment