Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Vista - Set rights with Icacls

Reply
 
Old 07-12-2007   #1 (permalink)
Beat


 
 

Set rights with Icacls

Hi there,
I'd like to change the rights for a folder in c:\program files\... with the
command Icacls. But I always get the result permission denied.
What parameter should I use?

Any help will be appreciated.

My System SpecsSystem Spec
Old 07-12-2007   #2 (permalink)
Kerry Brown


 
 

Re: Set rights with Icacls

"Beat" <Beat@discussions.microsoft.com> wrote in message
news105F1B9-D143-45F1-BD1F-1B52D9349EEF@microsoft.com...
> Hi there,
> I'd like to change the rights for a folder in c:\program files\... with
> the
> command Icacls. But I always get the result permission denied.
> What parameter should I use?
>
> Any help will be appreciated.



You need to do this from an elevated command prompt. Right click on the
Command Prompt icon and pick Run as administrator.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


My System SpecsSystem Spec
Old 07-12-2007   #3 (permalink)
Beat


 
 

Re: Set rights with Icacls

Hi Kerry,
Thanks for the good help.
This works great but the next problem is to run this from a Installer where
I have only the "normal" command prompt. I want to do this during the install
process. So we could save the update for this user directly in this folder
and delete the old one.

Thanks again.
beat

"Kerry Brown" wrote:

> "Beat" <Beat@discussions.microsoft.com> wrote in message
> news105F1B9-D143-45F1-BD1F-1B52D9349EEF@microsoft.com...
> > Hi there,
> > I'd like to change the rights for a folder in c:\program files\... with
> > the
> > command Icacls. But I always get the result permission denied.
> > What parameter should I use?
> >
> > Any help will be appreciated.

>
>
> You need to do this from an elevated command prompt. Right click on the
> Command Prompt icon and pick Run as administrator.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>

My System SpecsSystem Spec
Old 07-12-2007   #4 (permalink)
Kerry Brown


 
 

Re: Set rights with Icacls

"Beat" <Beat@discussions.microsoft.com> wrote in message
news:EFB3746D-1DF5-482B-A4BF-7FE0928316AF@microsoft.com...
> Hi Kerry,
> Thanks for the good help.
> This works great but the next problem is to run this from a Installer
> where
> I have only the "normal" command prompt. I want to do this during the
> install
> process. So we could save the update for this user directly in this folder
> and delete the old one.
>
> Thanks again.
> beat
>



Then the installer has to be "Run as administrator" or ask Vista for
administrator privileges. There is no way to do administrator actions
without running into UAC if UAC is turned on. If you are writing an
installer you have to assume UAC is on.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


My System SpecsSystem Spec
Old 07-13-2007   #5 (permalink)
Beat


 
 

Re: Set rights with Icacls

Hi Kerry,
If I execute the command "runas /user:administrator" I have to fill in the
Adminitratonpassword witch I don't have.
What about the second solution? What is to do correctly?

Thanks!
beat

"Kerry Brown" wrote:

> "Beat" <Beat@discussions.microsoft.com> wrote in message
> news:EFB3746D-1DF5-482B-A4BF-7FE0928316AF@microsoft.com...
> > Hi Kerry,
> > Thanks for the good help.
> > This works great but the next problem is to run this from a Installer
> > where
> > I have only the "normal" command prompt. I want to do this during the
> > install
> > process. So we could save the update for this user directly in this folder
> > and delete the old one.
> >
> > Thanks again.
> > beat
> >

>
>
> Then the installer has to be "Run as administrator" or ask Vista for
> administrator privileges. There is no way to do administrator actions
> without running into UAC if UAC is turned on. If you are writing an
> installer you have to assume UAC is on.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>

My System SpecsSystem Spec
Old 07-13-2007   #6 (permalink)
Kerry Brown


 
 

Re: Set rights with Icacls

You need to create a manifest for the installer/upgrade program. When the
program is run UAC will prompt for credentials. An administrator will have
to enter the credentials.

http://www.google.com/search?hl=en&q...soft.com&meta=

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"Beat" <Beat@discussions.microsoft.com> wrote in message
news:80F6127F-D3BB-4881-B5B7-0E34D3868B29@microsoft.com...
> Hi Kerry,
> If I execute the command "runas /user:administrator" I have to fill in the
> Adminitratonpassword witch I don't have.
> What about the second solution? What is to do correctly?
>
> Thanks!
> beat
>
> "Kerry Brown" wrote:
>
>> "Beat" <Beat@discussions.microsoft.com> wrote in message
>> news:EFB3746D-1DF5-482B-A4BF-7FE0928316AF@microsoft.com...
>> > Hi Kerry,
>> > Thanks for the good help.
>> > This works great but the next problem is to run this from a Installer
>> > where
>> > I have only the "normal" command prompt. I want to do this during the
>> > install
>> > process. So we could save the update for this user directly in this
>> > folder
>> > and delete the old one.
>> >
>> > Thanks again.
>> > beat
>> >

>>
>>
>> Then the installer has to be "Run as administrator" or ask Vista for
>> administrator privileges. There is no way to do administrator actions
>> without running into UAC if UAC is turned on. If you are writing an
>> installer you have to assume UAC is on.
>>
>> --
>> Kerry Brown
>> Microsoft MVP - Shell/User
>> http://www.vistahelp.ca
>>
>>


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Regarding Icacls.exe General Discussion
icacls Problem, any Ideas ? Vista security
Icacls command problem Vista General
Vista and icacls Vista General
Grant permission using ICACLS Vista file management


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46