http://en.community.dell.com/techcenter/enterprise-client/w/wiki/7532.dell-command-configure
You need to create a CIR that reads the bios into a text file, and then you can create cirs to read any of the lines you want into the K1000. It can take 2 inventory cycles to get the information into the secondary CIR's.
The CIR to create the bios.txt flie that you will use to make filtered reads from:
ShellCommandTextReturn(cmd /c @echo off & del c:\programdata\dell\kace\user\bios.txt & "C:\Program Files\Dell\Command Configure\X86\cctk.exe" -o=C:\ProgramData\Dell\KACE\user\bios.txt & "C:\Program Files (x86)\Dell\Command Configure\X86_64\cctk.exe" -o=C:\ProgramData\Dell\KACE\user\bios.txt)
Then you create as many CIRs to read the lines you want into the K1000 In this exmaple I am going to create one to read the boot order.
ShellCommandTextReturn(cmd /c @echo off && for %g in (c:\programdata\dell\kace\user\bios.txt) do (findstr /b /c:"bootorder" %g))
As a report:
you can use this for any line in the bios.txt file by replacing the word after the /c:" in the CIR line.
so for example to change this to get the embnic status you would change this line from:
ShellCommandTextReturn(cmd /c @echo off && for %g in (c:\programdata\dell\kace\user\bios.txt) do (findstr /b /c:"bootorder" %g))
to:
ShellCommandTextReturn(cmd /c @echo off && for %g in (c:\programdata\dell\kace\user\bios.txt) do (findstr /b /c:"embnic1" %g))
Whatever word is at the begining of the line you want to read, substitute that in.
the Bios.txt file
[cctk]
sysname=OptiPlex 790
sysid=04AD
biosver=A05
;do not edit information above this line
acpower=off
admsetuplockout=disable
advsm=TEMPERATURE_1:NA
advsm=CD_1:0
advsm=CD_2:0
asset=
autoon=weekdays
autoonhr=6
autoonmn=30
bootorder=legacytype,+hdd.1,+embnic,+cdrom,+usbdev,-floppy,+hdd.2
;Here '+' indicates Enabled device, '-' indicates Disabled device.You can use DeviceNumber also to set the boot order. Example: bootorder=+2,-1,+3
chasintrusion=disable
cpucore=all
cpuxdsupport=enable
cstatesctrl=enable
deepsleepctrl=s5only
embnic1=on
embsataraid=ahci
energystarlogo=disable
fanctrlovrd=disable
fastboot=thorough
;firstpowerondate=20110830
forcepxeonnextboot=disable
hddprotection=off
logicproc=disable
;mfgdate=20110627
multidisplay=disable
numlock=on
oromuiprotection=enable
passwordbypass=off
pcislots=enable
postf12key=enable
propowntag=
pwdlock=unlock
rptkeyerr=enable
sata0=auto
sata1=auto
sata2=auto
sata3=auto
serial1=com1
serrdmimsg=on
smarterrors=disable
speedstep=automatic
stealthmode=enable
strongpwd=disable
svctag=50W6KQ1
tpm=off
tpmactivation=deactivated
trustexecution=off
turbomode=enable
usbemu=enable
usbportsfront=enable
usbreardual=on
usbrearquad=on
;uuid=4C4C4544-0030-5710-8036-B5C04F4B5131
virtualization=enable
vtfordirectio=on
wakeonlan=disable
Comments