欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

利用VBS脚本修改联想笔记本BIOS密码的代码分享

程序员文章站 2022-07-06 12:57:42
这不科学!无意中找到的一些资料:vbs 代码:复制代码 代码如下: strcomputer = "." set objwmiservice = getobject("win...

这不科学!无意中找到的一些资料:

利用VBS脚本修改联想笔记本BIOS密码的代码分享
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


利用VBS脚本修改联想笔记本BIOS密码的代码分享
文档下载【pdf】:

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