Windows Server TechCenter > Windows Server Forums > Terminal Services > Windows 2008 Terminal Server--How Do I Specify a Default Domain?
Ask a questionAsk a question
 

AnswerWindows 2008 Terminal Server--How Do I Specify a Default Domain?

  • Tuesday, October 06, 2009 7:03 PMfrivers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Even though I've provided training documents to my users, no one prints them out or ignores them and I'm getting the same help desk tickets and calls about logging in to RemoteApp.  Currently users have to log in to the server using the format "DOMAIN\username".   If they don't do that, the server tries to log them in as a local user.  What GP setting can I use to set a default domain for each TS in the farm?
    •  

Answers

  • Wednesday, October 14, 2009 6:11 AMMoshe Z [MSFT]MSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    Actually, what you are witnessing is the expected behavior.
    RemoteApp currently doesn’t support pre-population of the “USER” RDP field.
    This may change in W7 SP1.

    As per the domain problem, are the clients and servers not on the same domain? Do they logon to the server itself, and not to the domain?

    If you are using clients that support it, please try saving the creds.
    After one successful login, the right credentials (including domain/user) should be stored locally.
    (you can do the first connect to a full desktop session which supports the “USER” RDP field)

    Cheers,
    Moshe 

    Disclaimer:

    “This posting is provided "AS IS" with no warranties, and confers no rights”

     

All Replies

  • Wednesday, October 07, 2009 4:14 AMVikash BuchaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
  • Wednesday, October 07, 2009 1:54 PMfrivers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I tried adding:

    username:s:<domain>\

    To the "Custom RDP Settings" replacing <domain> with the name of my domain and it doesn't like it.  I get an error when I try to apply it. 
  • Wednesday, October 07, 2009 3:08 PMVikash BuchaMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    What error do you get?
    Thanks, Vikash
  • Wednesday, October 07, 2009 4:39 PMfrivers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I get an error box that shows me that there's a problem with the setting.
  • Wednesday, October 07, 2009 6:05 PMKristin L. GriffinMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    Well,

    I can add

    domain:s:alpineskihouse

    to an RDP file and it works fine.  I have not been able to add this to RemoteApp Manager.

    I get: "the following RDP settings are not recognized."

    Still playing with this....hopefully more to come.
  • Wednesday, October 07, 2009 6:42 PMKristin L. GriffinMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    ok more testing. I compared the RDP file settings from:

    RDP FILE A

    - this was created just using mstsc, and saving the RDP file and then opening it in notepad.

    If I add the username:s or the domain:s settings to this file, and save it, I can run it and it works as expected (ie, the username and domain are filled in).

    RDP FILE B

    - this was created using RemoteApp Manager. I opened this file up in notepad and added the two settings, and whe I run this file, they are ignored.

    Additionally, we know that we cannot add them via RemoteApp Manager (per the errors expressed in this thread).

    So I started running through all the settings comparing the two files and removing entries / changing them to see what affected this.

    It turns out that if I remove the following lines from RDP FILE B then the username and domain settings are no longer ignored:

    • remoteapplicationmode:i:1
    • alternate shell:s:||EXCEL
    • remoteapplicationprogram:s:||EXCEL
    • remoteapplicationname:s:Microsoft Office Excel 2007
    • remoteapplicationcmdline:s:


    So what this tells me is that IF you have an RDP file set to pull up a remoteApp, then certain RDP file settings are ignored / not compatible with RemoteApps.

    Mighty MSFT, can you comment on this?

    Hope this helps,

    Kristin L. Griffin

    Co-Author of the Windows Server 2008 Terminal Services Resource Kit (and a SUPER BIG fan of the Microsoft RDV Team!!!)
  • Wednesday, October 07, 2009 8:35 PMfrivers Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    So I found a bug??? 
  • Wednesday, October 07, 2009 8:54 PMKristin L. GriffinMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    LOL

    Not everything that is unexpected is a bug.  Could be a very logical explanation.....but we will see.....:)

    But, I am looking into this further. I will get an answer and get back to you. Hang tight!
    Hope this helps,

    Kristin L. Griffin

    Co-Author of the Windows Server 2008 Terminal Services Resource Kit (and a SUPER BIG fan of the Microsoft RDV Team!!!) 
  • Wednesday, October 14, 2009 6:11 AMMoshe Z [MSFT]MSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    Actually, what you are witnessing is the expected behavior.
    RemoteApp currently doesn’t support pre-population of the “USER” RDP field.
    This may change in W7 SP1.

    As per the domain problem, are the clients and servers not on the same domain? Do they logon to the server itself, and not to the domain?

    If you are using clients that support it, please try saving the creds.
    After one successful login, the right credentials (including domain/user) should be stored locally.
    (you can do the first connect to a full desktop session which supports the “USER” RDP field)

    Cheers,
    Moshe 

    Disclaimer:

    “This posting is provided "AS IS" with no warranties, and confers no rights”

     

  • Wednesday, October 14, 2009 10:02 AMRobert Maijen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    Isn't it possible to add the registry key for DefaultDomainName on all Terminal Servers??

    Robert
  • Friday, November 06, 2009 11:49 PMAmro Elshahat Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Kristin,

    Adding the defaultdomainname key on the terminal servers does not do the trick. I even added it on the server running the gateway and still no joy. The gateway login page comes blank and does not even store previous credentials, which makes sense except for the domain part. Do you have any updates?

    Best Regards,

    Amro
  • Friday, November 06, 2009 11:55 PMAmro Elshahat Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Moshe,

    So what you are suggesting is that there is no way or workaround for setting the domain name in remoteapp, at least currently?

    Best Regards,

    Amro
  • Saturday, November 07, 2009 7:57 PMrobinwilson16 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Kristin

    Thanks for all your work in trying to find workarounds for everyone.

    It does seem strange that RemoteApp does not support the pre-population of the domain part.

    My ideal solution would be that users would only need to log on once via the web interface but this double logon does confuse everyone when in all other locations the domain is not required.

    I'm hoping Microsoft can address this in a future release as I can't really see any potential issue with allowing the default domain to be set as you can do it with everything else such as OWA.

    This seems to be its only downfall as RemoteApp works really well apart from this.

    Thanks
    Robin
    Robin Wilson