Vista can't modify files (Access Denied)

Posted on 2009-12-26
Last Modified: 2012-05-08
I have tried stopping all the services including running as DA and local Administrator with no luck. This was easy in XP however, VISTA as usuall is really pissing me off. I'm trying to customize the delegwiz.inf file inside the system32 folder with no luck.

Then I run a scheduled tasks to run as the system account oh but It doesn't run the cmd for me interactively so I run it from the GUI but it still doesn't open a CMD prompt,why am I not suprised.
Question by:snyderkv
    LVL 5

    Assisted Solution

    Try editing with some Live CD or Safe Mode
    LVL 12

    Accepted Solution

    The "Trusted Installer" is the actual owner of the delegwiz.inf file.  You need to take ownership first, then change file permissions.  Copy/Paste the reg code in the code box into a notepad; save it with .reg  file extension.  It adds the "Take Ownership" to your right-click context menu.
    Locate file, RIGHT-click, select "Take Ownership"
    As for the cmd prompt - run it at an elevated administrative level - try bringing up cmd this way -
    START | type cmd.exe | RIGHT-click on cmd.exe | select "run as administrator"
    You may be interested in activating the Vista hidden admin account - no UAC for it; it has the admin token for elevation.  Using same ELEVATED cmd screen -
    net user administrator /active:yes

    Windows Registry Editor Version 5.00
    @="Take Ownership"
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    @="Take Ownership"
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"

    Open in new window


    Author Comment

    Rock on thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    As network administrators; we know how hard it is to track user’s login/logout using security event log (BTW it is harder now in windows 2008 because user name is always “N/A” in the grid), and most of us either get 3rd party tools, or just make our…
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
    The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

    779 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

    20 Experts available now in Live!

    Get 1:1 Help Now