Results 1 to 3 of 3

Thread: Running EXE as System

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Location
    United Kingdom
    Posts
    3

    Question Running EXE as System

    Hello,
    I am designing some security software for Windows 2000/XP and 2003 operating systems and my problem is trying to run the EXE as SYSTEM or any account with Administrator rights. The program should be lauched as soon as a user logs onto the system. An example user may look like this

    Username: Jimbo (Limited User)
    Username: Adam(System Administrator)

    Policies
    Jimbo -> No Start Menu
    Jimbo -> No CMD prompt
    Adam -> No Save Settings

    so when jimbo logs on to the system I want the policies to be imedatley written to the registry and then continue with windows daily jobs . But theres another problem what is Jimbo wants to cancel the task with Task Manager then my EXE will be killed, unless its ran as System. So how do I start the exe as an administrator and run before any other process. I lookforward to your replys.

    Kind Regards,
    Robert A Heeley

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: Running EXE as System

    Well, this should be done by something like Active directory, as I believe any changes of this sort to the registry, even if done by your app, would require a log off and log on to put into effect. However, if the task manager killing your app is your only concern, you can just disable it in the registry too. Add this key:

    HKCU/Software/Microsoft/Windows/CurrentVersion/Policies/System/DisableTaskMgr

    and set the value to 1.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Location
    United Kingdom
    Posts
    3

    Re: Running EXE as System

    Hello,
    There is some software called "***********" which manages to do this you wont need to log off/log on again just restart Explorer.exe and that should do the trick. I dont want to disable task manager just the ending of my critical process.
    Kind Regards,
    Robert A Heeley
    http://www.rahsoftware.com
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width