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

2019-01-15 22:22:28于海丽

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

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】:montdeployguide

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

您可能感兴趣的文章:

iOS实现账号、密码记住功能iOS输入框(UITextField)密码明暗文切换方法iOS实现类似微信和支付宝的密码输入框(UIKeyInput协议)IOS实现输入验证码、密码按位分割(二)IOS开发使用KeychainItemWrapper 持久存储用户名和密码iOS密码在进入后台1小时后重新设置