萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> 編程語言綜合 >> 利用VBS腳本修改聯想筆記本BIOS密碼的代碼分享

利用VBS腳本修改聯想筆記本BIOS密碼的代碼分享

這篇文章主要介紹了利用VBS腳本修改聯想筆記本BIOS密碼的實現代碼,感覺這不科學!無意中找到的一些資料,喜歡的朋友可以試試  

這不科學!無意中找到的一些資料:

Lenovo_SetBiosPassword_1
vbs 代碼:

復制代碼 代碼如下:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & strComputer & "rootWMI")
' Obtain an instance of the the class
' using a key property value.
Set objShare = objWMIService.Get("Lenovo_SetBiosPassword.InstanceName='ACPIPNP0C141_0'")

' Obtain an InParameters object specific
' to the method.
Set objInParam = objShare.Methods_("SetBiosPassword"). _
inParameters.SpawnInstance_()

' Add the input parameters.
objInParam.Properties_.Item("Parameter") = "test"

' Execute the method and obtain the return status.
' The OutParameters object in objOutParams
' is created by the provider.
Set objOutParams = objWMIService.ExecMethod("Lenovo_SetBiosPassword.InstanceName='ACPIPNP0C141_0'", "SetBiosPassword", objInParam)

' List OutParams
Wscript.Echo "Out Parameters: "
Wscript.echo "Return: " & objOutParams.Return

 

Lenovo_SetBiosPassword_2
文檔下載【PDF】:montdeployguide

本人來自: http://www.enun.net/?p=1497

copyright © 萬盛學電腦網 all rights reserved