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. Database & SysAdmin
  3. System Admin
  4. Elevating privileges for a non-priv'd user?

Elevating privileges for a non-priv'd user?

Scheduled Pinned Locked Moved System Admin
adobesalestoolshelpquestion
3 Posts 3 Posters 2 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.
  • C Offline
    C Offline
    charlieg
    wrote on last edited by
    #1

    In my current customer's environment, we have Windows 7 machines on the factory floor that production people use to get their job done. The accounts they use are quite restricted - historical reasons ;). Anyway, one thing one of these machines needs to do is some low level formatting of compact flash cards. The commands used require accessing very low level operations like DISKPART, etc, so permissions must be elevated for the script to be able to run. Normally, I would run this script on my laptop by right clicking on it and Running As Administrator, supply the password and off we go. But we cannot give the admin password out, just not a good idea. Is there any way to install or set up a script with elevated permissions? I've not done anything like this before, but off the cuff, I'm thinking creating a simple service, installed with priv's and having the non-priv'd script send it a request. Ideas?

    Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

    D Richard DeemingR 2 Replies Last reply
    0
    • C charlieg

      In my current customer's environment, we have Windows 7 machines on the factory floor that production people use to get their job done. The accounts they use are quite restricted - historical reasons ;). Anyway, one thing one of these machines needs to do is some low level formatting of compact flash cards. The commands used require accessing very low level operations like DISKPART, etc, so permissions must be elevated for the script to be able to run. Normally, I would run this script on my laptop by right clicking on it and Running As Administrator, supply the password and off we go. But we cannot give the admin password out, just not a good idea. Is there any way to install or set up a script with elevated permissions? I've not done anything like this before, but off the cuff, I'm thinking creating a simple service, installed with priv's and having the non-priv'd script send it a request. Ideas?

      Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

      D Offline
      D Offline
      den2k88
      wrote on last edited by
      #2

      To address a similar problem I found out this.[^]. See if it suits your needs. Hope that helps, Denis

      1 Reply Last reply
      0
      • C charlieg

        In my current customer's environment, we have Windows 7 machines on the factory floor that production people use to get their job done. The accounts they use are quite restricted - historical reasons ;). Anyway, one thing one of these machines needs to do is some low level formatting of compact flash cards. The commands used require accessing very low level operations like DISKPART, etc, so permissions must be elevated for the script to be able to run. Normally, I would run this script on my laptop by right clicking on it and Running As Administrator, supply the password and off we go. But we cannot give the admin password out, just not a good idea. Is there any way to install or set up a script with elevated permissions? I've not done anything like this before, but off the cuff, I'm thinking creating a simple service, installed with priv's and having the non-priv'd script send it a request. Ideas?

        Charlie Gilley Stuck in a dysfunctional matrix from which I must escape... "Where liberty dwells, there is my country." B. Franklin, 1783 “They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        charlieg wrote:

        I'm thinking creating a simple service, installed with priv's and having the non-priv'd script send it a request.

        That sounds like a good solution. :thumbsup:


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        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