Unrestrict cmd.exe for normal users in XP

This is a discussion on Unrestrict cmd.exe for normal users in XP within the Tech Board forums, part of the Community Boards category; Dang, I havent posted here in a long time. Alright, so i've written alittle something to force shutdown of the ...

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

    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
    Location
    Boston, Massachusetts
    Posts
    870
    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
    Posts
    2,544
    It sounds like you have found a bug in shutdown.exe. There is a workaround here.

  4. #4
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,474
    or you can use runas I think
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  5. #5
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136
    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, 07:18 AM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06:05 PM
  4. Windows XP regression over time
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 12-17-2002, 09:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21