Resolving 'No Programs available from a Terminal Services Session'

Published September 03, 2013 by FoxDeploy

Hey all,

  Another SCCM post here.  You’ve probably been in this scenario before:  You have a user complaining that an advertisement doesn’t work from his/her computer and they are being vague about it.  Typically, we would dive in with SCCM Client Center or read the logs (or status messages from a program, more on that in a bit) to determine what went wrong.  

  During the course of your troubleshooting, you may need to see what is happening on this user’s computer, so you Remote in with a tool like LogMeIn ignition or using the Remote Desktop Connection app with the /admin switch (‘MSTSC /ADMIN’).  

  You attempt to launch the advertisement from Run Advertised Programs, but then you see this:

 ”No Programs available to run from a Terminal Services session”

  What?!  This is actually a strange one.  I’ve been searching around for the real reason behind all this but from what I’ve gathered thus far, SCCM determines the advertisements displayed to a user under RAP based on the user currently connected to the lowest session number.  If one user logs in to a computer another is already logged onto, RAP will lock the other user from launching software installs with this method.  

 Some people will restart the computer to get around this issue, which is a bit of an overreaction.  If you know your command line basics, you can get RAP up and working again in under 20 seconds!

 Lets use the query user command (QUSER, for short) to see if this is the case.

 Yep, sure enough, someone else was disconnected when we connected using mstsc /admin.  If we note their session ID (‘1’, in the above screen shot) we can feed this to the logoff command and get rid of their session. 

 Logoff is a bit of a laconic application, and performs its work silently.  Lets try refreshing Run Advertised Programs now and see if it works.

  And now we’re back in the running!  Enjoy, hope this helps you out!

Microsoft MVP

Five time Microsoft MVP, and now I work for the mothership

Need Help?

Get help much faster on our new dedicated Subreddit!

depicts a crowd of people in a night club with colored lights and says 'join the foxdeploy subrreddit today'

Blog Series
series_sml_PowerShellGUI series_sml_IntroToRaspberryPi Programming series_sml_IntroToWindows Remote Management Series The Logo for System Center Configuration Manager is displayed here Depicts a road sign saying 'Learning PowerShell Autocomplete'

Blog Stats