首页 > Web开发 > 详细

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

时间:2016-01-31 19:27:34      阅读:280      评论:0      收藏:0      [点我收藏+]

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

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

原文:http://www.jb51.net/article/40055.htm

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!