Skip to main content
Inspiring
August 28, 2008
Question

Nt username

  • August 28, 2008
  • 25 replies
  • 2497 views
How to get nt username using CF? Please anyone, thanks....
    This topic has been closed for replies.

    25 replies

    emmim44Author
    Inspiring
    August 28, 2008
    I am trying to execute this '<cfexecute name="u" arguments="echo %username% "></cfexecute>
    <cfoutput>#u#</cfoutput><cfabort>'

    but error...
    An exception occurred when invoking an external process.
    The cause of this exception was that: java.io.IOException: CreateProcess: u echo %username% error=2.

    BKBK
    Community Expert
    Community Expert
    August 28, 2008
    emmim44Author
    Inspiring
    August 28, 2008
    I meant I am tyring to get the username that I login in to my local machine which is novel username...
    Inspiring
    August 28, 2008
    Dan Bracuk wrote:
    > cfldap

    OR cgi.auth_user if windows integrated security is turned on in IIS

    I've also done things with <cfexecute...> to run dos commands such as
    netstat.

    emmim44Author
    Inspiring
    August 28, 2008
    Do you have an example?
    Inspiring
    August 28, 2008
    cfldap