*****UPDATE*****
go to
http://www.pbbans.com/info-center-clientlog.html
and follow the client logging part at the top.
*****UPDATE*****
To get your GUID for Battlefield BC2 try this:
first off join a server that has Punkbuster activated and type in these / commands into chat
***MAKE SURE THAT IT IS A TRUE PUNKBUSTER SERVER, IF IT ISINT IT WONT LOG AN ID***
/pb_logtofile 1
/pb_writecfg
/pb_myguid
these should create a file called pbcl.cfg in your BC2 pb directory:
C:\Program Files\Electronic Arts\Battlefield Bad Company 2\pb\pbcl.cfg
Or
C:\Program Files\Steam\steamapps\common\battlefield bad company 2\pb\pbcl.cfg
if not create a file called pbcl.cfg and copy paste this into it
should look something like this:
pb_MsgPrefix "PunkBuster Client"
pb_Sleep 500
pb_LogToFile 1
pb_SsLog 1
pb_SsSave 1
now the next time you run BC2 and join a server pb *should* start logging all pb messages.
look for those messages in:
C:\Users\username\AppData\Local\PunkBuster\BC2\pb\pbcl.log
or
C:\Program Files\Steam\steamapps\common\battlefield bad company 2\pb\pbcl.log
or
C:\Program Files\Electronic Arts\Battlefield Bad Company 2\pb\pbcl.log
there should be a logfile file named pbcl.log
in that file you should see your pb guid:
PB Server assigned guid = (your guid)
this is how mine looked
[03.13.2010 00:33:17] PB Server assigned guid = 9036ede0fff9a92c81c34699f1d0d4a2
After you find it, you may want to turn logging back off as it logs all pb messages and kick reasons for all players. The log file will get big.