Re: Can't modify config.msi

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam_at_hydro.com)
Date: 01/21/04


Date: Wed, 21 Jan 2004 03:42:38 +0100

XPHomeUser wrote:

> I cannot install any programs. I get the error "Could not set file security for file c:\config.msi\. Error: 5 Verify that you have sufficient privileges to modify the security permissions for this file.
>
> I am logged in as a computer administrator. I just reformatted my system and installed XP. There is only one account on the box and it is mine. I modified "Owner" to be mine.

Hi

You need to check the ACLs on your C drive's root folder.

In a command prompt (cmd.exe), run the following command:

    cacls.exe c:\

Does the output include this two lines (there will be several other lines, indicated with ...):

    ...
    BUILTIN\Administrators:(OI)(CI)(IO)F
    ...
    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
    ...

If you don't have those two lines exactly as listed above, you or some program has messed with the rights settings on the root folder, and that is very likely the cause of your problem.

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Relevant Pages

  • Re: SP2 installation internal error...
    ... >> well, the file icon doesn't look like the standard Command Prompt icon does, ... >> typical command prompt black background icon). ... >> any permissions set up in my multiple user accounts I can't find any. ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.windowsupdate)
  • Re: How to change the working directory of application launched from a script?
    ... The problem is that I need to launch ... >ShellExecute method with a Working Directory parameter: ... >To close the command prompt after launch of myprog.exe, ... >torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.wsh)
  • Re: DOS .... Command Prompt ..... Batch Files
    ... >The popular scripting languages are VBscript, ADSI, WMI,WSH, ETC. ... >networks. ... >* How useful is it to be able to write batch files and run them from the ... >command prompt to help manage the typical network? ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Editing Registry
    ... a Command Prompt on each PC, ... With a bit of scripting you can even ... automate the process. ... You can add your own settings this way too. ...
    (microsoft.public.windows.server.general)
  • Re: Unwanted Network config. changes after sysprep.
    ... but you might want to check out the Scripting ... And, standard, there is also the NetSH command line interface with such ... netsh interface ip set address ... Just to get an idea on how-to in a command prompt type: ...
    (microsoft.public.windowsxp.setup_deployment)