How to add user to a terminal server list ?

Hi , is there a way out to login users to terminal server remotely without GUI(rdp) from some commandline?
background:
i am trying to remote login user after machine restart in order to start a automation test run, so in order for the automation testrun to work properly i need to open a user session on the remote machine. after restart only two entries are found (when qwinsta
is queried)
SESSIONNAME USERNAME    ID STATE TYPE DEVICE
console             administrator 0  active wdcon
rdp-tcp                                 65536 listen rdpwd
so i can't use tscon to connect to a user session as not user session exists in the first place?

Hi,
Thank you for posting in Windows Server Forum.
As per your comment, you can login users remotely to terminal server with “mstsc” command line as per below command.
mstsc [<connection file>] [/v:<server[:port]>] [/admin] [/f[ullscreen]] [/w:<width>] [/h:<height>] [/public] | [/span] [/edit "connection file"] [/migrate] [/?]
For more information, refer beneath article.
Use command line parameters with Remote Desktop Connection
http://windows.microsoft.com/en-in/windows/command-line-parameters-remote-desktop-connection#1TC=windows-7
Hope it helps!
Thanks,
Dharmesh

Similar Messages

  • How to add user command to drop down list in output screen for OALV Report

    Hi Experts,
    I have created a report by using OALV.
    in Output screen i have  added drop down for one filed with 2 values.
    when i select  value from the drop down list the  program should trigger and the next field should be update.
    so it is possiable to add a user command for the drop down list in output screen.
    if so please help me .
    Regards,
    Rathan

    HI,
    Check the Demo program BCALV_EDIT_06 with having the DATA_CHANGED event still you can capture the changed data. This event will help you.
    or you can go for this code..
    data: it_f4 type lvc_t_f4,
            wa_f4 type lvc_s_f4.
            wa_f4-FIELDNAME = 'CONNID'.
            wa_f4-REGISTER = 'X'.
            wa_f4-GETBEFORE = 'X'.
            wa_f4-CHNGEAFTER = 'X'.
            append wa_f4 to it_f4.
    "register F4 event
      CALL METHOD g_alv_grid_ref->register_f4_for_fields
        EXPORTING
          it_f4  = it_f4.
    "Once you try to pick the value HANDLE_DATA_CHANGED event will be triggered
    "Definition
         methods:
         handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
                                  IMPORTING er_data_changed e_onf4 e_onf4_before e_onf4_after,
    "Implementation
    METHOD handle_data_changed .
        DATA: ls_mod_cells TYPE lvc_s_modi.
        IF e_onf4_before = 'X'.
          MESSAGE 'Data changed before F4' TYPE 'I'.
        ENDIF.
        IF e_onf4 = 'X'.   "if event triggered by F4
          MESSAGE 'Data changed on F4' TYPE 'I'.
        ENDIF.
        IF e_onf4_after = 'X'.
          MESSAGE 'Data changed after F4' TYPE 'I'.
        ENDIF.
       "here you know which cell was modified
        LOOP AT er_data_changed->mt_mod_cells INTO ls_mod_cells.
         "just example test case, here you can implement your code for modified cells
          IF ls_mod_cells-value >=5.
            CALL METHOD er_data_changed->add_protocol_entry
              EXPORTING
                i_msgid     = 'SABAPDOCU'
                i_msgty     = 'E'
                i_msgno     = '888'
                i_msgv1     = 'Only numbers below 5 are possibe'
                i_msgv2     = 'Please correct'
                i_fieldname = ls_mod_cells-fieldname
                i_row_id    = ls_mod_cells-row_id.
            CALL METHOD er_data_changed->modify_cell
              EXPORTING
                i_fieldname = ls_mod_cells-fieldname
                i_row_id    = ls_mod_cells-row_id
                i_value     = space.
          ENDIF.
        ENDLOOP.
      ENDMETHOD.                    "handle_data_changed
    Edited by: sum_it2 on Nov 21, 2011 10:07 AM

  • Add users to the James Server Dyanamically

    Hi,
    How to add users Dynamically with out using telnet in James.
    I have to add the E-mail account in James Server through Program or Script any
    Is it possible? Helppppppp!!!
    Thanks,
    Ram

    Hello,
    You have to create a new alert for that user C or delete existing one and create new one for all. Ultimately all single alert will be part of collection so there is no harm to create multiple alerts.
    Refer this for your info:
    http://social.technet.microsoft.com/Forums/en-US/57c5c448-a3ef-4b2e-a1d9-3aaa99559277/is-it-possible-to-add-a-user-to-an-existing-user-alert-in-sharepoint-2010
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to configure USER CAL on SQL server 2008

    how to configure or Add User CAL on SQL server 2008?
    pls let me know the process

    Hello,
    There is no CAL management in SQL Server, you have the licenses only "on paper".
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How do I connect to a terminal server with my mac book pro

    How do I connect to a terminal server with my mac book pro

    Use the Remote Desktop icon on the tray and make sure to use the Fully Qualified Domain Name (FQDN) on the 'name of server' field.  If that does not work then use the IP address to connect.

  • How to add user defined tab in the Header level of T-Code O4NM?

    How to add user defined tab in the Header level of  T-Code O4NM?
    I tried with BADI but I cant able to find any BADI for it and also searched for screen exit too..

    Can you check the user exits,
    OIJNOM_N and OIJTKT_N
    Cheers,
    Balaji

  • How to add tns entry in names server

    Hi,
    Can anyone tell us, How to add tns entry in names server
    Thanks

    In the Net Manager utility, in the left-hand pane left click Oracle Names Servers, left click on your nameserver.
    Click the "+" button in the upper left, that should be enough to get you started- sorry, all our 9i installs have gone away, can't exactly recall the nix X gui version of client program, but I think* its netmgr, should be in OH/bin.
    If you're running a java OEM console that cames with 9i clients, Net Manager is available on that little Butler tab.
    And for the command line version, running the namesctl utility- you can save a tns entry with the connect string and run it in a file, just like sqlplus, with an @filename:
    vi newtns.txt
    register newtns -d (DESCRIPTION=(ADDRESS_LIST=...(SERVICE_NAME=NEWTNS.MYCO)))
    $ namesctl
    @newtns.txt
    query newtns *
    reload -- nameserver sync
    query newtns *
    exit
    $ Edited by: clcarter on Jul 7, 2011 3:26 PM
    added cmdline version

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to add users to group which is present in another AD domain?

    Hi,
    Using JNDI how to add user as a member of group which is present in another AD domain?
    For example: In AD forest test.com their are two domain a.test.com and b.test.com. Group is present in a.test.com and I want to add user present in b.test.com as a member of the group.
    Any pointer around this would be great help.

    See the below link to get an idea on group types.
    http://technet.microsoft.com/en-us/library/cc755692(v=ws.10).aspx
    If the group is a universal group, you can just add members similar to local group even if user and group are in different domains. That is by setting the member attribute of the group.

  • Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    Adobe Illustrator in out Terminal Server environment. How is the licensing work for Terminal Server installations?

    You can find all forums here:
    https://forums.adobe.com/welcome

  • How to add users to OSM using UserAdmin.xsd

    Hi,
    Can you please explain me how to add users to OSM using UserAdmin.xsd i.e xml import/export tool. I need the steps how to do that..
    Thanks in Advance,
    Menaka

    Hi Razvi444,
    You need to use submit data to web service in Submit button rule,where you can use above web service.
    Refer http://office.microsoft.com/en-in/infopath-help/submit-form-data-to-a-web-service-HA010107048.aspx more details
    Thanks

  • I have imac 10.6.8 how to add it to my domain server windows 2003

    i have imac 10.6.8 how to add it to my domain server windows 2003
    and .
    i cant find the directory access any

    One option is to create a new partition (~30- 50 GB), install the new OS, and ‘test drive’ it. If you like/don’t like it it, you can then remove the partition. Do a backup before you do anything. By doing this, if you don’t like it you won’t have to go though the revert process.
    Check to make sure your applications are compatible.
    Application Compatibility
    Applications Compatibility (2)

  • How to add a new printer into printer list?

    Dear all,
    May I know how to add new printer into my printer list in SAP system? My company SAP is SAP 4.0B. Can any one please teach me how to add printer step-by-step?
    Thanks alot!!
    PC

    Solved

  • Problem with Photoshop hangs/freezing for users on a terminal server

    Dear Forum!
    I'm having some trouble with Photoshop freezing over a period of ~20 minutes when you (1.) user the eraser with special brushes and (2.) copy and paste material from a PDF to Photoshop. As you might notice by the size of this post i'm getting quite depserate over here and need some help.
    A Little background information...
    Photoshop CS6 is installed on a terminal server with ~25 Active users where 3 of them are using Photoshop.
    The operating system on the server is Windows Server 2012 R2.
    There are no additional add-ons just a plain installation of Photoshop in that matter.
    The server uses 40-60% of the memory most of the time (mostly a bit less, some times a bit more but never 100%) and 40% of the CPU.
    There's enough space free on the disc.
    The problem in detail...
    There are two occasions where the freezing has occured most of the time. After it hangs for the first time, it will happen everytime you do any of the operations over a period of ~20 minutes and it's Mutual for all users. When it freezes, the whole terminal session freezes but the program i still responding (it's not getting set to "not responding") when viewed from Another user through the task manager. Ending the process as an administrator sometimes work, although from the moment i end he proces it takes about 10-60 seconds Before the program actually Closes and the user gets back Control. The easiest thing to do most of the time is if an administrator forces them to log out.
    1. The first occasion is when you use the eraser with a brush that's not standard but manually added. The names of the brush packages used are:
    Extacy__Elemental
    KKC_Fractal
    Kornkid's_Grunge_Set
    and the problem is with all brushes inside those packages. The way i evoke the problem is the following:
         1. Start Photoshop
         2. Create new
         3. Fill the background with any color
         4. Select the eraser tool
         5. Change the brush to one of the ones mentioned above
         6. Program freezes
    2. The second scenario when the problem occurs is when the users copy something from a PDF to Photoshop. The way i evoke this is:
         1. Open a PDF
         2. Select area and copy it
         3. Open Photoshop
         4. Create new
         5. Paste into Photoshop
         6. Program freezes
    Solutions we have tried so far...
    I've been working on this for several round now and i'm not entirely sure on what exactly i have done. I will try and do the following solutions once more but i'm pretty sure that i have tried most of them.
    Update graphic card drivers.
    Resetting all Tools:
         1. Select options for a tool
         2. choose "Reset all Tools"
    Resetting presets:
         1. Hold ctrl + shift + alt while Photoshop is starting
         2. select "yes"
    Tested if it matters if i have a pen connected or not, which it doesn't.
    Removed the special brushes (but it still freezes when copy/paste from PDF)
    Removed "save in background" and "automatically save recovery information" options
    Updated to latest version.
    Turned off OpenGL
    Solutions i haven't, but will try...
    Reinstall Photoshop
    Change font preview size
         1. Go to "type"
         2. select "Font prview size"
         3. select "none"
    Delete system font cache
    Close all Adobe applications including the Creative Cloud desktop app (if installed).
    Navigate to \Windows\ServiceProfiles\LocalService\Appdata\Local
    Delete the *FNTCACHE*.DAT or *FontCache*.dat files.
    NOTE: The asterisk (*) indicates various numbers, letters, or words, such as FontCache-S-1-5-21.dat or COFFfntCache.dat.
    Delete Photoshop font cache
    Exit Photoshop and the Creative Cloud desktop app (if installed).
    Navigate to the appropriate folder
    Photoshop CS6 and earlier.
    Windows XP: \Documents and Settings\Local Settings\Application Data\Adobe
    Windows 7: \Users\[user name]\AppData\Local\Adobe
    Photoshop CC and CC 2014
    Windows 7 and 8: \Users\[user name]\AppData\Roaming\Adobe\Adobe Photoshop CC or CC 2014
         3. Delete the TypeSupport folder (Photoshop CS6 and earlier) or the CT Font Cache folder (Photoshop CC and CC 2014), and empty the trash.
    Some links i have been using...
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://helpx.adobe.com/photoshop/kb/photoshop-cs6-gpu-faq.html#troubleshoot
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html

    Hi Mylenium!
    Thanks for your reply but since the users work on the terminal server via remote dektop the only data sent through the network is a "Picture" of what is happening on the server. All the operations are handled on and by the server and nothing is executed on the users local machine. Also all files are stored on the server therefore the load on the network is minimum.
    We are not the first in the World to run this setup and i know that this is possible to do since i've read about others running PS like this.
    Kind Regards,
    J. Alm

  • How to reset users and groups in Server.app?

    Recently after change settings in the Server.app (like turn off/on open directory, delete/add certificates), I got a strange problem:
    In the users and groups list, it display all local users and groups (looks like system users and groups, about 100 users and groups, but this is a new server)
    I tried reset the server.app by following
    howto reinstall/reinitialize os x server
    http://support.apple.com/kb/HT200271?viewlocale=en_US
    These users and groups still showing there.
    Have you seen this before and how can I completely reset the server.app to factory default so that I can start over the set up?

    In theory, that should restore the users.  You can do some surgery if you are really brave.  But the reinstall generally should be enough. 
    These accounts are in the DSLocal data store.  Basically, this is very similar to the any OS X machine.  Apple keeps a default copy of the Local Database here:
    /System/Library/DirectoryServices/DefaultLocalDB/Default
    Should you need to reset a machine to the default local database, you can remove the current database (/var/db/dslocal/nodes/Default) and then copy the default one to the same location.  I would not go this far unless the reinstall was unsuccessful. 
    To check, you can run this command:
    dscl . list /Users
    That will list all the Users in the local DB.   To get a count, pipe to wc
    dscl . list /Users | wc -l
    On a Server that I just jumped on, I see 79 users and 111 groups (dscl . list /Groups | wc -l)  But this is a system will man SACL groups so I likely have more than the default.
    Hope this continues to help.  Probably more info that you want. 
    Reid
    Apple Consultants Network
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store
    Author "Mavericks Server – Control and Collaboration" :: Exclusively available in Apple's iBooks Store

Maybe you are looking for