Jump to content

Get Terminal Client PC Name - WMI


Recommended Posts

Posted

Hi everyone,

 

We are looking for a way to have the server get the client PC name from the

terminal session (the PC connecting thorough Remote Desktop). Can anyone

help me with a WMI Filter for this?

 

We have set up a policy so that when the user starts a new terminal session

1 of 2 things happen. They see the full desktop or they see an application

that automatically loads up. This is dependant on the computer the user is

calling in with from Remote Desktop.

 

Thanks

  • Replies 4
  • Created
  • Last Reply

Popular Days

Guest ThomasT.
Posted

Re: Get Terminal Client PC Name - WMI

 

You can use the environment variable : %CLIENTNAME%

Go to a DOS prompt and type SET, you will see a lot of interestering

variables

 

Good luck

 

ThomasT

 

 

"Dan" <kgh@kg.com> wrote in message

news:u6oRjK9wHHA.4076@TK2MSFTNGP06.phx.gbl...

> Hi everyone,

>

> We are looking for a way to have the server get the client PC name from

> the

> terminal session (the PC connecting thorough Remote Desktop). Can anyone

> help me with a WMI Filter for this?

>

> We have set up a policy so that when the user starts a new terminal

> session 1 of 2 things happen. They see the full desktop or they see an

> application that automatically loads up. This is dependant on the

> computer the user is calling in with from Remote Desktop.

>

> Thanks

>

>

Posted

Re: Get Terminal Client PC Name - WMI

 

Thanks!

 

I've looked all over Google on how to pull an enviroment variable value from

a WMI Filter. I am not having any luck. Do you have any examples of how to

do this?

 

Thanks

 

 

"ThomasT." <ThomasT@nospam.nospam> wrote in message

news:uMAwuQ9wHHA.3816@TK2MSFTNGP05.phx.gbl...

> You can use the environment variable : %CLIENTNAME%

> Go to a DOS prompt and type SET, you will see a lot of interestering

> variables

>

> Good luck

>

> ThomasT

>

>

> "Dan" <kgh@kg.com> wrote in message

> news:u6oRjK9wHHA.4076@TK2MSFTNGP06.phx.gbl...

>> Hi everyone,

>>

>> We are looking for a way to have the server get the client PC name from

>> the

>> terminal session (the PC connecting thorough Remote Desktop). Can anyone

>> help me with a WMI Filter for this?

>>

>> We have set up a policy so that when the user starts a new terminal

>> session 1 of 2 things happen. They see the full desktop or they see an

>> application that automatically loads up. This is dependant on the

>> computer the user is calling in with from Remote Desktop.

>>

>> Thanks

>>

>>

>

>

Guest ThomasT.
Posted

Re: Get Terminal Client PC Name - WMI

 

I use vbscript to extract that, I don't use WMI

 

"Dan" <kgh@kg.com> wrote in message

news:eMyB569wHHA.1184@TK2MSFTNGP04.phx.gbl...

> Thanks!

>

> I've looked all over Google on how to pull an enviroment variable value

> from a WMI Filter. I am not having any luck. Do you have any examples of

> how to do this?

>

> Thanks

>

>

> "ThomasT." <ThomasT@nospam.nospam> wrote in message

> news:uMAwuQ9wHHA.3816@TK2MSFTNGP05.phx.gbl...

>> You can use the environment variable : %CLIENTNAME%

>> Go to a DOS prompt and type SET, you will see a lot of interestering

>> variables

>>

>> Good luck

>>

>> ThomasT

>>

>>

>> "Dan" <kgh@kg.com> wrote in message

>> news:u6oRjK9wHHA.4076@TK2MSFTNGP06.phx.gbl...

>>> Hi everyone,

>>>

>>> We are looking for a way to have the server get the client PC name from

>>> the

>>> terminal session (the PC connecting thorough Remote Desktop). Can

>>> anyone help me with a WMI Filter for this?

>>>

>>> We have set up a policy so that when the user starts a new terminal

>>> session 1 of 2 things happen. They see the full desktop or they see an

>>> application that automatically loads up. This is dependant on the

>>> computer the user is calling in with from Remote Desktop.

>>>

>>> Thanks

>>>

>>>

>>

>>

>

>

Guest ThomasT.
Posted

Re: Get Terminal Client PC Name - WMI

 

Create an text file and name it like : GetClientMachine.vbs and paste these

2 lines:

 

Set WshShell = CreateObject("WScript.Shell")

WScript.Echo WshShell.ExpandEnvironmentStrings("%CLIENTNAME%")

 

Save it and double click on it to execute

 

"ThomasT." <ThomasT@nospam.nospam> wrote in message

news:eYpmkP%23wHHA.5108@TK2MSFTNGP03.phx.gbl...

>I use vbscript to extract that, I don't use WMI

>

> "Dan" <kgh@kg.com> wrote in message

> news:eMyB569wHHA.1184@TK2MSFTNGP04.phx.gbl...

>> Thanks!

>>

>> I've looked all over Google on how to pull an enviroment variable value

>> from a WMI Filter. I am not having any luck. Do you have any examples

>> of how to do this?

>>

>> Thanks

>>

>>

>> "ThomasT." <ThomasT@nospam.nospam> wrote in message

>> news:uMAwuQ9wHHA.3816@TK2MSFTNGP05.phx.gbl...

>>> You can use the environment variable : %CLIENTNAME%

>>> Go to a DOS prompt and type SET, you will see a lot of interestering

>>> variables

>>>

>>> Good luck

>>>

>>> ThomasT

>>>

>>>

>>> "Dan" <kgh@kg.com> wrote in message

>>> news:u6oRjK9wHHA.4076@TK2MSFTNGP06.phx.gbl...

>>>> Hi everyone,

>>>>

>>>> We are looking for a way to have the server get the client PC name from

>>>> the

>>>> terminal session (the PC connecting thorough Remote Desktop). Can

>>>> anyone help me with a WMI Filter for this?

>>>>

>>>> We have set up a policy so that when the user starts a new terminal

>>>> session 1 of 2 things happen. They see the full desktop or they see an

>>>> application that automatically loads up. This is dependant on the

>>>> computer the user is calling in with from Remote Desktop.

>>>>

>>>> Thanks

>>>>

>>>>

>>>

>>>

>>

>>

>

>


×
×
  • Create New...