亲宝软件园·资讯

展开

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

人气:0
想了解利用VBS脚本修改联想笔记本BIOS密码的代码讲解的相关内容吗,在本文为您仔细讲解VBS修改BIOS密码的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:VBS,联想笔记本,BIOS密码,下面大家一起来学习吧。

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

Lenovo_SetBiosPassword_1
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


Lenovo_SetBiosPassword_2
文档下载【PDF】:montdeployguide

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

加载全部内容

相关教程
猜你喜欢
用户评论