HI,
I want to automate the following steps after obtaining the license key pack id from the Remote Desktop Services Licensing Web site.
•1) "In the Install Licenses Wizard, on the Obtain Client License Key Packpage, enter the license key pack ID in the boxes provided, and then click Next. The RDS CALs are installed on your license server.
•2) On the Completing the Install Licenses Wizardpage, click Finish. The license server can now issue RDS CALs to clients that connectto a Remote Desktop Session Host (RD Session Host) server."
Is "unit32 InstallLicenseKeyPack( [in] string sLlicensKeyPackId, [out]uint32 KeyPackId) the right API to use ?What is the use of the KeyPackIdreturned by the API ?
How to call this using powershell ?
Thanks for the help
somaraj
Automating installing license server key pack on windows server using power shell
Change the UserGroups in the default RD CAP and RD RAP using powershell?
I'm trying to change the user group membership that is allowed to accesses the Gateway server.
I am trying use set-item but I get the following:
PS C:\Windows\system32> set-item RDS:\GatewayServer\CAP\RDG_CAP_AllUsers\UserGroups "testgrp1@DOM1" set-item : Access to the object at RDS:\GatewayServer\CAP\RDG_CAP_AllUsers\UserGroups is denied for the cmdlet Set-Item. At line:1 char:1+ set-item RDS:\GatewayServer\CAP\RDG_CAP_AllUsers\UserGroups "testgrp1@DOM1"+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : PermissionDenied: (RDS:\GatewaySer...sers\UserGroups:String) [Set-Item], AccessViolation Exception+ FullyQualifiedErrorId : PermissionDenied,Microsoft.PowerShell.Commands.SetItemCommand
Am I doing the right thing or is there another way to set this?
RDS 2012R2 Publish programs from multiple servers
Hi,
I am struggling to publish app from a secound RDSH.
I have set up a test with the following.
1 TESTDC01 Domain controller
1 RDSGW01Gateway and connection broker
1 RDSH01 with RD webaccess
1 RDSH02 only session host.
On RDSH01 i have installed a set off apps. What i am trying to do is to publish a program that are only installed on RDSH02, in this case Chrome.
I have tryed to add the .exe file from chrome to the collections (test) where RDSH02 is a member session host. When i try to add the .exe file from UNC i get the message that i have to choose a program from RDSH01.
I then created 2 collections and gave the same user access to Chrome from RDSH02.
I can see all the apps in RD web access. bothr from RDSH01 and RDSH02. When i try to start program that are published from RDSH01 they open fine. But when i try to open apps that are published from RDSH02 they wont open. Just saying COnnection... and trys to open the app from RDSh01( i think).
I have given access in RDgateway.
and secound quiestion. how are you doing this. Multiple servers difrrents app for diffrent users.
My dream is to have a setup like this.
1 RDSHGateway
2 RDS Web Access
3 RDSH with diffrent apps that run on diffrent servers.
I hope some can give me some pointeres.
asd
File Explorer on Remote App
Hi!
I'm new in the networking world, I've just put RemoteApp on my WS2012 machine. How can I publish the File Explorer (Windows Explorer) as a RemoteApp? I can't work out how to do it and it's really annoying me. Please be specific otherwise I probably won't know what you mean as I don't have much experience.
Thanks
Nicholas
@NicholasHayman
RDS 2012 R2: A timeout (30000 milliseconds) was reached while waiting for a transaction response from the (name-of-service) service
Hi guys,
On a random base (daily, weekly) we're experiencing major log-in problems on our Windows Server 2012 R2 Remote Desktop Services farm. The VM's are hosted on Hyper-V 2008 hosts and we're not using Citrix techniques etc.
Users are reporting that they cannot log-in, the log-in sessions hangs with a blank screen when loading their user profile (e.g. Please Wait For The User Profile Service).
In the System event log of the server on which the user is logging on the following errors are shown:
Source: Service Control Manager
Date: 23-12-2014 7:28:01
Event ID: 7011
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Description:
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service.
…and after 30 (or sometimes 60) seconds, the same error only another service (in random order):
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service.
…and after exactly 30 seconds, the same error only another service:
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UxmSms service.
etcetera, with the following errors:
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the Netman service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the AudioEndPointBuilder service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the WPDBusEnum service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the NlaSvc service.
The Portable Device Enumerator Service service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the TrkWks service.
A timeout (30000 milliseconds) was reached while waiting for a transaction response from the UmRdpService service.
These errors are logged continuously.
An administrator cannot solve this since he isn't able to login in as well (console or remotely), only a hard reset of the VM is possible to use the affected server again.
I took different steps to solve this problem without any success, like:
- Installing the latest Windows updates
- Removed unnecessary printer drivers, print monitors and print processors (no local printers/drivers are installed, only Remote Desktop Easy Printer driver is used)
- Searched different forum posts, but found only hotfixes for Windows Server 2008 R2.
Can someone please help me with this annoying problem?
Many thanks!!
EDIT:
Of course is increasing the time-out not really an option here... http://social.technet.microsoft.com/wiki/contents/articles/13765.event-id-7011-service-timeout.aspx
RDP8+, "Your computer can't connect to the remote computer because an error occurred"
Ok, I have racked my brain trying to figure this out and I'm out of ideas.
Issue - Random Windows 7 PC that has updated to RDP 8.0 gets this error when they try to connect to a server we have set up for them through a gateway. Only happens when the computer is updated to RDP8. Downgrading to RDP7.1 fixes the issue and they can connect just fine.
The issue only affect a very small number of computers. Most Windows 7 computers with RDP 8.0 can connect just fine. But right now, I am working with a client that has their own computers and domain (I have no control over) that are affected by this issue. This is not the only client I have run into with this issue as well.
This problem is essentially what is described here - http://www.examiner.com/article/fixing-an-error-occurred-on-the-remote-computer-with-remote-desktop-connection Except I would really like to know if there is a fix other than uninstalling RDP 8.
'Allow New Connections' - change logon /enable | /disable | /query
Hi All
Does RDS Server Manager > Collection Name > Host Servers > Allow New Collections effect the traditional TS key on host servers as this command would have traditionally CMD > change logon /enable | /disable | /query :
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]
"WinStationsDisabled"="0" / "1"
Or does it simply inform the RDCB?
Reason I ask is this reg key doesn't appear to change and I'm not sure if it should or something's broken!
Thanks
Lea
Revoke RDS CAL from powershell or and command
I am trying to use powershell to query all the LicenseID and the ones that come up as unknown send a revoke command.
I have everything ready up to the revoke part. i cannot find a revoke command . i saw this on a site but now sure how to implement it :
Win32_TSIssuedLicense:
Windows Server 2008 has a WMI class named "Win32_TSIssuedLicense" for managing issued per device CALs. This WMI class provides the following interface to manually revoke issued CALs:
Revoke: This API can be used to manually revoke an issued CAL. This is a not a static function.
The syntax of the API is
uint32 Revoke(
[out] uint32 RevokableCals,
[out] DATETIME NextRevokeAllowedOn );
Where is the Remote Desktop Session Host Configuration tool in Server 2012 ?
Where is the Remote Desktop Session Host Configuration tool in Server 2012 ?
This is an MMC snap-in found on earlier servers, even if RDS is not installed. In Server 2012, even if the Remote Desktop Session Host role is installed, this tool is still not available.
I'm looking for the Server 2012 tool to adjust security settings like TLS authentication, High encryption level, choice of TLS certificate, NLA, etc.
Thanks!
Unable to disconnect session 0
In our company environment we have RDS farm server based on Win 2012. Everything works fine, but time to time we are not able to log off disconnected users from remote session. Error message appearing when we try to do this.
I also have tried to log off user via powershell "Invoke-RDUserLogoff" but it still with no success.
Only server restart helps to solve this.
Maybe it some other solutions exist for this problem. Also it will be good to know the reason of this problem.
Thank you.
Remoteapp MSI file publishing in Win Server 2012
Hi,
Is it no longer possible to publish remoteapps using MSI?
The problem with this is that it's not possible to do file associations unless you use the Remote Desktop Web Connection.
Best regards
Kjartan
Non-Admin Users are unable to manage RDS 2012 R2 sessions
I've been trying to use a great script from the Gallery:
https://gallery.technet.microsoft.com/scriptcenter/Remotely-log-users-off-377c848d
It works great for me but I'm a Domain Admin. I'm trying to enable my ERP admin as well as our help desk folks to manage user sessions. We just want them to be able to send a message or log off a user(s).
Server Manager doesn't work because they get Access Denied on all of the hosts.
I understand the security but this defeats the purpose of having help desk staff when sys admins have to manage all facets of the RDS system.
Am I missing a setting or is this just not possible?
RDP screen goes black after successful remote login
I have a Windows 2008 Server that I have been connecting to once a month remotely to apply OS updates. Often, I reboot that server and it uses auto-logon to login and run an application.
Today, I rebooted the server and when I try to connect with RDP, I get the login prompt and enter my credentials, I see a few expected messages fly by on the host OS (the last one I see is the word Welcome), but then the screen goes black.
The apps on the server are running successfully because our applications can connect to them, we just can't logon to the desktop of the Windows Server 2008.
I made no configuration changes (I NEVER do) other than to apply the latest Windows Server updates.
I would prefer not to drive to the computers location, or try to coordinate a time to have the server hosting company assist me with troubleshooting; but is there anything else I can do? Any ideas about what might cause this?
Limit number of sessions on RD 2008 via powershell
Hi,
Can you limit number of users on RDS2008 via powershell?
J.
Jan Hoedt
On-Screen Keyboard
Hi,
We are running several RDS 2012R2 servers and some users need to use the on-screen keyboard.
I've created a tile linked to OSK.exe and they can also use the search field on the right-hand side to type and search for OSK.
On all servers users will get the error: On-screen Keyboard does not work any more / Cannot start on-screen keyboard
When an administrator starts the osk it works fine.
How can we make sure users can use the OSK?
Connection Broker HA fails on adding new CB
Hi,
I've got two Connection Brokers behind an ELB connected to a SQL database. All is fine. This is all Windows Server 2012R2.
I now tested how resilient this setup is and started killing VMs. I shut down one Connection Broker and all was good. I removed the "dead" Connection Broker from the RDS deployment (via Server Manager).
Now I launched a new Connection Broker (new VM, new name, same setup) and tried adding it to the existing RDS deployment as a new Connection Broker (again via Server Manager).
This failed with an obscure error message saying that the Connection Broker "failed the health check" and it wasn't added.
Trying it via PowerShell I got this error message:
Add-RDServer -Server WIN-C1JJO036FF6.CUSTOMER.COM.AU -Role RDS-CONNECTION-BROKER -Verbose VERBOSE: Validating RD Deployment Server 'WIN-C1JJO036FF6.CUSTOMER.COM.AU' Add-RDServer : Validation failed for the "RD Connection Broker" parameter. WIN-C1JJO036FF6.CUSTOMER.COM.AU The database is not reachable from the specified RD Connection Broker server. At line:1 char:1+ Add-RDServer -Server WIN-C1JJO036FF6.CUSTOMER.COM.AU -Role RDS-CONNECTION-B ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Add-RDServer VERBOSE: Verify the validation failures before continuing with the deployment. A valid fully qualified domain name (FQDN) for the server was not specified. Unable to connect to the server by using Windows PowerShell remoting. Verify that you can connect to the server. The server is not joined to a domain. The currently logged on user is not a member of the local Administrators group on the server. The server must be running at least Windows Server 2012 R2. The server is part of the high availability cluster. The server has a deployment associated with it. The database is not reachable from the specified RD Connection Broker server.
The database is 100% reachable from that server. I tested connectivity via telnet 1433 to the DB and also a more detailed test via a UDL file from that server.
Why am I getting this error?
My blog on all about automation: www.david-obrien.net | me on Twitter: @david_obrien Please remember to mark the post(s) that helped you resolve the issue (even if it was your own)
RdWeb in HA loops
Hi,
I have configured an RDS 2012R2 environment in a HA configuration.
The RDS Connection Broker works as expected, sort of (different question). The Website though is giving me issues.
The two servers with the RdWeb installed sit behind an ELB, both servers have been added to the RDS deployment.
https://ELBname/ correctly displays the IIS default splash screen.
https://ELBname/RdWeb causes a 302 redirect to https://ELBname/RdWeb/Pages for about 120 loops and then IE displays this error:
This page can’t be displayed •Make sure that the web address https://ELBname is correct. •Look for the page with your search engine. •Refresh the page in a few minutes.
https://webserver1/RdWeb works correctly.
https://webserver2/RdWeb works correctly.
What's going wrong here?
My blog on all about automation: www.david-obrien.net | me on Twitter: @david_obrien Please remember to mark the post(s) that helped you resolve the issue (even if it was your own)
how to auto-create outlook profile when user needs to send mail from a "RemoteApp"?
Hello,
we have office 2016 and we have a program as remoteapp that can export to excel. when users try to send this excel (spawned from the remoteapp) as mail the user gets this error:
and then:
Mail system failure. check you mail installation
i read in some posts that this reg key should help (ive also tried not in polices):
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover
Dword = ZeroConfigExchange
Value = 1
but i get the same error.
is there a way to auto create the mail profile when an application requires it? or maybe i can run some app that will auto-create the profile on first login?
thanks,
Sean
Remote Desktop ActiveX control does not work when connecting to Azure VM -- why??
I am trying to use the Remote Desktop Protocol ActiveX control to connect to an Azure VM, but it doesn't work. OnDisconnect is called with discReason=1
I tried this sample:
https://www.codeproject.com/articles/43705/remote-desktop-using-c-net
And I also tried my own code, here:
privatevoid button3_Click(object sender,EventArgs e){
axMsRdpClient81.Server="IPADDRESS";
axMsRdpClient81.UserName="USERNAME";
axMsRdpClient81.AdvancedSettings9.ClearTextPassword="PASSWORD";
axMsRdpClient81.AdvancedSettings9.EnableCredSspSupport=true;
axMsRdpClient81.AdvancedSettings9.EnableAutoReconnect=true;
axMsRdpClient81.AdvancedSettings9.AuthenticationLevel=2;
axMsRdpClient81.AdvancedSettings9.NegotiateSecurityLayer=true;
axMsRdpClient81.OnDisconnected+=AxMsRdpClient81_OnDisconnected;
axMsRdpClient81.Connect();}
Both fail to connect. Any ideas why? Hoping someone from MS will know the answer.
Server 2012 RDS - User Profile Disks - Errors during Logoff
I have set up a test Server 2012 RDS collection (Single Server for now) and implemented User Profile disks.
I have two problems.
First: My generic test user can connect and does successfully use the user profile disk as expected. However, atlogoff, the system event log contains these errors:
The error (NTFS 137) is: The default transaction resource manager on volume C:\Users\ts3.test encountered a non-retryable error and could not start. The data contains the error code.
The warning (NTFS 50) that concerns me is:
It appears that the user profile disk is being "disabled" or "disconnected" before the profile data is completely written at logoff. What can I do to troubleshoot this?
Second:
Update: A post from Mike Connor on the following page: -LINK- solved
the problem described below.
My administrative user always logs on now with a temporary profile. At the beginning, the UPD was working and mounting. That stopped working. In attempting to troubleshoot, I logged the admin user off and deleted the UPD disk file from the share. I remember it working again after generating a new UPD disk file in the share. Soon, it quit working again. I deleted the UPD disk file again from the share and ever since, it has never regenerated a new UPD andalways logs on with a temporary profile.