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 7128911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:11:15+00:00 2026-05-28T11:11:15+00:00

On Windows 7, I have a command-line program that fails due to file write permission

  • 0

On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an ‘unknown publisher’.

However, if I start my console by right clicking and choosing ‘run as administrator’, then the install works fine, even if the UAC dialogs are still present.

My user is already a member of the ‘administrators’ group, so what precisely does ‘run as administrator’ do that makes my install work?

My specific question is precisely: What does ‘run as administrator’ do? Neither of the answers thus far address this. (for example, does it run the new process as the ‘Administrator’ user? Or does it run the process as the current user, but with elevated privileges? If so, what privileges? How does that differ from the privileges I get from my user being in the ‘Administrators’ group?

(Specifically, I’m using the ‘Console’ from SourceForge, not a regular CMD window, but I don’t think that’s important. This is all while installing the Python ‘distribute’ package by running ‘python distribute_setup.py’ on a newly installed Python3 MSI from python.org. It’s a 32-bit Python on 64-bit Windows. See Installing Python and distribute on Windows 7 gives "Writing failed … permission denied")

  • 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-28T11:11:16+00:00Added an answer on May 28, 2026 at 11:11 am

    When you log on Windows creates an access token. This identifies you, the groups you are a member of and your privileges. And note that whether a user is an administrator or not is determined by whether the user is a member of the Administrators group.

    Without UAC, when you run a program it gets a copy of the access token, and this controls what the program can access.

    With UAC, when you run a program it gets a restricted access token. This is the original access token with “Administrators” removed from the list of groups (and some other changes). Even though your user is a member of the Administrators group, the program can’t use Administrator privileges.

    When you select “Run as Administrator” and your user is an administrator the program is launched with the original unrestricted access token. If your user is not an administrator you are prompted for an administrator account, and the program is run under that account.

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

Sidebar

Related Questions

I have a Qt application in Visual Studio 2005 which is linked using \subsystem:windows such that
I have a program (jhead) that compiles with very few tweaks for both Windows
I have a C# service that works without any problems on my laptop (Windows 7).
Windows Forms allows you to develop Components, non-visual elements that can have a designer.
I am using XAMPP on Windows Vista. In my development, I have http://127.0.0.1/test_website/ . How
I have written a WiX installer that works perfectly with Windows XP, but when
    I have made an application already that sends commands to an activated window. I
I have tried to restore a database in SQL Server 2005 enterprise edition on Windows
I have set the %HOME% environment variable on my Windows installation. In that folder
I have developed a windows service using C# and Visual Studio 2008. I have Windows XP SP2

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.