Windows 7 and UAC

Posted on 2011-04-19
Last Modified: 2012-05-11
Hi guys hope you are well and can assist.


Environment: WinXP and Win7 machines.

Task: Copy a file to the %windir%\system32 folder.

Outcome: Works for XP, does not work for Windows 7, even if you run the task as a domain admin - you get access denied. It WILL work however, if you run the task as ADMINISTRATOR.

Now, I know that this is UAC.

My question is.

Now, we use Altiris to deploy batch files to 1000s of machines. This runs as domain admin.
How can you run a batch file with elevated privileges so that you can write to the system32 folder on Windows 7 machines?

Any help greatly appreciated.
Question by:Simon336697
    LVL 1

    Accepted Solution

    Can you use the Altiris to deploy/run the batch file with elevate privileges?
    LVL 1

    Author Comment

    I am running the Altiris job with DOMAIN ADMIN rights.

    Is that what you mean by elevated privileges?
    LVL 15

    Assisted Solution

    Has you tryed running as batch files under network context ?
    LVL 7

    Assisted Solution

    Do you have applocker enabled. If so check to see if it may be blocking it.
    LVL 1

    Author Comment

    Hi we don't have app locker enabled.
    Guys we run other scripts that run fine. The difference with this one is that windows 7 is denying access, even by domain admins, to write to the system32 folder. I suspect this is UAC, but don't know how to overcome this.
    LVL 15

    Expert Comment

    That is because system32 is owned and protected by trustedinstaller.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Suggested Solutions

    I recently purchased an HP EliteBook 2540p notebook/laptop. It has two video ports on it – VGA and DisplayPort. HP offers an optional docking station for the 2540p that also has both a VGA port and a DisplayPort. There are numerous online reports do…
    First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
    This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
    This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now