Quantcast
Channel: Fórum Remote Desktop Services (Terminal Services)
Viewing all 26837 articles
Browse latest View live

Server 2008 R2 logs off users at login

$
0
0

We have an issue that just started happening today on our standalone Windows Server 2008 R2. There is no domain it's just using local users and groups when a particular user tries to login it goes through the process and then immediately logs them off before the desktop is reached.

The following errors are logged in the event viewer:

Event ID 5: source: Kernel General{Registry Hive Recovered} Registry hive (file): '\??\C:\Users\username\ntuser.dat' was corrupted and it has been recovered. Some data might have been lost. followed by a event id 7002: User Logoff Notification for Customer Experience Improvement Program

If I setup a brand new user they have the same issue, if I then add the existing user or newly created user to the administrator group they can both logon, remove them from the group and they can no longer logon anymore.

I have run a scandisk, sfc /scannow, rebooted the server, disabled customer experience improvement, If I try to run gpedit.msc I get "Administrative templates encountered an error while parsing incorrect document syntax" I get a half dozen of these before it allows me in. I tried to delete the users profiles and copy over another working users ntuser.dat but that doesn't help. All terminal server licensing is correct and working.

Leaving these users as admins is not a solution for obvious reasons, any ideas?


Terminal Server Event ID 20499 "Remote Desktop Services has taken too long to load the user configuration from server

$
0
0

Hi all

In TERMINAL SERVER this alert appears on every user who logs on:

Event ID 20499 "Remote Desktop Services has taken too long to load the user configuration from server \\DC for user username"

After this warning comes:

Event ID: 1296 -- Description: Remote Desktop Connection Broker Client failed while getting redirection packet from Connection Broker.User : domain\username

Error: Remote Desktop Connection Broker is not ready for RPC communication.

Is it something to treat it?

Users are able to connect

RDS Farm unable to login

$
0
0

I created another collection in my RDS Farm and added a single RDS Host. The idea here is that users will use the desktop of this machine not published apps.

I created the collection using a single security group which I created just for this collection

I then added one user to the security group (they are a member of no other groups except domain users)

I then attempted to remote login through the connection broker and get the following error. 

"The connection was denied because the user account is not authorized for remote login"

It appears that the connection broker is not passing the login through to the session host, but instead treating it as if it wants to login to the connection broker itself. Not sure what I have done wrong here. It clearly says on server manger "Remote Desktop is published for the users of the collection."

Note the user can remote directly to the RDS host and login, but the point is to have it go through the broker as it's IP is the only one available outside the LAN. 



Lee

Windows Search EDB file very large on Server 2012 R2 RDS

$
0
0

Hello experts. 

We have hundreds of users on 2012 R2 RDS session host servers and have a non-stop problem with the Windows Search .edb file growing extremely large and filling up all disk space. 

This looks to be a major problem for IT departments everywhere, based on a few seconds of searching around. 

The main items we have in place to try and combat this problem:

1.) We have enabled the "DisableSearchBackoff" and added the Corecount registry key found in this post:

http://www.cyberdrain.com/?p=116

2.) We have a batch file that runs the commands found below on a nightly basis, which defragments the search index database. 

https://support.microsoft.com/en-us/kb/2838018

3.) We have moved the index from C volume to dedicated drives. 

The problem is, no matter how much space we add, the files just keep growing. Is the only resolution to add a massive volume to each session host for this file to grow as large as it wants? I have seen many threads on various forums where people have reached out to Microsoft support on multiple occasions for this issue and the work around is to rebuild or defrag the database. I know there are lots of these threads out there but I'm curious if anyone has found a solution yet. Thanks in advance. 

RDS 2016 - HTML5 Client certificate error

$
0
0

Hi,

Ive recently deployed the HTML5 Web Client, at an existing RDS 2016 setup, using this guide:

https://custominterfacesolutions.com/html5-web-client-microsoft-remote-desktop-services-2016-steps-install-rd-web-client/

The setup contains 1 x RDWeb server, 2 x RDGW and 2 x Connection brokers.

A single public trusted wildcard certificate is used, for the entire RDS setup, containing the domain name, that the servers is belonging to.

Im able to login to the Web Client, and see all the published applications, that is available.

But when trying to connect, i then get an certificate error, containing the name of the Remote Desktop Session host...

Ive managed to find the certificate at the Session Host, containing the same thumbprint as the one on the picture.

Added the certificate to the trusted root cert auth, across all the frontend RDS servers (Web,GW,CB) - but that didnt help.

What seems to be the problem, since i cant find any solution to this error?

Windows Server 2012 R2 showing a blue screen and no desktop!

$
0
0

Hi

We have a Windows Server 2012 Standard R2 which is used merely as a file server. This runs on a Lenovo TS140 ThinkServer with 32GB RAM and RAID 5.

The server just shows a blue screen with nothing else, no desktop or any text whatsoever, bar the mouse cursor on the screen. The mouse cursor moves by moving the mouse. Pressing Alt-Ctrl-Del will not launch the Task Manager. CTRL-Esc will not launch the"Start" menu, nor does the "Windows" key on the keyboard.

The server is actually functional and works, as everyone can access our "Access 2013" database which runs on SQL Server 2014 Standard. Pressing the "Caps Lock", "Num Lock" is also responsive. I don't really want to reset the server by powering it off and back on again, as I'm not sure what the consequence may be.

Has anyone come across this anomaly?

Thanks for taking the time to read this post.


 


Connected Users not showing up in Remote Desktop Services

$
0
0
We just setup a new Windows Server 2016 as a Terminal Server. Our users are able to use Remote Desktop with no issues. However, I am unable to see the connected users in Server Manager. I was able to always view connected users in Server 2008. Should I be looking under Server Manager\Remote Desktop Services\Collections and then look at Connections? Or am I looking in the wrong place? Thank you.

Client issues related to search indexing

$
0
0

We have a hosted Remote Desktop Services environment running on Server 2016 Standard, and have had no end to issues seemingly caused by the search indexing service. The customer has about 1.8 TB of data that they need indexed (I'm not sure if the amount of data is playing a role in the issues we're having). We are using User Profile Disks for the end users. There are several issues the end users are experiencing when opening/disconnecting sessions:

  • End users get "Remote desktop services temporarily unavailable" errors when trying to open a session
  • End user sessions hang on Signing Out, leading them to disconnect the session and try to open a new one which they are unable to do and thus are unable to access the server
  • Slow performance

At any given time, the above issues are "fixed" if we restart the search indexing service (for a short while until another end user runs into one of the problems again). We are also unable to get the search indexing service to restart gracefully through the Services list, and are almost always forced to use the command line and taskkill to forcefully end the service and let it restart afterward.

We've already made some tweaks to the directories that are included in the indexing, and have excluded most user data from the index except for Outlook data. I can provide additional details if necessary.

Any help with this would be greatly appreciated, these issues are starting to drive me up the wall.




Password expired, cannot access to dedicated server through RDP, Windows Server 2016

$
0
0

Today I tried to login to my dedicated server (Windows Server 2016) via Remote Desktop and it tells me that my password has expired. However it doesn't allow me to change the password.
The dedicated server is hosted in Canada (Kimsufi/OVH) and I'm in Argentina.
I cannot change the password locally. Also the server seems to be using NLA as I get an error if I try to login with NLA disabled in my client.
Besides RDP the other way I can access the server is through rescue mode (linux).

Is there any way to disable NLA or change my password remotely or from Linux rescue?

Thank you

Session IDs not being released

$
0
0

Hi,

Thanks in advance for taking the time to assist with this issue.

We are running several Windows Server 2008 R2 servers with RDS.  The issue we are having is that when a user logs off the server it is not releasing the SessionID.  Upon investigation I have found that for each of the session you see one or more svchost.exe process handles that have not been released

If I manually remove these processes it will release and reuse the session ID as expected.

(to remove I run handle -c xxxx -y -p pid - ie handle -c 1704 -y -p 1388)

Need to find a way to automate removing these process handles so that the SessionIDs are released and reused properly as these sessions are preventing other system resources from being released and causing other major issues for us.

I would note that a reboot releases all the SessionIDs but as soon as you log on and off the process starts all over again.

Thanks again for taking the time to review this and for any assistance provided.

Ryan

C# Open remote application locked within Windows form

$
0
0

We're developing a C# Windows application, and one of the things we want to do with it is open a remote application inside our program. We can open a connection to the application's server using MSTSCLib, but to open our remote application either we open a remote desktop connection and open the program (which we don't want to do) or we open the remote application but in a separate window (which also isn't ideal).

This is how we get the remote application to open in a new window; is there a way to open the remote application inside the RDP client?

private AxMSTSCLib.AxMsRdpClient9NotSafeForScripting rdp;

rdp.RemoteProgram2.RemoteProgramMode = true; rdp.OnConnected += (_1, _2) => { rdp.RemoteProgram2.ServerStartProgram(@"C:\Windows\System32\calc.exe", "", "%SYSTEMROOT%", true, "", false); }; rdp.Server = "servername.com"; rdp.UserName = "domain\\user"; rdp.AdvancedSettings7.PublicMode = false; rdp.AdvancedSettings7.ClearTextPassword = "password";

rdp.Connect();

2012 RDP / RDS Remote Desktop Terminal Server incompatible with Windows 2016 Domain Controllers? Access Denied

$
0
0

So we have a few 2012 R2 Terminal Servers at my company that were working fine until we started the process of replacing our Domain Controllers with new Windows 2016 Servers.

Since then our users are getting intermittent "Access Denied" errors when they try to RDP to these terminal servers.

Generally the "Access Denied" error occurs when a terminal servers starts to use one of the newly added 2016 domain controllers. We can workaround the problem by sending an command telling the terminal server to use one of the older 2012 R2 domain controllers instead. Then things work again.

So the question:

Is there a misconfiguration with the new 2016 domain controllers or can an adjustment be made with the 2012 Terminal Servers?

Is the problem that Windows 2016 Domain Controllers are not compatible with 2012 R2 Remote Desktop Services servers?

We are having problems finding documentation on this.

What we do know is that if we decide to start upgrading to new 2016 Terminal Servers we will have to purchase new 2016 RDS Cals (not sure if we are budgeted for that...)

For those interested, you can find out the domain controller you are using by running the following elevated PowerShell command (this assumes the command is run remotely as you might be locked out due to the RDP access denied error):

nltest /Server:<your-terminal-server> /DSGETDC:<ad domain>

to specify the domain controller you want to be on (in our case we want to switch to back to a 2012 R2 domain controller), the command is:

nltest /Server:<your-terminal-server> /SC_RESET:<ad domain>\<specific domain controller>

RDS 2016 Session Host Capacity

$
0
0

Hello All,

We are planning to configure one session host server with 16 GB RAM with 4 core processor. We need to publish only MS office basic APPS like word, excel, power point, out look etc. Please help us calculate the session host capacity

  • What is the optimal number of Session per host and What is the Assumption or Rationale behind that
  • How is the Server Sizing calculated and what is the MS reference for that calculation along with assumptions and rationale to arrive at those Sizing
  • What is the Redundancy planned to manage the load during the Server Maintenance / failure?
  • What is the logic to have the Auto scaling enabled ?

Thanks in Advance

Regards,
Austin Jose

Migration from Roaming Profiles to User Profile Disks - RDS 2012 (R2)

$
0
0

Hi, I'm currently in the process of tweaking our RDS 2012 environment and have a question I hope someone can help me with....

The users who log onto the Collection are currently using roaming profiles stored on a 2008 R2 file server, but I'd like to move them onto User Profile Disks (looks to be a lot of pro's to it). Is there a way to migrate users profiles from roaming profiles to User Profile Disks? We already have a lot of users on the farm with roaming profiles and I'm guessing if UPD is enabled, it will only take effect with new users? I need to do this without too much hassle if possible

Any help would be appreciated

Thanks

Launch TS Remote App from Terminal Services API

$
0
0

Hi,

I'm using rdp files from "TS remote App manager" to launch remote apps without the anoying remote desktop. Now I found "Terminal Services API" and I'm able to launch remote applicatioms using the code below. Where can I set "remoteapplicationmode = 1" so my remote TS App runs without showing remote desktop?

I tried using MsRdpClientShell.RdpFileContents = <rdp file contents> but in that case I'm unable to set and use virtual channels.

Regards,
Manuel Alves

public Form1()
{

m_msTsc = newAxMsRdpClient6();

m_msTsc.OnConnected += newEventHandler(m_msTsc_OnConnected);

m_msTsc.OnDisconnected += newIMsTscAxEvents_OnDisconnectedEventHandler(m_msTsc_OnDisconnected);

m_msTsc.OnChannelReceivedData += newIMsTscAxEvents_OnChannelReceivedDataEventHandler(m_msTsc_OnDataReceived);

m_msTsc.Dock = DockStyle.Fill;

Controls.Add(m_msTsc);

InitializeComponent();

}
...

m_msTsc.Server = "myServer";

m_msTsc.UserName = "myUser";

m_msTsc.SecuredSettings2.StartProgram = "c:\\VirtualChannels\\VirtualChannelsServerApp.exe";

m_msTsc.SecuredSettings2.AudioRedirectionMode = 2;

m_msTsc.AdvancedSettings7.MaximizeShell = 0;

m_msTsc.AdvancedSettings7.SmartSizing = true;

m_msTsc.AdvancedSettings7.PublicMode = false;

m_msTsc.AdvancedSettings7.AuthenticationLevel = 0;

m_msTsc.AdvancedSettings7.ClearTextPassword = "myPassword";

m_msTsc.AdvancedSettings7.DisableRdpdr = 0;

m_msTsc.CreateVirtualChannels("CH001,CH002");

m_msTsc.Connect();

// Where can I set "remoteapplicationmode = 1"

// so my remote TS App runs without showing remote desktop?


RemoteAPP after windows 10 update 1803 are slow and right mouse button is not responding (it reacts only sometimes)

$
0
0

Hi,

our workstations with Windows 10 pro are in this weekend updated to version 1803. For main system we use RemoteAPP aplications on Windows server 2012R2 (Windows server 2012R2 is full updated). After update on client station are RemoteAPP slower, and  right mouse button is unresponsive, or react verly long time... 

It is a big problem for us.

PS: after replace mstsc.exe and mstscax.dll from older version Windows 10 is all OK. but this is not a solution.

Thanks.


RemoteApp’s fails to publish new applications. SSL Certificate not the issue.

$
0
0
RemoteApp’s fails to publish new applications.

Error: Publish RemoteApp Programs Failed: Could not create a published application instance on the server xxx

I have tried multiple apps and am unable to publish any apps even apps like Wordpad.

All fixes I have been able to find online indicate an expired SSL Certificate issue/fix or deleting leftover files after unpublishing the failed app and try re-publishing the app. None of these work. I have reissued the SSL Certificate from RapidSSL and reinstalled without issue and it passes installation check and is showing ok. All old/expired certificates have been removed.

Another possible fix tried – 

“Today I faced this issue and it got resolved via below method:
After unpublishing the app, I went to RemotApp folder on Connection Broker server:
C:\Windows\RemotePackages\CPubFarms\CCEP-APPS\CPubRemoteApps
There I can see some files were still there related to the application (icon etc). I manually deleted the files and tried republishing. This also did NOT work for me. 

The Events log shows no more info than the error shown above; so no other help there.

I have restarted the RDS system multiple times since the certificate install.

Environment: Windows Server 2012 R2 – all updates installed. RD Web Access, RD Gateway, RD Licensing etc. installed and working properly. Remote apps are on a virtual machine that has worked fine for 5-years prior to this issue. 

I have multiple apps published already that <g class="gr_ gr_268 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="268" id="268">are</g> working fine and I am afraid to delete the remote apps collection, as I can only have one collection published at a time with an SSL certificate, and try republishing them. If I am unable to republish them it will cause client major problems. 

Any suggestions?

Best Regards,
Bruce


Revoke or Stop issuing Windows 2000 Server - Built-in TS Per Device CAL

$
0
0

Hi I have licensed win2012 terminal server how ever server showing not license server not configured & licensed issued to user from Windows 2000 Server - Built-in TS  pool .

any way to force to server to server issue license from license terminal server pool


Continuous plan Do review is key to success.
Please mark as answer \Helpful if its . My Linkedin Profile

Memory exhaustion on Win10 Pro via RDP

$
0
0

Hello, I'm using freerdp to check RDP availability of a Win10 virtual machine running under Proxmox 5.2 (kvm). The command used is: /usr/bin/xfreerdp /cert-ignore /auth-only /u:$USER /p:$PASS /v:$HOST Every time this command is launched, the svchost.exe process related to "TermService" grows around 8MB in its "private bytes" memory. That amount is reduced to around 5MB if you set the display size in freerdp to 1x1 (/size:1x1). That memory is never returned to the system and in a few days some messages related to "resource exhaustion" are logged and eventually RDP stops working. At that time, that svchost.exe process has more than 10GB of "private bytes" (VM has 20GB total memory). Win10 needs to be restarted for RDP to work again, as restarting TermServices service does not help. Adding memory or a bigger pagefile to the VM only delays the time when RDP stops working, it will eventually fail anyway. I dont know if this is caused by FreeRDP shutting down the connection without notifying the RDP Server properly or if it is a Windows issue or a configuration issue. It's very easy to create a DoS to a Win10 Pro RDP server if you have valid credentials. I haven't tested any other Windows version nor any other virtualization environment. Luckly, it doesn't happend if you dont have valid credentials. Please, give it a look to find out what could be causing this behaviour.

Thanks a lot

Cant log onto more than 2 RDS connections 2016

$
0
0
I have installed RDS licence for 3 users on windows server 2016. None of the licences seem to be assigned when i generate a report. The licencsing server is activated, as is the host server. But it still will try and force another user off when more than one RDS user tries to log in. Also, when i look at the propertied for deployment, it appears that there are 2 liceinsing servers- one with the local name and one with the internal  ip address of the server. Any ideas? 
Viewing all 26837 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>