EasyManua.ls Logo

Lenovo ThinkStation C20 - Set a Single BIOS Setting on a Remote Computer When a Administrator Password Exists

Lenovo ThinkStation C20
28 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
@Copyright Lenovo 2010 19
Example:
cscript.exe
SetConfigRemote.vbs
“Wake on LAN”
Disabled
mattdev-c5
’ Set specific BIOS Setting
On Error Resume Next
Dim colItems
If WScript.Arguments.Count < > 3 Then
WScript.Echo "SetConfigRemote.vbs [setting] [value] [hostname]"
WScript.Quit
End If
strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) +
","
strComputer = WScript.Arguments(2)
Set objWMIService = GetObject("WinMgmts:" _
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
& strComputer & "\root\wmi")
Set colItems = objWMIService.ExecQuery("Select * from
Lenovo_SetBiosSetting")
For Each objItem in colItems
ObjItem.SetBiosSetting strRequest, strReturn
Next
WScript.Echo strRequest
WScript.Echo " SetBiosSetting: " + strReturn
If strReturn <> "Success" Then
WScript.Quit
End If
Set colItems = objWMIService.ExecQuery("Select * from
Lenovo_SaveBiosSettings")
strReturn = "error"
For Each objItem in colItems
ObjItem.SaveBiosSettings ",", strReturn
Next
WScript.Echo strRequest
WScript.Echo " SaveBiosSettings: " + strReturn
Set a single BIOS setting on a remote computer when
a Administrator password exists
Usethesamplescriptsinthe ZIPfileastemplatesto set asingle
BIOSsettingonaremotecomputerwhena supervisorpassword
exists.
Syntax:
cscript.exe
SetConfigPasswordRemote.vbs
[Item] [Value]
[Password + Encoding]
[Hostname]
Example:
cscript.exe
SetConfigPasswordRemote.vbs “
Wake on LAN”
Disabled pass,ascii,us mattdev-c5
’ Set specific BIOS Setting

Other manuals for Lenovo ThinkStation C20

Related product manuals