利用VBS脚本修改联想笔记本BIOS密码的代码分享
时间:2021-04-06 10:01:00|栏目:VBS|点击: 次
这不科学!无意中找到的一些资料:
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实现自动检查代理是否可用,并自动设置IE代理的脚本
栏 目:VBS
下一篇:VBS教程:函数-Sqr 函数
本文标题:利用VBS脚本修改联想笔记本BIOS密码的代码分享
本文地址:http://www.codeinn.net/misctech/95488.html