Announcement

Collapse
No announcement yet.

Windows Logoff script in Java or VB

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Windows Logoff script in Java or VB

    Hi,

    I want to make a button or link in website to logoff from from windows means whenever user will click on it it will logoff him from windows and give him Ctrl+Alt+Del window.

    thanks.

  • #2
    Re: Windows Logoff script in Java or VB

    Originally posted by fsidiqui View Post
    a button or link in website to logoff from from windows
    Are you sure that is a good idea? What kind of problem you are trying to solve anyway? You could initiate a logoff by building a HTA, a shell object and launching logoff.exe, but user needs to allow the HTA to be run first.

    -vP

    Comment


    • #3
      Re: Windows Logoff script in Java or VB

      Thanks for replying,

      Basically, We are making one user for using as Kiosk. Everything is working fine but other users cannot logout when they finish there work because there is no link. And we don't want user to go and click on the start button to logoff. Kiosk user has nothing in his profile because we disable almost everything from Group Policy.

      Comment


      • #4
        Re: Windows Logoff script in Java or VB

        Originally posted by fsidiqui View Post
        we don't want [kiosk] user to go and click on the start button to logoff.
        You could build the kiosk so that user logons are not needed at all. If logon/-offs are required for housekeeping (clearing cache, saved passwords and whatnot), you might be able to create a shortcut on the desktop for launching logoff.exe. Another way would be using the link approach to launch the logoff.exe, but you need to set up the trust relationship. Otherwise HTA can't be run. Take a look at this MSDN article about HTA programming.

        -vP

        Comment


        • #5
          Re: Windows Logoff script in Java or VB

          Thanks for replying, I did following codes and they are running on server without any problem. but client side I am getting Permission Denied error msg.

          <html>
          <head>
          <script language="VBScript">
          Sub RunProgram
          Const NORMAL_WINDOW = 1
          Set objShell = CreateObject("Shell.Application")
          objShell.ShellExecute "logoff.exe"
          End Sub
          </script>
          </head>
          <body>
          <button onclick="RunProgram">Run Program</button> <p>
          </body>
          </html>

          Comment


          • #6
            Re: Windows Logoff script in Java or VB

            Make sure your kiosk configuration won't prevent running programs like logoff.exe. Check IE setting so that you allow HTA application to be run.

            -vP

            Comment

            Working...
            X