Question : 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.

Answer : Vista can't modify files (Access Denied)

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

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
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"
Random Solutions  
 
programming4us programming4us