I tried this approach (of unsetting the password, then making the ChangeBootOrder call, and then setting the password back, but it does not work in this case. =( I am sad now.
As a last ditch effort, I even tried to install the Dell Management Console standard edition (3.2) so see if maybe it could interact with the OMCI on our E6510s better than I can, but apart from importing a list of computer names, I can't use the tool to do anything else because of the error below (probably something for a separate thread).
Warren, if you are nearby today, when talking about the E6510, can you elaborate on "UEFI BIOS"?
Log File Name: D:\Program Files\Altiris\Notification Server\Logs\a.log
Priority: 2
Date: 4/29/2011 8:46:40 AM
Tick Count: 73558421
Host Name: A70TTBDBS03
Process: AtrsHost (6676)
Thread ID: 55
Module: AtrsHost.exe
Source: Altiris.TaskManagement.ClientTask.*
Description: ClientTaskServer.RegisterTaskServer(): Failed to register: System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
at System.Guid..ctor(String g)
at Altiris.DotNetLib.AltirisGuid..ctor(String g)
at Altiris.TaskManagement.Common.AltirisResourceGuid..ctor(String g)
at Altiris.ClientTask.Server.ClientTaskServer.ReadResourceGuid()
at Altiris.ClientTask.Server.ClientTaskServer.RegisterTaskServer()
I should probably add a bit more detail to my post. Yes, I agree that the ChangeBootOrder method has been made more challenging that it probably needed to be.
But my code is working perfectly fine. After realizing that the installation of OMCI 8 neuters the old classes in such a way that they don't actually do anything except read (was that really necessary?... really?...)... I successfully made the jump from Dell_BootDeviceSequence to DCIM_BootSourceSetting/DCIM_OrderedComponent. This updated code has already remotely corrected the boot order on every machine type we have (620s, 745s, 755s, 780s, 960s, D600, D610, D620, E6400)... except for the E6500 series.
For lack of a better answer as to why a proper call to the method doesn't actually take on those machine types, I am telling the Help Desk lead that it has to do with UEFI bios on those machines, and an incompatibility on the part of OMCI.
Without actually copying and pasting my code, I am passing to the ChangeBootOrder() method a string array of .PartComponent properties (for the devices I want enabled and in which order I want them) that I pick out from the DCIM_OrderedComponent collection. The code is correct... the underlying implementation for the E65XX series is not.
Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate," &_
"AuthenticationLevel=pktprivacy}\\" & strComputerName & "\" &_
strNameSpace)
Set ColSystemOrder=objWMIService.execquery ("Select * from " & strClassNameOrder)
For each objInstanceOrder in ColSystemOrder
strOldOrder(arrayIndex) = objInstanceOrder.PartComponent
arrayIndex = arrayIndex + 1
Next
For i = 0 to (arrayIndex - 1)
For j = 0 to (arrayIndex - 1)
if(InStr(strOldOrder(j),"index-"&strNewOrderInput(i))> 0) then
strNewOrder(i) = strOldOrder(j)
j=arrayIndex
end if
Next
Next
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)
Next
I totally agree with you, Tony. If all I needed to do was re-order my boot devices, this script would be great.
The trouble is that I actually need to *disable* certain boot devices (it's a security requirement we have here; thank you federal government, may I have another). Simply sorting them behind the primary hard drive is not good enough. For now, we've had to send techs out to the laptops to get them configured properly. =(
DELL-Vibha G
1 Rookie
•
38 Posts
1108
0
Posted July 25th, 2013 00:00
Yes, there is a WIKI posted on Boot Order with OMCI. You can check the below link -
en.community.dell.com/.../4849.omci-for-boot-order.aspx
This article covers enable/disable a boot device. Please let us know if you need more info.
Thanks,
Vibha