Using the VBS script to modify the code sharing of Lenovo notebook BIOS password

Source: Internet
Author: User
Tags lenovo
This article mainly introduces the use of VBS script to modify the Lenovo notebook BIOS password implementation code, it is not scientific! Accidentally found some information, like friends can try

It's not science! some information that was accidentally found:


VBS CODE:

Copy Code code as follows:


strComputer = "."


Set objWMIService = GetObject ("winmgmts:" & StrComputer & "Rootwmi")


' Obtain an instance of 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 ' 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


Document Download "PDF": montdeployguide

I come from: http://www.enun.net/?p=1497

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.