利用VBS腳本修改聯(lián)想筆記本BIOS密碼的代碼分享
更新時間:2013年07月28日 18:37:44 作者:
這篇文章主要介紹了利用VBS腳本修改聯(lián)想筆記本BIOS密碼的實現(xiàn)代碼,感覺這不科學!無意中找到的一些資料,喜歡的朋友可以試試
這不科學!無意中找到的一些資料:
vbs 代碼:
復制代碼 代碼如下:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\WMI")
' Obtain an instance of the the class
' using a key property value.
Set objShare = objWMIService.Get("Lenovo_SetBiosPassword.InstanceName='ACPI\PNP0C14\1_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='ACPI\PNP0C14\1_0'", "SetBiosPassword", objInParam)
' List OutParams
Wscript.Echo "Out Parameters: "
Wscript.echo "Return: " & objOutParams.Return
文檔下載【PDF】:montdeployguide
本人來自: http://www.enun.net/?p=1497
相關文章
VBS教程:VBscript語句-ExecuteGlobal 語句
VBS教程:VBscript語句-ExecuteGlobal 語句...2006-11-11VBS教程:VBScript 語句-Select Case 語句
Select Case 語句可以是嵌套的,每一層嵌套的 Select Case 語句必須有與之匹配的 End Select 語句2006-11-11