Unsolved
This post is more than 5 years old
6 Posts
0
145082
April 5th, 2013 09:00
Set bios admin password in task sequence
I'm trying to use this sample script to set BIOS password during OSD task sequence in SCCM 2012 SP1. http://media.community.dell.com/en/dtc/attach/samplesetadminpassword.vbs.txt I have OMCI 8.1.1 installed. Everytime i run script manually i get error: SampleSetAdminPassword.vbs(51, 1) SWbemObjectEx: Invalid parameter
line 51: Set returnValue = objInstance.ExecMethod_("SetBIOSAttributes", oInParams) maybe there are bad parameters in variables
when i run gwmi command in powershell:
GET-WMIOBJECT DCIM_BIOSService -namespace root\dcim\sysman | SORT-OBJECT AttributeName | Format-Table AttributeName,CurrentValue
there is no attribute "AdminPwd"
Has anybody working version of this vbs script?
Dell - Sharmad
52 Posts
0
April 9th, 2013 07:00
Jurekkk,
Can you provide the details platform you are using? We shall check the same and update you at the earliest.
jurekkk
6 Posts
0
April 9th, 2013 07:00
Client platform:
Optiplex 760, 780, 380
Windows 7 x64 SP1
OMCI 8.1.1
what else do you need to know?
Thank you for reply
Dell - Sharmad
52 Posts
0
April 9th, 2013 10:00
I Have tried this on a O380 and it seems to work. The following powershell command waas used
(gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes($null,$null,"AdminPwd","password")
jurekkk
6 Posts
0
April 12th, 2013 02:00
hi Sharmad,
when i try your command i get error:
Exception calling "SetBIOSAttributes" : "Invalid parameter "
At line:1 char:70
+ (gwmi DCIM_BIOSService -namespace root\dcim\sysman).SetBIOSAttributes <<<< ($null,$null,"AdminPwd","password")
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WMIMethodException
jurekkk
6 Posts
0
May 3rd, 2013 01:00
Please can you explain how to use wbemtest and how to determine if results are appropriate?
thank you
Dell - Sharmad
52 Posts
0
May 3rd, 2013 01:00
Please check if your winrm is configured
Open Command Prompt as an administrator and run winrm quickconfig. Check winrm help for more information.
Dell - Sharmad
52 Posts
0
May 3rd, 2013 01:00
Would be glad if you can let us know if "wbemtest" results on the machine are appropriate. Also I hope the quickconfig command to configure winrm is already executed prior to the script execution
jurekkk
6 Posts
0
May 3rd, 2013 02:00
I have already run that command. Result:
WinRM already is set up to receive requests on this machine.
WinRM already is set up for remote management on this machine.
Dell - Sharmad
52 Posts
0
May 14th, 2013 00:00
Can you let know the results for the query "gwmi DCIM_BIOSService -namespace root\dcim\sysman"
jurekkk
6 Posts
0
May 14th, 2013 01:00
sure, here you are:
PS C:\Users\jdorr> gwmi DCIM_BIOSService -namespace root\dcim\sysman
__GENUS : 2
__CLASS : DCIM_BIOSService
__SUPERCLASS : CIM_BIOSService
__DYNASTY : CIM_ManagedElement
__RELPATH : DCIM_BIOSService.CreationClassName="DCIM_BIOSService",Name="DCIM:BiosService",SystemCreation
ClassName="DCIM_ComputerSystem",SystemName="nb:"
__PROPERTY_COUNT : 27
__DERIVATION : {CIM_BIOSService, CIM_Service, CIM_EnabledLogicalElement, CIM_LogicalElement...}
__SERVER : DORRNB
__NAMESPACE : root\dcim\sysman
__PATH : \\DORRNB\root\dcim\sysman:DCIM_BIOSService.CreationClassName="DCIM_BIOSService",Name="DCIM:B
iosService",SystemCreationClassName="DCIM_ComputerSystem",SystemName="nb:"
AvailableRequestedStates :
Caption :
CommunicationStatus :
CreationClassName : DCIM_BIOSService
Description :
DetailedStatus :
ElementName :
EnabledDefault : 2
EnabledState : 5
HealthState :
InstallDate :
Name : DCIM:BiosService
OperatingStatus :
OperationalStatus :
OtherEnabledState :
PrimaryOwnerContact :
PrimaryOwnerName :
PrimaryStatus :
RequestedState : 12
Started :
StartMode :
Status :
StatusDescriptions :
SystemCreationClassName : DCIM_ComputerSystem
SystemName : nb:
TimeOfLastStateChange :
TransitioningToState : 12
PS C:\Users\jdorr>
Dell - Sharmad
52 Posts
0
May 17th, 2013 00:00
I am noticing that the System Name is not existing for this notebook. Somehow the system name seems to have got erased. Request you to kindly set the Service Tag of the system from F2 screen and let know the results.