[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

Vista can't modify files (Access Denied)

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.
2 Solutions
Try editing with some Live CD or Safe Mode
John GriffithCommented:
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

snyderkvAuthor Commented:
Rock on thanks

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now