Jump to content


Judical

Lenovo Warranty Information

Recommended Posts

Is there an up to date way for pulling this information with SCCM?

 

This was the previous way to do it.

https://sccmguru.wordpress.com/2014/04/24/hp-and-lenovo-warranty-information-in-configuration-manager-2012-r2/

This script is attached since its not available anymore on the site

 

 

Can any scriptwriters in the forums try to modify the existing script to add this;

$test = Invoke-WebRequest -uri http://support.lenovo.com/us/en/warrantylookup-SessionVariable ln
$form = $test.forms[0]
$serial = 'MJNECHL'
$form.Fields["serialCode"]="$($serial)"
$answer = Invoke-WebRequest -Uri ("http://support.lenovo.com"+ $form.Action) -WebSession $ln -Method $form.Method -Body $form.Fields
$a = $answer.ParsedHtml.getElementById("warranty_result_div").outerText
$a.Substring(39,10)
-Judical

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.