I’m trying to do something similar. the advantage is that I can leverage the default gateway to find the location, and I use the serial number.
So, what I’m trying to do (Still having problems help would be appreciated)
I need to use a name abbreviation depending on the default gateway, I need to identify the type of system and utilize the Serial number.
so, in the rules in MDT I’m able to insert this code and theoretically, it should work.
[Init]
ComputerSerialNumber=#Right("%SerialNumber%",10)#
[VMType]
Subsection=VM-%IsVM%
[VM-True]
TypeCode=VM
[LAPTOPType]
Subsection=LAPTOP-%IsLaptop%
[LAPTOP-True]
TypeCode=L
[DESKTOPType]
Subsection=DESKTOP-%IsDesktop%
[DESKTOP-True]
TypeCode=D
[DefaultGateway]
10.50.54.1=CGLD
10.144.35.1=HUST
[CGLD]
LocationName=Miami
OSDComputerName=CGLD-%TypeCode%-%SerialNumber%
[HUST]
LocationName=Huston
OSDComputerName=HUSD-%TypeCode%-%SerialNumber%
[Settings]
Priority=Init,VMType,DefaultGateway,Default
Properties=TypeCode,ComputerSerialNumber,OSDPREFIX,BFClientVersion,BFClientFileName
However, Bigfix Manual Tab has a different variable for the computer name and extract the serial number.
OSDPrefix=
and then you would go to use the [SN] and so on. So the only thing I have imagined up to now is to for each site create 3 profile, each profile would have to be different per location. we have 11 locations, that would be a total of 33 profiles! this is insane!
if any of you have done anything like this in the past greatly appreciated.
I made these changes, currently testing them. I also have a ticket open with IBM for assistance.
[Default]
BDEInstallSuppress=YES
BackupDir=%OSDComputerName%
BackupFile=install.wim
ComputerBackupLocation=NONE
DeploymentType=NEWCOMPUTER
DoCapture=NO
DriverPaths001=C:\Deploy\$OEM$\BigFixOSD\Drivers
DriverPaths002=D:\Deploy\$OEM$\BigFixOSD\Drivers
DriverPaths003=E:\Deploy\$OEM$\BigFixOSD\Drivers
DriverPaths004=F:\Deploy\$OEM$\BigFixOSD\Drivers
DriverPaths005=G:\Deploy\$OEM$\BigFixOSD\Drivers
DriverPaths006=H:\Deploy\$OEM$\BigFixOSD\Drivers
FullName=COOKIES AND CREAM
OSInstall=YES
OrgName=BFTG
SkipBDDWelcome=YES
SkipFinalSummary=YES
SkipSummary=YES
SkipWizard=YES
SkipAdminPassword=YES
_SMSTSOrgName=COOKIECUTER- BigFix OS Deployment
TaskSequenceID=D_W10X64_01
UILanguage=en-us
UserLocale=en-us
KeyboardLocale=0409:00000409
TimeZone=040
TimeZoneName=US Eastern Standard Time
FinishAction=RESTART
BFClientSettings=Status:New_System
XResolution=1
YResolution=1
BFImageIndex=1
BFPartitionMapping=0:0:1%:::T:F:0;0:1:99%:C:1:F:T:19232301056
[Init]
ComputerSerialNumber=#Right("%SerialNumber%",10)#
[VMType]
Subsection=VM-%IsVM%
[VM-True]
TypeCode=VM
[VM-False]
TypeCode=noVM
[DefaultGateway]
10.50.54.1=CGLD
[CGLD]
LocationName=Miami
OSDPrefix=CGLD-%TypeCode%-%SerialNumber%
[Settings]
Priority=Init,VMType,DefaultGateway,Default
Properties=TypeCode,ComputerSerialNumber,OSDPREFIX,BFClientVersion,BFClientFileName