Re: Remote Log Off In Java



christopher_board@xxxxxxxxxxx wrote in news:1193318701.711667.68540@
22g2000hsm.googlegroups.com:

Hi all, I am currently trying to develop a java application that
allows the user to shutdown or restart a room full of computers at a
time. I would also like the user to have the option to log off the
user on a computer or on multiple computers. The computers are being
shutdown and restarted by using the command prompt, for example,
shutdown -m \\computername -s -t 10 -f. what would be the simplest way
to allow the user to perform a remote log off on a computer.

Any help in this matter would be highly appreciated.

1. Java is multi-platform. What platform(s) are the computers that you are
wishing to shut down/log off? The steps necessary to shut down and/or log of
a Windows computer are going to be drastically different from the steps
necessary to shut down a Sun Sparcstation, a Mac, or a linux machine.

2. Google (Groups) is your friend. You should search this group's archives
for the dozens of queries similar to yours that have been posted within the
past several months.

3. Is there a particular reason that you're wanting to do this in Java?
Other languages which are more intimately connected to the Windows API (e.g.
C++, C) are probably much better-suited for this sort of a task, assuming
that all you're wanting to shut down are Windows boxes.


Cheers!
GRB




--
---------------------------------------------------------------------
Greg R. Broderick usenet200705@xxxxxxxxxxxxxxxxxxxxx

A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
.



Relevant Pages

  • Re: Remote Shutdown Batch Script
    ... > I had a question concerning the creation of a DOS batch or Windows ... which can shutdown computers that remain on at night. ...
    (microsoft.public.windows.server.scripting)
  • Re: shutdown is very slow now (also: "$NtUninstall" files...)
    ... > affects the operation of Windows - usually in a negative manner. ... This is most notable in Shutdown. ... computers once a day or even less frequently. ... deleting these files will only be a stopgap measure. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Restart option only
    ... That just makes restart the default but the user here can select shutdown and ... "Jerold Schulman" wrote: ... I have instructed my users to restart their computers at the end ...
    (microsoft.public.win2000.group_policy)
  • Have a restart only on the log on screen.
    ... I'm running a quite few computers that run dual disks, ... windows 2000, and linux. ... I know you can disable the 'shutdown' buttons, ... At night times, we have a sysadmin for linux, and hes ...
    (microsoft.public.win2000.general)
  • Re: Can i restart a lot of pcs
    ... it can restart systems from AD Users and Computers. ... > or must i use Windows Scheduled Utitlity and schedule a reboot ... I believe you can with the line-mode command, shutdown. ...
    (microsoft.public.windows.group_policy)