1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to log off a user remotly

Discussion in 'Windows Server 2003 / 2008 / 2012 Exams' started by jhon cena, Apr 6, 2011.

  1. jhon cena

    jhon cena Bit Poster

    18
    0
    2
    hi

    if i have 2 servers,remote desktop is disabled on them

    if a user1 is log on to server A locally
    and i`m log on to server B locally

    so how can i log off the user1 remotly ?

    what is the command used here?
     
  2. SimonD

    SimonD Terabyte Poster Moderator

    3,463
    397
    199
    Have a look at RWINSTA and QWINSTA, one resets, the other queries.
     
    Certifications: CNA | CNE | CCNA | MCP | MCP+I | MCSE NT4 | MCSA 2003 | Security+ | MCSA:S 2003 | MCSE:S 2003 | MCTS:SCCM 2007 | MCTS:Win 7 | MCITP:EDA7 | MCITP:SA | MCITP:EA | MCTS:Hyper-V | VCP 4 | ITIL v3 Foundation | VCP 5 DCV | VCP 5 Cloud | VCP6 NV | VCP6 DCV | VCAP 5.5 DCA
    WIP: VCP6-CMA, VCAP-DCD and Linux + (and possibly VCIX-NV).
  3. Sparky
    Highly Decorated Member Award

    Sparky Zettabyte Poster Moderator

    10,191
    299
    319
    Try shutdown /i
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) Security+ Network+ A+
    WIP: Exchange 2007\2010
  4. SimonD

    SimonD Terabyte Poster Moderator

    3,463
    397
    199
    Umm that will shutdown or reboot the server, not log off a user, rwinsta should be all he needs.
     
    Certifications: CNA | CNE | CCNA | MCP | MCP+I | MCSE NT4 | MCSA 2003 | Security+ | MCSA:S 2003 | MCSE:S 2003 | MCTS:SCCM 2007 | MCTS:Win 7 | MCITP:EDA7 | MCITP:SA | MCITP:EA | MCTS:Hyper-V | VCP 4 | ITIL v3 Foundation | VCP 5 DCV | VCP 5 Cloud | VCP6 NV | VCP6 DCV | VCAP 5.5 DCA
    WIP: VCP6-CMA, VCAP-DCD and Linux + (and possibly VCIX-NV).
  5. Sparky
    Highly Decorated Member Award

    Sparky Zettabyte Poster Moderator

    10,191
    299
    319
    Aye, but it gets them off the server though. :biggrin
     
    Certifications: MSc MCSE MCSA:M MCSA:S MCITP:EA MCTS(x5) Security+ Network+ A+
    WIP: Exchange 2007\2010
  6. zebulebu

    zebulebu Terabyte Poster

    3,748
    330
    187
    From another server, open up the run dialog and type 'tsadmin'. When the TS Manager pops up, under 'Actions', click 'Connect to computer', type in the name of the computer you want to reset a TS session on, wait for it to enumerate the session then log off the session you want in the 'Users' pane.
     
    Certifications: A few
    WIP: None - f*** 'em
  7. steve_p1981

    steve_p1981 Byte Poster

    236
    5
    30
    i like the avatar and sig zebulebu. that looks strangely like kobems................................ lol
     
    Certifications: A+ 220-701 and 220-702
    WIP: none at current but poss 70-680 soon
  8. jhon cena

    jhon cena Bit Poster

    18
    0
    2
    great information

    really thanks

    ok what about tools

    in my way to study 70-290 exam

    compmgmt.msc is used also to make other users log off

    but how ?
     
  9. kevicho

    kevicho Gigabyte Poster

    1,219
    58
    116
    Go into the compmgmt console
    connect to remote computer
    Expand system tools
    Exapnad shared folders
    Click sessions
    right click the user
    click close session

    This will not log off a local user rather ones running a terminal session
     
    Certifications: A+, Net+, MCSA Server 2003, 2008, Windows XP & 7 , ITIL V3 Foundation
    WIP: CCNA Renewal
  10. jhon cena

    jhon cena Bit Poster

    18
    0
    2
    thanks kevicho

    for your help :)
     
  11. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224

    Don't start.
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685
  12. SimonD

    SimonD Terabyte Poster Moderator

    3,463
    397
    199
    You do realise that RWINSTA and QWINSTA are part of the OS and run from the command line, all it takes is about 30 seconds to query and remove remote users?
     
    Certifications: CNA | CNE | CCNA | MCP | MCP+I | MCSE NT4 | MCSA 2003 | Security+ | MCSA:S 2003 | MCSE:S 2003 | MCTS:SCCM 2007 | MCTS:Win 7 | MCITP:EDA7 | MCITP:SA | MCITP:EA | MCTS:Hyper-V | VCP 4 | ITIL v3 Foundation | VCP 5 DCV | VCP 5 Cloud | VCP6 NV | VCP6 DCV | VCAP 5.5 DCA
    WIP: VCP6-CMA, VCAP-DCD and Linux + (and possibly VCIX-NV).
  13. kevicho

    kevicho Gigabyte Poster

    1,219
    58
    116
    I think for exam purposes knowing the MMC way to get to things is MS's preferred "brownie points" way, but thanks for these commands, not had to boot anyone off a terminal server in months, will definitely be having a look at using these commands in some sort of vbscript so our techies can do this in future ;)
     
    Certifications: A+, Net+, MCSA Server 2003, 2008, Windows XP & 7 , ITIL V3 Foundation
    WIP: CCNA Renewal
  14. Alex Wright

    Alex Wright Megabyte Poster

    501
    9
    57
    To query who's logged onto the server run this command at an Administrative Command Prompt:

    query session /server:<server name>

    Once you know the session ID you can reset it by running this command:

    reset session <session id> /server:<server name>

    But like other people have said, if it's for exam purposes you'll be expected to know how to reset the session using the Computer Management console.

    Regards,

    Alex
     
    Certifications: 70-680 Configuring Windows 7
    WIP: 70-642
  15. jhon cena

    jhon cena Bit Poster

    18
    0
    2
    what about

    logoff.exe
     
  16. kevicho

    kevicho Gigabyte Poster

    1,219
    58
    116
    Also have a look at PSTOOLS, in particular PSEXEC, useful for executing commands on remote machines
     
    Certifications: A+, Net+, MCSA Server 2003, 2008, Windows XP & 7 , ITIL V3 Foundation
    WIP: CCNA Renewal

Share This Page

Loading...