Quantcast
Channel: Forum Remote Desktop Services (Terminal Services)
Viewing all 27650 articles
Browse latest View live

Temp local folder for random users

$
0
0

Hi All,

An environment of RDS servers and broker, OS version Windows Server 2016 Standard with roaming profiles,

random users sometimes are signing in and creating c:\users\temp* folder,

once full log off is preformed the next login will probably be valid even to the same server,

I can attach GPO result summary if needed,

any ideas?

thanks alot,

Noam.



Microsoft remote desktop 10 connect to the wrong environment

$
0
0

I am using Microsoft remote desktop connection client for mac version 2.1.1, and when I am connecting to the server I first input the address and then I can select the user from the second window, but when I use the Microsoft remote desktop 10 I always login in the wrong environment because it does not give me the option to choose the user and it always log in to the first account in the list. how can I achieve that in the new software? Thank you



Remote desktop connection is crashing with an orange screen

$
0
0
Until yesterday everything worked fine. Now the Remote Desktop displays the two screen shots of the 2 computers I am trying to connect to. However, when I click on the images the second window opens with an all orange screen and then both windows crash in a few seconds.
My desktop is running Win10 pro Version 1803, build 17134.590
The main server I am trying to connect to is Win Server Essentials 2016, Version 1607, build 14393.2724
The other computer I am trying to connect is a Win7 Pro, version 6.1, build 7601, with Service Pack 1.
All of the computers are up to date with their Windows updates. They have all been restarted.
I checked the services and all of the automatic ones are running.

RemoteApp Disconnected

$
0
0

We have one user who gets this "RemoteApp Disconnected" very frequently.

RDS brokers in multiple regions - where to put SQL

$
0
0

Hi All,

I'm designing a multi-region RDS 2016 farm where 2 of the regions have very stable internet connections but the 3rd does suffer from intermittent internet outages. The office is on an island in the Carribean and the telco thinks nothing of cutting the connection to the island for a few hours for maintenance every so often so there's not much I can do about that. I also have to think about hurricanes and the odd ship that hits the undersea cable. As if things weren't difficult enough :)

Currently, all users at all offices are using PCs but we are introducing RDS with the long term plan to have everyone using RDS session-based desktops, also available externally. There are many reasons for this, including an ever-growing population of remote users.

The main user population is in the Carribean but our SQL databases for critical in-house applications, Exchange and a few other important apps run out of our main data centre located in a very stable environment but will all be moving to Azure (US) and O365 this year.

My preference would be to put all the RDS environment (brokers, GW, Web, RDSH etc) in our main data centre or Azure as our critical data and apps aren't accessible during an internet outage anyway but I've already lost that argument.  So that's enough background.

To ensure users in the Carribean office can launch an RDS desktop session from a thin client when they have no internet connection, along with having local RDSH servers, I'll have to have the brokers in HA, one in the Carribean, the other in our main data centre. As this will require SQL, will the broker in the Carribean office still function should it not be able to communicate to the SQL DB in our main data centre? is the broker clever enough to cache the settings locally and continue to work or will it cease to handle any connections when the DB is unavailable?

If it will not function without a continuous connection to the DB, I guess my only option would be to have the SQL DB in HA group with both SQL servers servicing their local brokers. I'd really like having to avoid paying for 2 SQL licenses.

Thanks

Conor


Client unable to RDP from Windows 8, 10 over RDP Gateway sitting behind a load balancer

$
0
0

Hi,

I have a simple setup of RDP Gateway sitting behind a AWS Elastic load balancer (HTTPS). I am able to connect through this gateway when I am connecting using an older OS, windows xp, windows 7. But Anything above Windows 7(SP1), Windows 8, 10, are not able to get through the gateway. When I look at the event logs I can see the below events. RDPClient_Gateway: An error was encountered when transitioning from AAStateInitializingTunnel to AAStateError in response to 6 (error code 0x800706BA).

RDPClient_Gateway: An error was encountered when transitioning from AAStateCreatingOutChannel to AAStateError in response to 3 (error code 0x800706BA).

Its funny that if I remove the load balancer, and try to connect the server directly, then I am able to connect to the server.

From wireshark I can see that its the client which is terminating the connection.

Could you please tell me what needs to be done, so I can make the RDP Gateway work with windows 8 & 10, with a load balancer between.

PS: The load balancer, is only for SSL termination, so I can use a proper CA signed certificate.

Regards,

Naveen Naik

Using RDP Gateway - remote computer uses NLA but domain controller cannot be contacted

$
0
0

Hi,

This evening I got the error remote computer uses NLA but domain controller cannot be contacted... however I closed the error down, tried again and got straight on.

Could it just simply be a blip? I was using our Server 2016 RDP gateway to get onto my Windows 10 machine.

To confirm I have then gone on to all 3 of our DC's and run a DC diag, and all come back fine...

Deploy Web Client with Session Hosts in Sub Domain

$
0
0

Hello there!

Tha last couple of days I created a Lab-Environment with 1 DC, a Remotemanger with Gateway, Licencing and Broker Role installed and a Session Host. After a little Troubleshooting everything worked great.

After that I created a second DC and a Subdomain and a second SessionHost as well. The Second SessionHost (SessionHost2) joined the Subdomain. I managed to add the SessionHost2 to the Remotemanger in the rootdomain and installed the Sessionhost Role.

At that point, I'm pretty much stuck. My users from the sub domain can connect via Web Client without any problems, but I can't open any apps from my collection. I get this error pretty much constantly:

2019-02-08T09:40:41.703Z Connection(ERR):

The connection generated an internal exception with disconnect code=ConnectionBroken(8), extended code=<null>, reason=WebSocket closed with code: 1006 reason: Thrown in thread 396952 at: websockettransport.cpp(330) Call Stack: at Rjb at Ojb at rp at Ugd


Now I tried pretty much everything I could think of. This all happens in the same Subnet with Windows Firewalls turned off.

Is this some kind of missing priviliges of the Subdomain-Users to authorize against the remotemanger in the root domain? Or is there a general Problem with a remotemanger in another domain as the session host?

For explanation: Iur company wants to offer hosted services in the future and wants to make sure, that different customers absolutely can't establish any connection to another company's hosts. If there is another way to acomplish that I would be very happy.

Thank you very much for your interest and input !


Server 2012 R2 Remote Desktop Services Deployment

$
0
0

Good day Everyone,

So, the agreement between my company and another was to use terminal services for their users to connect and use the published apps, which was fine to test out during the 60day trail period. Complications occurred when the white-listing of specific sites stopped working and we had to find ways around this, which meant that by the time things got sorted, the 60 day trail period you get when installing RDS role, expired. 

The company doesn't want to purchase any CAL's for their 2/3 users (users is expecting to grow, hence terminal services) and requested that terminal services be removed for the time being. This is fine, because I can just uninstall the RDS role form server manager. 

The problem is, even after uninstalling, RDS still appears in the quick access on the left in server manager. I am not an expert on RDS or terminal services, but i would expect it to be removed. But this isn't the real problem, the problem is, even after removing the role, windows still complains about there not being a license configured in the license manager, which means that users can't RDP to the computer. I've been searching the internet and cannot find a solution. 

I already tried going to regedit HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp and selecting decimal and setting it to 3389. 

My understanding is that server is for some reason still sending incoming rdp requests to the session host? And that it's checking for a license on the license manager since the temp license expired.. Not sure what the process is that it's following. 

I just want to reinstate that default RDP, so that users can atleast connect to the machine again. 

I saw a fix where a user said you must go to the session host config and create a new RDP-Tcp listener, but i have no session host server added, and cannot add one. 

Any help would be appreciated please. 

Thanks

Desktop shortcut in RDWeb portal constantly disappearing after adding an additional RD Connection Broker for high availability.

$
0
0

Hello,

We have noticed an issue after adding an RDCB (Remote Desktop Connection Broker) to our existing collection for high availability. One thing to note is that all of our RDS servers are running Windows Server 2016 Standard.

Here is what our situation was before adding in the RDCB:

  • Running one RDCB
  • Running one RDWA (RD Web Access)
  • Running one RDG (RD Gateway)
  • Running three RDSH (RD Session Host)
  • All three of the RDSHs are set up to publish RemoteApps AND desktops. This was done by editing the ShowInPortalvalue from 0 to 1 in the below registry key. This made it so the desktop shortcut would appear in the RDWeb portal.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\CentralPublishedResources\PublishedFarms\(collection name)\RemoteDesktops\(collection name)

  • We found that if we ever made changes to our RemoteApps (i.e. publishing a new remoteapp, unpublishing one, etc.) then that above registry value would default back to 0, thus resulting in the Desktop shortcut in the RDWeb portal to disappear. We were okay with this because we rarely made changes to our remoteapps, and it was just a part of our procedure to add the desktop shortcut back in.

Now comes the interesting part. Here is our situation now:

  • Running two RDCBs for high availability.
  • Running one RDWA (RD Web Access)
  • Running one RDG (RD Gateway)
  • Running three RDSHs (RD Session Host)
  • Whenever we make ANY changes to ANYof our RDS Collection settings, that ShowInPortal value defaults back to 0. The strange thing is that it doesn't happen immediately. We find that theShowInPortal value defaults back to 0 after a short amount of random time (5-15 minutes). And when we say any changes, we really mean it. Something as simple as disallowing new connections to any of our RDSHs (so that we can patch servers during business hours), causes the ShowInPortal to revert to 0. This was never the case before we added a second RDCB for high availability.
  • Everything worked great with one RDCB. As soon as we added the second RDCB, then we noticed this issue.
  • When the issue does occur, we have to change the ShowInPortal value to 1 on both RDCBs for the desktop shortcut to appear in the RDWeb portal

Now we're in a position where our RDS Collection is very fragile. Any setting we touch causes thatShowInPortal value to revert to 0 and it's a pain in the butt. As a hacky way to work around this issue, we've set up a scheduled task that automatically sets theShowInPortal value to 1 every single minute. This, obviously, is not a solution we want to continue with and is more of a band-aid approach until we can find the root issue.

So my question becomes, does anyone know why adding in a second RDCB for high availability cause theShowInPortal value to reset after any change we make? Again, this was never the case before when we had only one RDCB.

Windows Search changes in Server 2019 RDS

$
0
0

Hi,

So nothing like being on the cutting edge......

I have been testing Server 2019 RDS and so-far-so-good apart from an issue with the Windows Search Service.

It appears that in Server 2019 each user gets their own search database EDB file in their profile path (appdata\roaming). e.g.

C:\Users\username\AppData\Roaming\Microsoft\Search\Data\Applications\S-1-5-21-3901271148-1553943383-1671037523-1629\S-1-5-21-3901271148-1553943383-1671037523-1629.edb

When they log on and log off; this is connected to the search service and the following event log is generated

Source:ESENT
EventID: 326
SearchIndexer (10896,D,50) S-1-5-21-3901271148-1553943383-1671037523-1629: The database engine attached a database (3, C:\Users\username\AppData\Roaming\Microsoft\Search\Data\Applications\S-1-5-21-3901271148-1553943383-1671037523-1629\S-1-5-21-3901271148-1553943383-1671037523-1629.edb). (Time=0 seconds)

Unfortunately it appears that this process is not very stable and on some logons the database in the users profile does not attach and the following error is generated

Source:Search
EventID: 3057
The plug-in manager <Search.TripoliIndexer> cannot be initialized.
Context: S-1-5-21-3901271148-1553943383-1671037523-1629 Application

Source:Search
EventID: 3028
The gatherer object cannot be initialized.
Context: S-1-5-21-3901271148-1553943383-1671037523-1629 Application, SystemIndex Catalog
Details: The specified object cannot be found. Specify the name of an existing object.  (HRESULT : 0x80040d06) (0x80040d06)

And a few more similar but related errors....

No subsequent logon/off will succeed in attaching the database until the Windows Search service is restarted

I am not testing with User Profile Disks or Roaming Profiles
There is no AV on the server

Any ideas?

Andy



Andrew



MsTsc ActiveX control hangs on application shutdown

$
0
0

Hello!

I use MsTsc ActiveX control to add RDP functionality to my WPF application. The control is hosted inside WinFormsHost control. My application hangs on shutdown from time to time. Here is the stacktrace of the hanging thread:

win32u!NtUserMsgWaitForMultipleObjectsEx+0xc
USER32!RealMsgWaitForMultipleObjectsEx+0x78
USER32!MsgWaitForMultipleObjectsEx+0x63
mstscax!PAL_System_CondWait+0xf2
mstscax!CTSThreadInternal::ThreadSignalWait+0x20
mstscax!CTSThread::internalThreadMsgLoop+0x20f
mstscax!CTSThread::internalThreadWaitForMultipleObjects+0x87
mstscax!CTSThread::ThreadWaitForMultipleObjects+0x1ab
mstscax!CTSThread::ThreadWaitForSingleObject+0x26
mstscax!CTSWin32CoreApi::SyncForceShutdownOnRCV+0x1d7
mstscax!CTSWin32CoreApi::DestroyWin32Core+0x108
mstscax!CMsTscAx::Terminate+0x167
mstscax!CMsTscAx::ProcessWindowMessage+0xd2
mstscax!ATL::CWindowImplBaseT<ATL::CWindow,ATL::CWinTraits<1442840576,0> >::WindowProc+0x6f
atlthunk!AtlThunk_0x00+0x36
USER32!_InternalCallWinProc+0x2b
USER32!UserCallWinProcCheckWow+0x3aa
USER32!CallWindowProcW+0x8d
System_Windows_Forms_ni+0x7cbc91
System_Windows_Forms_ni+0x7cbafc
System_Windows_Forms_ni+0x1b77a3
System_Windows_Forms_ni+0x1b7735
System_Windows_Forms_ni+0x1b7660
0xf177066
USER32!_InternalCallWinProc+0x2b
USER32!UserCallWinProcCheckWow+0x3aa
USER32!DispatchClientMessage+0xea
USER32!__fnDWORD+0x49
ntdll!KiUserCallbackDispatcher+0x4d
win32u!NtUserDestroyWindow+0xc

Is there a way to debug this issue? MsTsc version is 10.0.17134.

Regards,

Igor.

Need helping finding SPLA information.

$
0
0

I'm new to the windows server world and have been asked to check if any of them use SPLA. How would I do this?

I checked to see if any of them run RDS services and one of the servers does as well, how can I check CALs?

delegate permission for enable/disable host

$
0
0

I have a typical RDS setup. I have a connection broker and 5 hosts. I manage the system. One of the hosts is just for our dev environment. We are mostly using remoteapp.

I want to delegate permission so our dev users can only enable/disable an RDS host to accept new connect for a particular host.

I don't want to give them the ability to do enable/disable the rest of the production hosts. They will be doing this through the gui or through PowerShell.

thanks!

UVHD-template.vhdx is gone! Recreate the template Windows 2016

$
0
0

Hi All,

I have following problem.

Somehow and I don't now why, the UVHD-template.vhdx is gone.

Is there a way to recreate this template disk?

Thanks in advance

Jean


Remote Desktop RDS - how to prefill RDP settings?

$
0
0

Good afternoon all;

I have an issue and not sure how to complete this.

2012 R2 for all servers
2 connection brokers in HA, 1 license server, 1 web access server, and 5 session hosts

There are 2 session collections on there. One of them is very old and was setup by someone else. this one works fine and when people click on the RDP full desktop icon ( Not a published Remote Desktop MSTSC Remoteapp). They get all settings prefilled correctly, RDP to the connection Broker farm name, with the RD gateway...it all works.

Put in a new session collection to 2 new session hosts that were put up for this purpose.

Everything works EXCEPT the prefilling of RDP settings, as of right now they come in blank.
How do I get this to be prefilled like the old session collection?

Every time I try to modify the deployment using

Set-RDsessionCollectionConfiguration -CollectionName XXXXX -CustomRdpProperty "full address:s:broker.example.com gatewayhostname:s:rdp.example.com" -ConnectionBroker ZZZZZZ

Whenever I try to apply this it looks like its going to apply but gives
You cannot call a method on a null-valued expression 
"At line:1 char:1"

Can anyone help me get through this? or some other way to apply those settings? I was poking at this for hours today and can't find a reason why this is not applying.

I even tried copying the custom RDP session deployment configuration reg keys for the old one into the new session but that didn't work.


Goofball


Failed to create KVP sessions string. Error Code 0x8007007A

$
0
0

I have two RDS servers running Server 2012, and since a couple of days users are reporting they get disconnected often. In the eventlogs, I found a couple of events where a user was disconnected without further information. I also found a lot of "Failed to create KVP sessions string" events. I couldn't find any relevant information about this event, but it appears the most at moments when users are being disconnected from the RDS server.

This is the event:

Log Name:      Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational
Source:        Microsoft-Windows-TerminalServices-RemoteConnectionManager
Date:          3/12/2013 10:01:26 AM
Event ID:      1152
Task Category: None
Level:         Error
Keywords:     
User:          SYSTEM
Computer:      TS02.contoso.com
Description:
Failed to create KVP sessions string. Error Code 0x8007007A
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-TerminalServices-RemoteConnectionManager" Guid="{C76BAA63-AE81-421C-B425-340B4B24157F}" />
    <EventID>1152</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x1000000000000000</Keywords>
    <TimeCreated SystemTime="2013-03-12T09:01:26.771581100Z" />
    <EventRecordID>11344</EventRecordID>
    <Correlation />
    <Execution ProcessID="836" ThreadID="840" />
    <Channel>Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational</Channel>
    <Computer>TS02.contoso.com</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <UserData>
    <EventXML xmlns="Event_NS">
      <Param1>2147942522</Param1>
    </EventXML>
  </UserData>
</Event>

Does someone have any idea what might cause this error? Thanks!

Publish applications with RemoteApp from network drive

$
0
0

Hello!

I need help with the following scenario ... I currently have a Terminal Services server that contains an application, which must be used through a network drive, users access remote desktop media to the server and use the shortcuts of the applications that point to the shared unit, for example, the X :

Now it is required to do the same but through RemoteApps, but when trying to add the path of the applications, from the network unit, I do not or can not, from C: if it does it without problems, but I need to add it to point to the network unit ... how could I do this?

Thank you

Event 1309 ASP.NET

$
0
0

Hello,

We have a Windows Server 2016 box that is being used for users to remote in to their computers by way of RDWeb. Every time someone goes to the website to login we we get the following Warning logged in events:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/26/2018 10:49:47 AM 
Event time (UTC): 10/26/2018 2:49:47 PM 
Event ID: 00f90daa62f94580925cf71413f5874d 
Event sequence: 5 
Event occurrence: 1 
Event detail code: 0 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/RDWeb/Pages-6-131850389869549350 
    Trust level: Full 
    Application Virtual Path: /RDWeb/Pages 
    Application Path: C:\WINDOWS\Web\RDWeb\Pages\ 
    Machine name: XXXXXX 
Process information: 
    Process ID: 5096 
    Process name: w3wp.exe 
    Account name: IIS APPPOOL\RDWebAccess 
Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object.
   at Microsoft.TerminalServices.Publishing.Portal.FormAuthentication.TSFormAuthTicketInfo..ctor(HttpContext objHttpContext)
   at ASP.en_us_default_aspx.<GetAppsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.UI.PageAsyncTaskManager.<ExecuteTasksAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.UI.Page.<ProcessRequestAsync>d__554.MoveNext()

 
 
Request information: 
    Request URL: https://XXXXXXXXX:443/RDWeb/Pages/en-US/Default.aspx 
    Request path: /RDWeb/Pages/en-US/Default.aspx 
    User host address: XXXXXXXX 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: IIS APPPOOL\RDWebAccess 
 
Thread information: 
    Thread ID: 115 
    Thread account name: IIS APPPOOL\RDWebAccess 
    Is impersonating: False 
    Stack trace:    at Microsoft.TerminalServices.Publishing.Portal.FormAuthentication.TSFormAuthTicketInfo..ctor(HttpContext objHttpContext)
   at ASP.en_us_default_aspx.<GetAppsAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Web.UI.PageAsyncTaskManager.<ExecuteTasksAsync>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.UI.Page.<ProcessRequestAsync>d__554.MoveNext()
Custom event details: 

Any ideas how to fix?


Small or missing mouse pointer in RDP session: SOLVED

$
0
0

Configuration

  • Windows 10 client
  • High DPI screen (3840x2160). Using Windows 10 scaling to 200%
  • Two additional external NORMAL-DPI screens 1920x1080
  • Windows 10 RDP (version 10.0.10586)
  • Connection target: Windows Server 2008R2

Problem

DPI scaling in Windows 10 is way better than it has been but with room for improvement. Connecting to other machines (in this case Windows Server 2008R2 SP1):

1) On the high DPI screen, full screen.  Displays at the full resolution, 100% scaling so everything is tiny and it's close to unusable.

2) On the normal DPI screen, full screen. Displays at the full resolution for the monitor hardware (1920x1080) everything is the correct size except the mouse pointer is TINY.  What's worse, the vertical I-beam text cursor doesn't appear at all (I suspect because an I-beam bitmap for the cursor set that small doesn't exist).  Editing any kind of text is unusable because you lose the mouse pointer when hovering over those areas.

Solution

Instead use Remote Desktop Connection Manager (RDCM) 2.7 but with "Disable display scaling on high DPI settings" UNCHECKED.  Checking it will produce the same results as with RDP.

This time:

1) On the high DPI screen, full screen.  Displays at the full resolution, but with correct 200% scaling so everything looks as expected. One minor issue is that if that screen has a windows toolbar, "full" screen doesn't quite fit and we end up with scrollbars.  This can be fixed by auto hiding or removing the task bar from that screen.

2) On the normal DPI screen, full screen. Displays at the full resolution for the monitor hardware (1920x1080) everything is the correct size but this time the mouse pointers are the expected "normal" size. Works completely as expected.

Comments

The RDP client has come a long way recently but still has a way to go until it properly supports the scenario as mentioned above. I haven't tried but believe that connecting to newer windows OSes is fine.

Viewing all 27650 articles
Browse latest View live




Latest Images