Lenovo ThinkPad R500 Manuel de déploiement - Page 24

Parcourez en ligne ou téléchargez le pdf Manuel de déploiement pour {nom_de_la_catégorie} Lenovo ThinkPad R500. Lenovo ThinkPad R500 36 pages. Bios windows management instrumentation interface
Également pour Lenovo ThinkPad R500 : Poster d'installation (2 pages), Manuel de configuration initiale (2 pages), Brochure (4 pages), Spécifications (4 pages), Manuel de déploiement (44 pages), Avis (24 pages), Avis (1 pages), Manuel de déploiement (40 pages), Manuel de l'utilisateur (28 pages)

Lenovo ThinkPad R500 Manuel de déploiement
Syntax: cscript.exe ListAllRemote.vbs [Hostname]
Example: cscript.exe ListAllRemote.vbs mattdev-c5
'
' List all BIOS settings
'
On Error Resume Next
Dim colItems
If WScript.Arguments.Count <> 1 Then
End If
strComputer = WScript.Arguments(0)
Set objWMIService = GetObject("WinMgmts:" _
Set colItems = objWMIService.ExecQuery("Select * from Lenovo_BiosSetting")
For Each objItem in colItems
Next

Set a single BIOS setting on a remote computer

Use the sample scripts in the ZIP file as templates to set a single BIOS setting on a
remote computer.
Syntax: cscript.exe SetConfigRemote.vbs [Item] [Value] [Hostname]
Example: cscript.exe SetConfigRemote.vbs WakeOnLAN Disable mattdev-c5
'
' Set specific BIOS Setting
'
On Error Resume Next
Dim colItems
If WScript.Arguments.Count <> 3 Then
End If
strRequest = WScript.Arguments(0) + "," + WScript.Arguments(1) + ";"
strComputer = WScript.Arguments(2)
Set objWMIService = GetObject("WinMgmts:" _
Set colItems = objWMIService.ExecQuery("Select * from Lenovo_SetBiosSetting")
16
Lenovo BIOS Windows Management Instrumentation Interface Deployment Guide
WScript.Echo "ListAllRemote.vbs [hostname]"
WScript.Quit
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
& strComputer & "\root\wmi")
If Len(objItem.CurrentSetting) > 0 Then
Setting = ObjItem.CurrentSetting
StrItem = Left(ObjItem.CurrentSetting, InStr(ObjItem.CurrentSetting, ",")
- 1)
StrValue = Mid(ObjItem.CurrentSetting, InStr(ObjItem.CurrentSetting, ",")
+ 1, 256)
WScript.Echo StrItem + " = " + StrValue
End If
WScript.Echo "SetConfigRemote.vbs [setting] [value] [hostname]"
WScript.Quit
&"{ImpersonationLevel=Impersonate," _
&"authenticationLevel=pktPrivacy}!\\" _
& strComputer & "\root\wmi")