利用VBS脚本修改联想笔记本BIOS密码的代码分享
更新时间:2013年07月28日 18:37:44 作者:
这篇文章主要介绍了利用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

文档下载【PDF】:montdeployguide
本人来自: http://www.enun.net/?p=1497
相关文章
VBS教程:VBScript 语句-Select Case 语句
Select Case 语句可以是嵌套的,每一层嵌套的 Select Case 语句必须有与之匹配的 End Select 语句2006-11-11
VBS教程:方法-GetParentFolderName 方法
vbs GetParentFolderName用来获取指定的路径中最后一个文件或文件夹的父文件夹2006-11-11
vbs脚本和windows定时任务实现qq消息表情包定时发送功能
这篇文章主要介绍了vbs脚本和windows定时任务实现qq消息表情包定时发送,整个过程不用过多的程序运行,我们借助vbs脚本和windows定时任务去实现这一功能,需要的朋友可以参考下2022-01-01
VBS基础篇 vbscript Sendkeys模拟键盘操作
在vbscript中我们可以object.SendKeys模拟键盘操作,将一个或多个按键指令发送到指定Windows窗口来控制应用程序运行,,需要的朋友可以参考下2018-06-06


最新评论