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.
snyderkvAsked:
Who is Participating?
 
John GriffithConnect With a Mentor ConsultantCommented:
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

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="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

0
 
vaska94Connect With a Mentor Commented:
Try editing with some Live CD or Safe Mode
0
 
snyderkvAuthor Commented:
Rock on thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.