How to get machine name in Vb script (SBM)

0
I need to display the Machine name from which the SBM application is accessed.

To get System IP address , We will be using - Shell.RemoteAddr .similar how to get Machine name in scripting ?

Thanks & Regards,
Vinoth Kumar K.
Responses (3)
  • Accepted Answer

    Friday, June 09 2017, 11:41 AM - #Permalink
    0
    Wouldn't this work?

    Shell.URLServer
    string (input). Returns the server name for the current URL.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 13 2017, 01:49 AM - #Permalink
    0
    Thanks for your response amos :)

    But i'm expecting client machine name

    Regards,
    Vinoth Kumar K.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, June 13 2017, 11:31 PM - #Permalink
    0
    If Shell.RemoteUser doesn't have what you need, then I don't think SBM doesn't have it built-in. Since you can get the user's IP address, pass that to a command line using "ext.CmdLineWait". The Command to execute could be "nbtstat -A {ipaddress}". The command line would redirect output to a temp file. Back in the AppScript read and parse the temp file.
    The reply is currently minimized Show
Your Reply