Workflow Soluiton

 View Only
  • 1.  Get Computer Name

    Posted Jun 29, 2009 10:02 AM
    Is there a Get Computer Name component that reads local variables? have searched around but can't find one. if not does anybody know a way to achieve this.

    Thanks
    Dazza


  • 2.  RE: Get Computer Name

    Posted Jun 29, 2009 07:43 PM

    Are you trying to get a computer name based off of IP or User?  Or are you wanting to fetch specific Computer data tied to the host name provided by a variable?  I guess it depends on what you mean when you say you want the component to "read" a variable.  Many of the Computer components allow variables to pass data into the process.

    Can you explain what you are trying to do in more detail?



  • 3.  RE: Get Computer Name

    Posted Jun 30, 2009 10:10 AM
    You might want to explore the Diagnostics library (not imported by default). There's a component in there called GetComputerInfo that might be what you're looking for.


  • 4.  RE: Get Computer Name

    Posted Jul 01, 2009 03:43 AM
    There is a component under Input/Ouput that is called "Pick Up Environmet Variables" I didn't see this before, I have configured this to read the COMPUTERNAME Variable, works a treat

    Many Thanks for the pointers


  • 5.  RE: Get Computer Name

    Posted Jul 23, 2009 07:39 AM
    Thanks reecardo.
    This works fine, as long as I run in the debugger. However, once the workflow is published to the IIS, the component always returns the values of the Workflow Server and not of the user who is actually running it. I also tried to enforce authentication via the web.config and IIS settings, but it won't change that behaviour.

    Do you have a hint, how I can force the component to get values from the computer of the user, who is actually running the workflow and not always from the server?


  • 6.  RE: Get Computer Name

    Posted Oct 06, 2009 02:28 PM
    Hey Daz,

    Did you have to make any changes on IIS to get this to work.  When I use the COMPUTERNAME variable and run the project I get the IIS Server name returned back to me.  Any help would be appreciated.

    Thanks


  • 7.  RE: Get Computer Name

    Posted Oct 08, 2009 01:11 PM
    Hi

    You cannot get the Computername with the built in components.

    I've written an article on how to use javascript to get computername (and ns-computerguid):

    http://www.symantec.com/connect/articles/how-get-computername-and-guid

    Hope you can use it.





  • 8.  RE: Get Computer Name

    Posted Dec 08, 2009 11:32 AM
    I created a Code (Script) Component  with the following:

    Result variable -

    ComputerNameResultVar.JPG

    And C# Code -

    ComputerNameCode.JPG

    The variable returns the FQDN of the client computer so you can trim it off using a Strip Text component if you wish.

    Hope this helps.


  • 9.  RE: Get Computer Name

    Posted May 26, 2010 06:20 PM

    Thanks billyccfs,

    Your method works but does anyone know if there is a way to get the client computer name logged onto a terminal server. When using the method above, it returns our ISA server instead of the name of the client.

    Aryanos