Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SYSTEM account to user account

SYSTEM account to user account

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Eikthrynir
    wrote on last edited by
    #1

    Hello! I have an application that runs under the SYSTEM account (it's a Windows service). Is there any possibility that I can make the service run under a limited user account? (I want to make the application access the network resources; running under SYSTEM forbiddens me to do that) I must mention that I cannot afford to restart the SYSTEM application or create another process from it, that runs under that limited user account. So, what I want is to make the service appear like running under the limited user account, on-the-fly, if I am permited to say it this way... I've already tried ImpersonateLoggedOnUser(), but the application still runs under SYSTEM and I cannot connect to a proxy server this way. Can anyone help? Thanks in advance!

    J M 2 Replies Last reply
    0
    • E Eikthrynir

      Hello! I have an application that runs under the SYSTEM account (it's a Windows service). Is there any possibility that I can make the service run under a limited user account? (I want to make the application access the network resources; running under SYSTEM forbiddens me to do that) I must mention that I cannot afford to restart the SYSTEM application or create another process from it, that runs under that limited user account. So, what I want is to make the service appear like running under the limited user account, on-the-fly, if I am permited to say it this way... I've already tried ImpersonateLoggedOnUser(), but the application still runs under SYSTEM and I cannot connect to a proxy server this way. Can anyone help? Thanks in advance!

      J Offline
      J Offline
      JudyL_MD
      wrote on last edited by
      #2

      Look at the final two parameters to the CreateService function. Judy

      1 Reply Last reply
      0
      • E Eikthrynir

        Hello! I have an application that runs under the SYSTEM account (it's a Windows service). Is there any possibility that I can make the service run under a limited user account? (I want to make the application access the network resources; running under SYSTEM forbiddens me to do that) I must mention that I cannot afford to restart the SYSTEM application or create another process from it, that runs under that limited user account. So, what I want is to make the service appear like running under the limited user account, on-the-fly, if I am permited to say it this way... I've already tried ImpersonateLoggedOnUser(), but the application still runs under SYSTEM and I cannot connect to a proxy server this way. Can anyone help? Thanks in advance!

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Also, maybe there's some useful info here: Service User Accounts[^] Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups