computer name (RESOLVED)
Posted: Mon Oct 07, 2019 9:04 pm
we currently use this code below to get the Computer Name, this is used by our system to identify where output is sent dependant on the pc id.
however we have a number of thin client users that are using terminal server, in this case we are getting the computer name of the server, we need to be able to get the name of the allocated device, how could this be done ?
Does anyone know how this might be achieved?
* get terminal number
Use Builtin(GET_REGISTRY_VALUE) With_Args(HKEY_LOCAL_MACHINE SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName ComputerName) To_Get(#toterm #IO£STS)
however we have a number of thin client users that are using terminal server, in this case we are getting the computer name of the server, we need to be able to get the name of the allocated device, how could this be done ?
Does anyone know how this might be achieved?
* get terminal number
Use Builtin(GET_REGISTRY_VALUE) With_Args(HKEY_LOCAL_MACHINE SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName ComputerName) To_Get(#toterm #IO£STS)