본 스크립트는 윈도우 2003 서버중 볼륨라이센스의 시디키 값만을 변경할수 있습니다.
실행 -> cmd -> 2.vbs파일 경로로 이동 -> C:\>2.vbs 변경할 시디키값(25자리에서 - 포함해서)
아래의 내용을 .vbs 파일로 만들거나 첨부파일 2.vbs 를 실행할것!
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
'Windows > Script' 카테고리의 다른 글
윈도우 2003 볼륨라이센스 cdkey 변경스크립트 (0) | 2011.08.08 |
---|