[XP] Hoe log je een user af via console?*

Pagina: 1
Acties:

  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
Als ik als user 1 (admin) in console zit, hoe log ik dan user 2 af?
Via shutdown -l kan dat bij jezelf, maar hoe via een andere user?

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
C:\Documents and Settings\Spaceface>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "c
omment"] [-d up:xx:yy]

        No args                 Display this message (same as -?)
        -i                      Display GUI interface, must be the first option
        -l                      Log off (cannot be used with -m option)
        -s                      Shutdown the computer
        -r                      Shutdown and restart the computer
        -a                      Abort a system shutdown
        -m \\computername       Remote computer to shutdown/restart/abort
        -t xx                   Set timeout for shutdown to xx seconds
        -c "comment"            Shutdown comment (maximum of 127 characters)
        -f                      Forces running applications to close without warning
        -d [u][p]:xx:yy         The reason code for the shutdown
                                u is the user code
                                p is a planned shutdown code
                                xx is the major reason code (positive integer less than 256)
                                yy is the minor reason code (positive integer less than 65536)


Dit is ongeveer wat het shutdown command teruggeeft... misschien attributen met andere commands?

Alvast bedankt!

  • Jazzy
  • Registratie: Juni 2000
  • Laatst online: 17:16

Jazzy

Moderator SSC/PB

Moooooh!

Bedoel je toevallige remote desktop op een Windows 2000 Server in remote administration-modus?

Exchange en Office 365 specialist. Mijn blog.


  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
Nee... Remote Admin (ook remote access tooltje) heeft problemen als 2 users tegelijk zijn ingelogged, omdat ie dan niet weet welke user die moet viewen (heel dom bugje) in XP.
Wat ik dus wil doen is dan op het command prompt inloggen, en dan die andere user uitloggen...

Verwijderd

Simpel.. ga naar taakbeheer CTRL+SHIFT+ESCAPE
ga naar gebruikers en kies voor uitloggen(afmelden)

Waarschijnlijk zegt een modder het straks ook wel, maar je moet het besturingssysteem vermelden in de topic, da's veel makkelijker voor ons..

  • Spider.007
  • Registratie: December 2000
  • Niet online

Spider.007

* Tetragrammaton

Welk Operating Systeem maak je gebruik van? Dan zet ik dat even in de TopicTitel (:+)

---
Prozium - The great nepenthe. Opiate of our masses. Glue of our great society. Salve and salvation, it has delivered us from pathos, from sorrow, the deepest chasms of melancholy and hate


  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

cmd -> logoff.exe

  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
logoff.exe geeft volgens mij niet de mogelijkheid een specifieke flag om een user aan te geven..
LogOff Syntax

--------------------------------------------------------------------------------


Note

Running LogOff without switches will cause the tool to ask for user confirmation and prompt to save unsaved data.

logoff [/F] [/N]

Where:

/F,/f
Forces running processes to close, but will ask for user confirmation. The user will not be asked to save unsaved data.
/N,/n
User will be logged-off without confirmation. However, the user will be prompted to save unsaved data.
Let wel, ik zit via het commandprompt van user 1 (admin) en wil user 2 uitloggen!

logoff.exe doet dat alleen voor de user zelf. Het kan tevens alleen vanuit het command prompt, grafische interface is niet beschikbaar, dat is juist het probleem (zie mijn 2e post)...

Het betreft hier trouwens Windows XP

edit:
Microsoft komt weer hier mee aan:
Logoff

Logs off a user from a session and deletes the session from the server.

Syntax
logoff [{SessionID|SessionName}] [/server:ServerName] [/v]

Top of page
Parameters
SessionID : Specifies the numeric ID which identifies the session to the server.

SessionName : Specifies the name of the session.

/server:ServerName : Specifies the terminal server containing the session whose user you want to log off. If unspecified, the server on which you are currently active is used.

/v : Displays information about the actions being performed.

/? : Displays help at the command prompt.

Top of page
Remarks
• You can always log off from the session to which you are currently logged on. You must, however, have Full Control permission to log off users from other sessions.

• Logging off a user from a session without warning can result in loss of data at the user's session. You should send a message to the user using the msg command to warn the user before taking this action.

• If no ID or name for the session is specified, logoff logs off the user from the current session. If you specify a session name, it must be an active one.

• When you log off a user, all processes end and the session is deleted from the server.

• You cannot log off a user from the console session.


Top of page
Examples
To log off a user from the current session, type:

logoff

To log off a user from a session using the session's ID, for example session 12, type:

logoff 12

To log off a user from a session using the name of the session and server, for example session TERM04 on server WF12, type:

logoff TERM04 /server:WF12
Wordt alleen niet echt wijzer van die sessions... iemand?

[ Voor 51% gewijzigd door apNia op 24-05-2004 15:13 ]


  • Bas_je
  • Registratie: Augustus 2003
  • Laatst online: 03-03-2025
als ik logoff /? vanuit de command prompt krijg ik dit:
code:
1
2
3
4
5
6
7
8
9
10
Een sessie afsluiten.

LOGOFF [sessienaam | sessie-ID] [/SERVER:servernaam] [/V]

  sessienaam     De naam van de sessie.
  sessie-ID       De ID van de sessie.
  /SERVER:servernaam  D Terminalserver van de gebruiker weergeven
                      af te melden sessie (de huidige sessie is als standaard
                      ingesteld).
  /V                  Gegevens weergeven over de uitgevoerde bewerkingen.

Als je bij je zelf Ctrl-Shift-Esc doet, dan naar het tabblad gebruikers toegaat daar zie je de gebruikers staan met het ID dit ID kun je weer gebruiken in combinatie met logoff.....

Suc6

while ( !$succeed ) { $try++ }


  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
Bas_je schreef op 24 mei 2004 @ 15:13:
als ik logoff /? vanuit de command prompt krijg ik dit:
code:
1
2
3
4
5
6
7
8
9
10
Een sessie afsluiten.

LOGOFF [sessienaam | sessie-ID] [/SERVER:servernaam] [/V]

  sessienaam     De naam van de sessie.
  sessie-ID       De ID van de sessie.
  /SERVER:servernaam  D Terminalserver van de gebruiker weergeven
                      af te melden sessie (de huidige sessie is als standaard
                      ingesteld).
  /V                  Gegevens weergeven over de uitgevoerde bewerkingen.

Als je bij je zelf Ctrl-Shift-Esc doet, dan naar het tabblad gebruikers toegaat daar zie je de gebruikers staan met het ID dit ID kun je weer gebruiken in combinatie met logoff.....

Suc6
is dat altijd een statisch ID en niet toegewezen a la DHCP om het maar stom te zeggen? ;)

  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
Zelf uitgetest en er achter gekomen dat ze worden toegewezen :(
Iemand enig idee hoe je de userlisting kan krijgen met bijbehorende ID's in command prompt?

  • Clueless
  • Registratie: Juli 2001
  • Laatst online: 05-05 15:32
Naar mijn weten wordt de gebruiker afgemeld zodra er een RDP-connectie is

* Clueless weet het niet zeker of het nu gelockt of afgemeld was....

@Spider.007: Wat ik uit de tekst kan opmaken is het WinXP

[ Voor 24% gewijzigd door Clueless op 24-05-2004 15:54 ]

I Don't Know, So Don't Shoot Me


  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Probeer 'quser' eens?

  • apNia
  • Registratie: Juli 2002
  • Laatst online: 15:53

apNia

Schreeuwen en Nibbits eten!

Topicstarter
volgens mij is dat geen XP command... op 2 bakken zelfde resultaat:
C:\Documents and Settings\Spaceface>quser
'quser' is not recognized as an internal or external command,
operable program or batch file.
Pagina: 1