Created
July 19, 2014 10:49
-
-
Save Dan1el42/efabe7cd2d62178e3de8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[String]$SerialNumber = 'HU265BM18V', | |
[String]$ProductNumber = 'H1P31AA' | |
) | |
$fields = @( | |
'tmp_weCountry=us', | |
"tmp_weSerial=$SerialNumber", | |
"tmp_weProduct=$ProductNumber", | |
"product=", | |
"lc=en", | |
"dlc=en" | |
"cc=us" | |
) | |
$result=Invoke-WebRequest -Uri 'http://h10025.www1.hp.com/ewfrf/wc/weResults' -Method POST -Body ($fields -join '&') | |
$result.RawContent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment