$output = $null $sourcefile = $null # get needed values to do the work # needed values in the sourcefile: AssetName Serialnumber ADDESCRIPTION SystemSKU $sourcefile = Get-Content C:\temp\source.csv | sort-object $_. So after i did all this, it was time to script this. We use the description field to identify where the device is at (physically). So all that was left for me to do now, it to do this for all the devices in the by Lansweeper created CSV.īecause a devicename itself doesn’t really tell me where the device is at, i also included the Active Directory “Description” field (data that is also retrieved and stored by Lansweeper). I manually browsed to this URL and found out that this gave me an awesome JSON-formatted overwiew of my device information. So looking for the XHR it gave me this URL : I primarily use HP products and services for Product Name or Number Select Your Country/Region and Language Close Country/Region Selector Dialog. So using Chrome and their integrated webtools (F12), i was able to capture the URL that was sent to their server to retrieve my requested data. Check warranty Authorized service providers Security bulletin archive Parts store Consumer services Product registration Store Support Contact Store Support Track my order. But the URL above wasn’t what was getting sent as a request. The SKU is for the cases where the website asks for it (for some unknown reason it does).īefore going into scripting itself, i started out by doing a manual check, just to see how things work. Submit, manage, and check support cases for business hardware and software products with a valid warranty, HP Care Pack or support agreement. AssetName Serialnumber ADDESCRIPTION SystemSKU D08W0BT CZC6437K7Z HR L1G76AV
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |