Another Script problem

Discussion in 'ASP General' started by Mosley, Jul 8, 2003.

  1. Mosley

    Mosley Guest

    I get permission not held when running as Administrator, it should log user
    off

    Sub ShutDown()

    Dim Connection, WQL, SystemClass, System

    Set Connection = GetObject("winmgmts:root\cimv2")
    WQL = "Select Name From Win32_OperatingSystem"
    Set SystemClass = Connection.ExecQuery(WQL)

    For Each System In SystemClass
    System.Win32ShutDown (0)
    Next

    End Sub


    Any ideas
    Mosley, Jul 8, 2003
    #1
    1. Advertising

  2. Mosley

    Atrax Guest

    Atrax, Jul 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rajat
    Replies:
    3
    Views:
    695
    Jorgen Grahn
    Jan 8, 2010
  2. VYAS ASHISH M-NTB837
    Replies:
    2
    Views:
    555
    Jan Kaliszewski
    Jan 7, 2010
  3. Robert Cohen
    Replies:
    3
    Views:
    270
    Andrew Durstewitz
    Jul 15, 2003
  4. vikrant
    Replies:
    4
    Views:
    278
  5. Martin Landa
    Replies:
    6
    Views:
    74
    Cameron Simpson
    Mar 26, 2014
Loading...

Share This Page