Results 1 to 10 of 27

Thread: Terminal Services Computer Name

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #27
    Join Date
    Feb 2009
    Location
    Cayman
    Posts
    2,784

    Default Re: Terminal Services Computer Name (WTSQuerySessionInformation)

    Quote Originally Posted by Stephen W. Meeley View Post
    Mike,

    Windows Server 2016 Datacenter, I got the same...
    Code:
    CLIENTNAME=SWM-M3800  <-- this is me!
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=EC2AMAZ-LTFJM2D

    Oh, look what I started .

    eventually, as there are no other people running in a VM we are letting it slide. Hell, it works.

    Single least-professional line of code I have ever committed, and surrounded by 6 lines of explanation

    Code:
    if (stermid="DAVE") move "JS1Y" to termid.terminalID  //if it's running in a VM, fake it
    may put that on my wall of shame alongside my $0.04 refund cheque from the insurance company.
    Last edited by DaveR; 21-May-2020 at 12:51 PM. Reason: lack of an apostrophe :P
    test? it compiles doesn't it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •