Jump to content

need a list of TS Clientname


Recommended Posts

Guest אורן
Posted

in Terminal Services Manager it is possible to view a list of all sessions

including the CLIENTNAME (Computername).

 

Is it possible to make this list using a command line App?

 

Thanks,

 

Oren R.

  • Replies 2
  • Created
  • Last Reply
Posted

Re: need a list of TS Clientname

 

Hi,

 

Google for a tool named tsecmd.exe and test it on one

of your test servers to see if it meets your requirements.

I believe the command you want would be:

 

tsecmd se

 

The other alternative would be to write your own program

that calls the Terminal Services API functions:

 

Terminal Services API Reference

 

http://msdn2.microsoft.com/en-us/library/aa383468.aspx

 

-TP

 

אורן wrote:

> in Terminal Services Manager it is possible to view a list of all

> sessions including the CLIENTNAME (Computername).

>

> Is it possible to make this list using a command line App?

>

> Thanks,

>

> Oren R.

Guest אורן
Posted

Re: need a list of TS Clientname

 

This is exactly what i needed. Thank a lot. :-D

BTW, this is how i've used this command:

for /f "skip=1 tokens=3" %a in ('quser') do @tsecmd si -c %a | find /i

"clientname"

 

again, Thanks a lot.

 

Oren R.

 

 

"TP" wrote:

> Hi,

>

> Google for a tool named tsecmd.exe and test it on one

> of your test servers to see if it meets your requirements.

> I believe the command you want would be:

>

> tsecmd se

>

> The other alternative would be to write your own program

> that calls the Terminal Services API functions:

>

> Terminal Services API Reference

>

> http://msdn2.microsoft.com/en-us/library/aa383468.aspx

>

> -TP

>

> אורן wrote:

> > in Terminal Services Manager it is possible to view a list of all

> > sessions including the CLIENTNAME (Computername).

> >

> > Is it possible to make this list using a command line App?

> >

> > Thanks,

> >

> > Oren R.

>

>


×
×
  • Create New...