Lenovo ThinkCentre M58 Deployment Manual page 22

Bios windows management instrumentation interface
Hide thumbs Also See for ThinkCentre M58:
Table of Contents

Advertisement

Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide for Desktop
'
On
Error Resume Next
Dim colItems
If WScript.Arguments.Count <> 4 Then
WScript.Echo "SetConfigPasswordRemote.vbs [setting]
[password + encoding] [hostname]"
WScript.Quit
End If
strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +
","
strComputer = WScript.Arguments(3)
Set
objWMIService
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
&
strComputer &
Set
colItems
=
Lenovo_SetBiosSetting")
For
Each objItem in colItems
ObjItem.SetBiosSetting strRequest, strReturn
Next
WScript.Echo strRequest
WScript.Echo "
SetBiosSetting: "
If strReturn < > "Success" Then
WScript.Quit
End If
Set
colItems
=
Lenovo_SaveBiosSettings")
strReturn = "error"
For
Each objItem in colItems
ObjItem.SaveBiosSettings WScript.Arguments(2)+",",
Next
WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: " + strReturn
= GetObject("WinMgmts:" _
"\root\wmi")
objWMIService.ExecQuery("Select
+ strReturn
objWMIService.ExecQuery("Select
[value]
*
from
*
from
strReturn
16

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Thinkcentre m58p

Table of Contents