Logoff Script for RDS on Server 2012 R2

Hello,
I'm looking for a solution that will add an app (batch script, powershell etc) that will allow non-admin users to log off completely from the server when they launch it. I have tried a simple batch file with logoff /f but it still asks for admin privileges. 
I know it can be done with "end a disconnected session" timeout value but I can't change that value for other external reasons.
Any tips? 
Thanks 

Hi,
Have you tried just publishing logoff.exe as a RemoteApp (no batch file)?  Normally there is no problem with a user running logoff.exe to sign out of their session.  No admin privileges required.
-TP

Similar Messages

  • Office on RDS on Server 2012 licensing

    I have a client using RDS on Server 2012 to run proprietary software. They would like to begin allowing their sales force to connect to the server via iPads and run Office, which isn't yet installed on the server.
    Thus far I've come to the understanding that what that will take is a volume license for Office installed on the server and an RDS license (they already have several) for every concurrent connection.
    My questions are -
    1) Am I right about installing the Office volume license on the server?
    2) Do they need Office installed on the client device as well? (I wouldn't think so, but some things I'm reading say otherwise)
    3) One of the reasons they want to switch to iPads (or Android devices or whatever) is to limit cost if their salesperson looses or breaks their device. So my question is, does the volume license count concurrent connections like the RDS license does or
    is it somehow "tied" to the remote devices? For example -- If a salesperson does lose their device is it possible just to get another one and have them start using it without any additional licenses or is the license that was "tied" to
    the old device just gone forever and we have to purchase another one to connect the new device? If the salesperson wants to RDS into the server from their home computer while their iPad is off and connect to their RD session would that require another license?
    Or, if one of the people who connects to RDS who doesn't need to use Office accidentally opens "Word," will that license be then "tied" to their computer and wasted?
    Thank you for any help,
    Jeff Minch

    Hi Pure,
    Your friend of a friend is incorrect.
    The statement you've made about licences being locked applies to the RDS CAL (specifically a per computer CAL), not Office. As I said before, an Office licence has nothing whatsoever to do with an RDS CAL.
    There are three kinds of "common" Offices licences:
    Retail.
    MAK.
    KMS.
    Unless you're buying your copies of Office from a retail shop (or online shop) - and it doesn't sound like you are, then you can forget about retail keys.
    MAK keys are accessed by one of the volume licencing agreement programs and are typically used by smaller businesses that don't have enough computers to be able to access the KMS approach to licencing or for clients that will not be able to talk to
    a KMS server at least every 180 days.
    MAK keys involve a once-off activation and then they never renew the activation again. This makes them ideal for things like non-Internet kiosks, field laptops and the like. The once-off activation can happen with the client being Internet-connected for
    this once off activation or via an offline activation using the telephone or VAMT (Volume Activation Management Tool).
    KMS keys come in two flavours:
    KMS host activation key, which is used to create a KMS "server".
    KMS client key, which is a standard key that can be applied to as many volume licencing copies of Windows/Office ad you like, and which "instructs" the client to activate against the KMS server above.
    There are a number requirements to be met before you can successfully deploy a KMS host, but it's not worth going into depth here about it as the only point to be made is that yet again, it has nothing to do with RDS licencing. The closest it would get to
    being relevant is if the copies of Office installed on the RDS Session Hosts were activated via a KMS host.
    I think you need to have a read-up on RDS licencing and the expiration process:
    http://technet.microsoft.com/en-us/library/cc732416.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/3efeee70-9d23-4477-8b94-23e2643dd5bf/controlling-rds-user-cal-expiry?forum=winserverTS
    Going back to your iPad clients, you need to determine whether you're using per device or per user licencing before you can figure out a way forward as far as RDS licencing goes, but again, this has nothing to do with Office licences being retained
    on the device, as that scenario is not possible as Office activation doesn't work like that.
    Perhaps the easiest way to depict the difference for you is to understand that RDS licencing functions outside of the RDS session while Office licencing functions within it, which is why a device being removed/lost has nothing to do with Office at all.
    So long as you remember that you need to buy as many Office licences as there are clients connecting to the RDS environment, you can activate Office any way you like.
    Cheers,
    Lain

  • REMOTE DESKTOP SERVICES CLIENT ACCESS LICENSES FOR MICROSOFT WINDOWS SERVER 2012 STANDARD AND DATACENTER

    I am using a window 7 professional  service pack 1 and I purchase REMOTE DESKTOP SERVICES CLIENT ACCESS LICENSES FOR MICROSOFT WINDOWS SERVER 2012 STANDARD AND DATACENTER. but  the seller did not send me any installation CD or instruction
    on how to use it.
     Please how can I use it on my window 7 professional  service pack 1.
    Thank you.

    Though Bill is absolutely correct for most CALs, Remote Desktop Services does have its own special licensing server.  I haven't installed one on 2012, yet, but here is a step-by-step guide for 2008. 
    http://technet.microsoft.com/en-us/library/dd983943(v=ws.10).aspx
    Here is a lab guide for 2012 -
    http://technet.microsoft.com/en-us/library/jj134160.aspx
    But, the explanation of your environment begs the question - what are you trying to do?  You say you have a desktop OS and you are talking about Windows Server products.  In that light, your question does not make a lot of sense.
    . : | : . : | : . tim

  • Script for Checking the Server Status

    Hi All,
         I just need the script for monitoring the server status through the WLST.My scenario:I have 2 server in Running State.If any one of the server get failed or in not RUNNING state then i use the script for starting that server automatically.I tried some of the script but it is not working properly .If any one have the sample script please share with me.
    Regards,
    Ove.

    Hi Syed,
    Replication state is very easy to see in 4.x and earlier. The last changenumber in the supplier changelog is visible (on the root DSE IIRC), and each consumer suffix has an operational attribute "copiedfrom" that tells you the name of the supplier, the database generation id, and the last change replayed from the supplier.
    So a script that compares the results of
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" lastchangenumber
    and
    ldapsearch -h <consumer> -s base -b <base_suffix> "objectclass=*" copiedFrom
    will show you if a replica has fallen out of sync. It won't tell you more than how many changes behind the replica is, though, because pre-5.x changenumbers are sequential integers, not timestamps.
    However, the change that corresponds to the changenumber is clearly visible under the "cn=changelog" suffix. So if you look at the change itself you can see the timestamp on it.
    For more info on the status of replication, you should be able to query the agreements on the supplier. Those live under the "Netscape Machine Data Suffix", which you can also find on the supplier's root DSE:
    ldapsearch -h <supplier> -s base -b "" "objectclass=*" netscapemdsuffix
    And of course the error logs will usually tell you if replication is failing outright.
    I may be off on some of the attribute names, but if you do some investigating along these lines, you should be able to figure it out.

  • Akamai Download Error for Hyper-V Server 2012 R2

    I am trying to download the Eval for Hyper-V Server 2012 R2.
    I keep getting the same error message:
    Unable to save File
    Please try again to save to a different location.
    I have tried this on multiple computers and browsers, all with the same error.
    what am I doing wrong?

    Hi leomoed,
    Yes , it is always running in the background .
    Use the Download Manager for efficient installations, time-saving features, and automatic restarting if the download process is interrupted.
    http://msdn.microsoft.com/en-us/subscriptions/bb153537.aspx
    Best Regards,
    Elton Ji
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

  • Looking for MS SQL Server(2012 or older versions) all commands

    HI,
    Looking for MS SQL Server(2012 or older versions) all commands, i.e., all available sql server commands.
    Is there any reference manual or MS KL to get all commands in SQL Server ?
    Thanks in advance

    Thanks for link
    Sean Gallardy and Jingyang Li.
    This is is not usefull for my requirement.
    What i am looking is..SQL Server commands  like examples... DDL/DML comands...create/alter
    Examples: Insert/update/delete,truncate.......etc
    Create database,create procedure.......etc
    Alter database,shutdown,drop,create....etc
    Looking for list of all commands in one place/doc in SQL Server.
    Thanks

  • Managing user sessions in RDS on Server 2012 R2

    I'm planning on deploying Server 2012 R2 Remote Desktop Services, and I'm finding I'm going to have to go to a training class!  Unfortunately, I don't have the time to do that before deploying. I've figured out how to use policy editor to configure
    what I used to accomplish in "Terminal Services Configuration". What tool do I use to manage Remote Apps, and what tool do I use to view session details? I know I can remote control user sessions from Task Manager, but that doesn't give visibility
    to view session idle time, logon time, etc.

    Is it on a Domain or Workgroup, if it is on a Domain (and you had previous experience with RDS 2008/R2) then you can simply read this guide
    http://social.technet.microsoft.com/wiki/contents/articles/20684.management-how-to-changes-for-rds-in-windows-server-2012-and-2012r2.aspx
    If it is on a workgroup you have to do a bit more to get it right. The only problem is if you are on a workgroup you can not have RemoteApps
    Hope this helps!

  • Rc.d script for Source Dedicated Server (srcds)

    I'm using ArchLinux to power a game and web server and wanted an rc.d script for it.  I found a few scripts but none of them seemed as simple as the the example in the wiki (lots of ps/grep) so I wrote my own: srcds-rc.d.  It does start/stop and also update.
    I'm new to bash scripting so if you see an issue please let me know.
    Last edited by TronPaul (2012-06-19 12:17:14)

    I'm using ArchLinux to power a game and web server and wanted an rc.d script for it.  I found a few scripts but none of them seemed as simple as the the example in the wiki (lots of ps/grep) so I wrote my own: srcds-rc.d.  It does start/stop and also update.
    I'm new to bash scripting so if you see an issue please let me know.
    Last edited by TronPaul (2012-06-19 12:17:14)

  • Multiple monitors not working in RDS on server 2012

    Hello.
    I have a Windows 2012 server running RDS. Before RDS was installed a remote desktop session used all available monitors when 'use all my monitors for the remote session' was checked in the RDP client settings.
    After I installed RDS the default session collection had a limit of 16 monitors that I was unable to edit. When I connected to the default session collection I could only get the remote session to display on 1 monitor.
    I deleted that session collection, created a new one, and was able to edit the 'maximum number of redirected monitors' setting to the desired value of 2 but the remote session still only displays on 1 monitor. 
    If the session collection is set to 2 monitors and the RDP client is set to 'use all my monitors' why is the remote session only displayed on 1?
    Thanks.
    Keith

    Hi,
    Thanks for your post.
    Please try to use RDC 8.0 to connect to the Remote Desktop Server. In addition, you may refer to the following blog to see if any settings restrict the number of monitors.
    Using Multiple Monitors in Remote Desktop Session  (applies to Windows Server 2012)
    http://blogs.msdn.com/b/rds/archive/2009/07/01/using-multiple-monitors-in-remote-desktop-session.aspx
    Best Regards,
    Aiden
    If you have any feedback on our support, please click
    here
    Aiden Cao
    TechNet Community Support

  • RDS on server 2012 and outlook as a published app not working.

    You need a VL copy for office, OEM will not work,
    You can also install O365 on the Server but that is a little more complicated, then you can have every one activate it with their E3 license.
    We have both systems in production for multiple customers and it works without issues.

    We are creating a new environment to use RDS, exchange 2010, office 2010 or 2013. When publishing an app of outlook 2010 or 2013 they do not work in RDS. Just keeps spinning and never launches. it will not launch from the server as well at time but at times it will if i am on the server directly via RDP.
    This is a hyper-v environment as well running on server 2012 host not sure if that makes any difference with this issue though. 
    Any ideas here? 
    Thanks in advance 
    T. 
    This topic first appeared in the Spiceworks Community

  • Download Links Broken for english Sql Server 2012 Express

    Hi,
    it seems that the download links for Sql Server 2012 Express Edition is broken for the english version.
    None of the links on the microsoft download center works.
    I am able to download a german version from:
    http://www.microsoft.com/de-de/download/details.aspx?id=29062
    But changing the language to english results in a "We are sorry, the page you requested cannot be found."
    Take care,
    Martin

    Hello,
    I created the following Microsoft Connect item about this issue:
    https://connect.microsoft.com/SQLServer/feedbackdetail/view/958840/download-links-are-broken-for-sql-server-2012-express-and-sql-server-2008-r2-express
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Configuring a Certificate for ADFS on Server 2012 R2

    Preparing to install ADFS on Server 2012 R2 for SSO to applications outside of our organization.  For my needs, do I need two certificates? One for SSL and one for Claims?
    We have an internal Microsoft CA that I can get certs from. I have read that Microsoft suggests using a self-signed cert for claims. Can someone corroborate this for me?
    Since ADFS 2012 R2 doesn't use IIS, if I have IIS installed and request a cert from my internal CA, can I still use it for my ADFS installation?
    Orange County District Attorney

    Hi Sandy,
    Based on my research,
    Server authentication certificate (SSL)is used to secure
    Web traffic for communication with Web clients or with federation server proxies, while token signing certificate is an X509 certificate, its associated public/private key pair is used by federation servers to
    digitally sign all security tokens that they produce.
    Self-signed Certificates can be used for a lab, but should not be used in production deployments.
    Here are some related articles below I suggest you refer to:
    Certificate requirements for federation servers
    http://technet.microsoft.com/en-us/library/cc783182(v=WS.10).aspx
    ADFS Certificates - SSL, Token Signing, and Client Authentication Certs
    http://blogs.technet.com/b/adfs/archive/2007/07/23/adfs-certificates-ssl-token-signing-and-client-authentication-certs.aspx
    Setting up an ADFS lab environment - Part 1
    http://blogs.technet.com/b/adfs/archive/2007/02/26/setting-up-an-adfs-lab-environment-part-1.aspx
    I hope this helps.
    Amy Wang

  • Laptop config for running Windows Server 2012

    Hello,
    For demo purpose I need to install Windows Server 2012 on a laptop, and some other 64 bits applications.
    Do you experiment a specific laptop which is running fine with this OS?
    For example I tried with Intel i5 and 16 GB RAM : Excel takes 10 min to load and most of the time it announces "Not responding". Same thing for all the other applications. I'm quite paralyzed in my job.
    Thanks for advises!

    Hi,
    I am not sure what is wrong with your setup, but Windows Server 2012 can run on laptop totally fine.
    Especially with your rig. Can you tell us did you do a fresh install of Windows Server 2012?
    I checked some pages (not to jump to conclusions myself), and I have found out that others didn't have any issues with the setup.
    These are the requirements (doesn't matter if it is a standalone physical machine or a laptop):
    Windows Server 2012 requirements
    Make sure your drivers are up to date.
    In this article you will see that the guy used a laptop on which he had Windows Server 2008 (lower config than yours), and it worked just fine:
    Installing Windows Server 2012 on ThinkPad T61
    Please click on Propose As Answer or to mark this post as and helpful for other people. This posting is provided AS-IS with no warranties, and confers no rights.

  • SNMP OID for DHCP on Server 2012

    We recently installed Server 2012 standard on one of our servers and were trying to keep a graph of DHCP lease use. Anyway the OIDs for DHCP in Server 2008 R2 started with "1.3.6.1.4.1.311.1.3.2.1.1". If I try to snmpwalk these same OIDs on the new Server
    2012 (We the DHCP server configured and active), I get:
    Error in packet.
    Reason: (genError) A general failure occured
    Failed object: SNMPv2-SMI::enterprises.311.1.3.2.1.1
    I'm using SNMPwalk and I've never had a problem with this before. Any idea what would cause this? Thanks!
    Thanks!

    I'm having the same issue. OIDs just don't work against a 2012 DHCP server. I can snmpwalk other OIDs, just not DHCP :(
    Firewall has been disabled (and there were already adequate snmp rules allowing the traffic). Since I can query other OIDs, I'm ruling out firewall.
    Has this info been removed in 2012?

  • Vvideo Drivers for RD430 windows server 2012

    We have tried to  download the drivers for video in our RD430 windws server 2012 however , we do no find any .
    Am I looking at the wrong support center? would you mind helping us ?
    Thanks

    Good day and welcome to the community.
    If you go to the RD430 Driver Matrix, are the drivers you seek available?
    Regards.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

Maybe you are looking for

  • Do I have to set up unique apple id's with emails for each iPod

    My kids each got iPod touchs for Xmas. I got them set up but with my apple id. When they text the others messages Show up on the others iPod. They are only 6 and 9 and don't need email yet. Can I create them unique id's and link them to my email?

  • Photo gallery built with adobe edge can not be seen on mobile devices.

    photo gallery built with adobe edge can not be seen on mobile devices. ps: I do not have any email attachment, I do not understand a thing of referring

  • Big screen problem!!!!!!!

    I have this problem where the screen on my iPod goes off, but the iPod itself stays on. if I squeeze sides or press between the play and menu buttons, it will come on as long as I am holding down. occasionally it works, I just wanted to know if anyon

  • BAPI to get all user lists for input object,authorizations, and profiles

    Hi Experts, BAPI to get all user lists for input specific object, authorizations, profiles and values? Any useful answer will be rewarded with suitable points. Thanks, Rohan

  • Debugger Error in NWDS

    Hi, When i am trying to start the debugger in NEDS , i am getting the following error. EXCEPTION OCCURED DURING LAUNCH. REASON : FAILED TO CONNECT TO REMOTE VM . CONNECTION REFUSED. I have set the debugger on in server0 and sdm. I have checked and es