Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-13-2006, 11:00 AM
kblaine kblaine is online now
Registered User
 
Join Date: 04-30-2004
Posts: 12
Question Resolve Full Username for Email Notification

I understand there is a %username% macro that will insert the logged on user name into the email notification.

Is there a way to qualify the FULL user name to insert into the email notification?

For example in the email notification I would like to put:

This build was built by %username% at %datetime%.
Where username would have Bill Smith, instead of the actual username that is logged in of smithb01.

I would assume we would have to do an AD lookup?
or
Is there a registry key that gives the full user name logged in?
or
Can I place a txt file on the drive that the macro will compare the smithb01 to equil Bill Smith?

Thank you!!
Reply With Quote
  #2  
Old 06-14-2006, 05:50 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
[GetObject("WinNT://%COMPUTERNAME%/%USERNAME%,user").FullName]

http://tinyurl.com/oqldd
Reply With Quote
  #3  
Old 06-14-2006, 09:19 AM
kblaine kblaine is online now
Registered User
 
Join Date: 04-30-2004
Posts: 12
Thumbs up

Not sure I follow what to do with that Get Object. Could I please get an example?

Is this the only way, by querying the AD directory?

thx.
-b
Reply With Quote
  #4  
Old 06-14-2006, 02:50 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
That's a script expression you could use anywhere you would use a macro reference (i.e., %USERNAME%).
http://www.visualbuild.com/Manual/scriptexpressions.htm

There may be other ways to achieve this. It's just one way I found on a Google search.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 06:01 PM.


Copyright © 1999-2023 Kinook Software, Inc.