Unsolved
This post is more than 5 years old
3 Posts
0
16378
December 9th, 2011 13:00
Sample Script Set Bios Order Optiplex 390 Invalid Parameter Error
Same as http://en.community.dell.com/techcenter/enterprise-client/f/4448/t/19422511.aspx I am using the samplesetbootorder.vbs, except my target PC is an optiplex 390 and I recieve an invalid parameter error on line 116:
c:\Drivers\samplesetbootorder.vbs(100, 2) SWbemObjectEx: Invalid parameter
I can successfully run the getbootorder script and the output is:
DCIM:BootSoureSetting:UEFI:BootListType-1:index-1 SATA: ST3250312AS 1 1
DCIM:BootSoureSetting:UEFI:BootListType-1:index-0 Diskette Drive 2 1
DCIM:BootSoureSetting:UEFI:BootListType-1:index-3 USB Storage Device 3 1
DCIM:BootSoureSetting:UEFI:BootListType-1:index-4 CD/DVD/CD-RW Drive 4 1
DCIM:BootSoureSetting:UEFI:BootListType-1:index-5 Onboard NIC 0 0
I want it to look like:
DCIM:BootSoureSetting:UEFI:BootListType-1:index-1 SATA: ST3250312AS 1 1
DCIM:BootSoureSetting:UEFI:BootListType-1:index-0 Diskette Drive 0 0
DCIM:BootSoureSetting:UEFI:BootListType-1:index-3 USB Storage Device 0 0
DCIM:BootSoureSetting:UEFI:BootListType-1:index-4 CD/DVD/CD-RW Drive 0 0
DCIM:BootSoureSetting:UEFI:BootListType-1:index-5 Onboard NIC 0 0
So I set the input for the array in the script to (not that it matters what I put here as the script errors out with same error regardless, although if this is incorrect for my desired outcome please let me know):
strNewOrderInput(0)="0"
strNewOrderInput(1)="1"
strNewOrderInput(2)="0"
strNewOrderInput(3)="0"
strNewOrderInput(4)="0"
strNewOrderInput(5)="0"
Line 116 is the last line displayed here, and I'm guessing that oInParams.source is returning something incorrectly but I can't get it to display with msgbox or wscript.echo.
Set ColSystem=objWMIService.execquery ("Select * from " & strClassName)
For each objInstance in ColSystem
Set oInParams= objInstance.Methods_("ChangeBootOrder").InParameters.SpawnInstance_
oInParams.source = strNewOrder
oInParams.AuthorizationToken = strAuthorizationToken
Set returnValue = objInstance.ExecMethod_("ChangeBootOrder", oInParams)
My BIOS is the latest version A02, and I installed OMCI 8.0.1.150, and am running the script with a local administrative account. Also just recieved the batch of Dell 390s (SFF) early DEC. Any insight or information anyone could provide would be greatly appreciated. Thank you.



Micah00711
3 Posts
0
December 9th, 2011 14:00
Correct, although I was receiving the same error on the older version just line 100 instead. I also forgot to mention I'm running microsoft's corporate/enterprise re-branded version of windows embedded 7 called Windows Thin PC (for most purposes I understand this to be relatively identical to windows 7).
DELL-Warren B
1.1K Posts
0
December 9th, 2011 14:00
You are using the updated script that I posted last week...correct?
DELL-Warren B
1.1K Posts
0
December 12th, 2011 11:00
I had the dev team review it and it appears that you are trying to disable some boot devices in addition to changing the order. Disabling of boot devices is not currently supported with OMCI 8.0.1 but will be available in the next release.
Micah00711
3 Posts
0
December 12th, 2011 16:00
Thanks Warren! I will re-test a configuration that does not attempt to disable any of the devices. Two questions: Is there a way to subscribe to some kind of notification that would alert me to the release of the next version? If not, is this the best link to follow up on?
www.dell.com/.../client_software