Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6155493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:26:41+00:00 2026-05-23T20:26:41+00:00

My application needs to run with administrator privileges because of some specific phone components.

  • 0

My application needs to run with administrator privileges because of some specific phone components.

I’ve build an executable that does nothing else than calling the real application with the specific local administrator account (username and password).

I use the ProcessStartInfo and Process class for this purpose.

The problem: Some word interop is being done and the required word templates are stored on a unc share.

Local admin -> no domain/network context -> no access to shares.

Are there any other solutions than these two:

  • put a domain account into the administrator group on the affected machines and call the app. with this user
  • put the word templates onto the local drive

Maybe there are some uac elevation experts out there?

I think the best way would be to temporarily switch back to the “real” domain user context, but I don’t know how this should work without providing his credentials…

Thanks for reading – and maybe feedback!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:26:42+00:00Added an answer on May 23, 2026 at 8:26 pm

    Having that small application, which knows the administrator password is a security nightmare. Have you tried opening the .exe for your small app in notepad? I’m fairly sure that the password will be there – in plaintext for anyone to read.

    It is far better to solve this by giving the user running the app the required privileges. Full administrator access is very seldom required. Have you tried looking into exactly what the phone app needs? Sysinternal’s Process Monitor is often very good to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on an application written in C that needs to run executable
My application needs to run some scripts, and I must be sure that the
I am looking to build a web application which needs to run resource-intensive MCMC
I'm working on a multi-monitor kiosk application that needs to run full-screen on both
I'm looking at building an application that needs to be run on a user's
I am building an application for the ipod touch that needs to run for
I created an application that had a signed assembly manifest to run as administrator,
I have a console application that require to use some code that need administrator
A .NET 4.0 application needs to run without errors after system upgrade from Windows
I'm working on iphone application which needs to run offline at an exhibition. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.