Thread: Unrestrict cmd.exe for normal users in XP

  1. #1
    Seven years? civix's Avatar
    Join Date
    Jul 2002

    Unrestrict cmd.exe for normal users in XP

    Dang, I havent posted here in a long time.

    Alright, so i've written alittle something to force shutdown of the computer via a system call after 60 minutes. This is to prevent the kids from being on past an hour. So when I run it from a normal user account, I get the following error in the command window:

    "The operation completed successfully.
    A required privledge is not held by the client."

    I've searched the local security policy for a way to make this work, and alas, found nothing.

    Any suggestions?

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Boston, Massachusetts
    Is there anything in XP like sudo?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    It sounds like you have found a bug in shutdown.exe. There is a workaround here.

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Rishon LeZion, Israel
    or you can use runas I think
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    David J. Wheeler

  5. #5
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Why don't you use the security context of an account with the correct privileges?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with program
    By HAssan in forum C Programming
    Replies: 8
    Last Post: 06-10-2007, 08:05 PM
  2. Function validation.
    By Fhl in forum C Programming
    Replies: 10
    Last Post: 02-22-2006, 08:18 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. Windows XP regression over time
    By DavidP in forum A Brief History of
    Replies: 15
    Last Post: 12-17-2002, 10:49 AM