Re: Windows XP zmiana cd key [POMOCY]

Autor: <wowmaniac_at_vp.pl>
Data: Fri 30 Sep 2005 - 13:16:56 MET DST
Message-ID: <0dc1.0000008f.433d1ea7@newsgate.onet.pl>
Content-Type: text/plain; charset="iso-8859-2"

> > Na linku http://support.microsoft.com/kb/328874/PL/ jest niestety
> > opis jak to zrobić z dodatkiem SP1 ja mam SP2 . ?.
>
> Spróbuj, może zadziałać.
>
> --
> Azarien
>
No niestety zasotosowałam skrypt.
"'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer
'
'***************************************************************************

ON ERROR RESUME NEXT

if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-
WYQZX"
Wscript.quit
end if

Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any

for each Obj in GetObject("winmgmts:
{impersonationLevel=impersonate}").InstancesOf
("win32_WindowsProductActivation")

result = Obj.SetProductKey (VOL_PROD_KEY)

if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if

Next"
uruchamiam w cmd changevlkeysp2.vbs Xxx-x-x-x-x-x-x-x- a tu pojawia się błąd:
Host skryptów systemu widnows " błąd rodzajowy. 0x80041001."

-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Received on Fri Sep 30 13:20:19 2005

To archiwum zostało wygenerowane przez hypermail 2.1.8 : Fri 30 Sep 2005 - 13:42:04 MET DST