首页 > 电脑资讯 > 笔记本知识

运用VBS脚本更改联想笔记本BIOS密码的代码分享_编程语言综合

作者:佚名   来源:本站   时间:2019-06-01  点击:73次

这篇文章主要介绍了利用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】:

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

推荐游戏

换一换