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 > Misc Newsgroups > VB Script

Vista - Script to give user modify permission

Reply
 
Old 10-29-2008   #1 (permalink)
wli2k2


 
 

Script to give user modify permission

We are running Windows XP and I am looking for a script that gives the
"users" group modify permission on a folder on C:\Program Files\

I checked the web but could not seem to find one. Can anyone offer some
suggestions?

thanks.

My System SpecsSystem Spec
Old 10-29-2008   #2 (permalink)
James Whitlow


 
 

Re: Script to give user modify permission

"wli2k2" <wli2k2@xxxxxx> wrote in message
news:4123E00A-6837-44A2-B186-0EF33B136E9D@xxxxxx
Quote:

> We are running Windows XP and I am looking for a script that gives the
> "users" group modify permission on a folder on C:\Program Files\
>
> I checked the web but could not seem to find one. Can anyone offer some
> suggestions?
I personally think a good option would be to script 'cacls.exe'. The
syntax to ask 'cacls.exe' to do it for you would be:

cacls.exe "c:\program files" /T /E /G "Users:C"

Are you wanting to do this to a bunch of computers? If so, please advise
the source of your list. Do you want to get it from Active Directory, a text
file or walk an IP range looking for computers?


My System SpecsSystem Spec
Old 10-29-2008   #3 (permalink)
wli2k2


 
 

Re: Script to give user modify permission

Basically, I am using SMS to deploy a software to 30 PCs. This software
installs on C:\Program Files\software folder.

In order for users to use this software, I need to give the local "users"
group (ex. PCNAME\Users) "modify" permission.

So the syntax would be like this (?):

cacls.exe "c:\program files\software" /T /E /G "Users:C"


"James Whitlow" wrote:
Quote:

> "wli2k2" <wli2k2@xxxxxx> wrote in message
> news:4123E00A-6837-44A2-B186-0EF33B136E9D@xxxxxx
Quote:

> > We are running Windows XP and I am looking for a script that gives the
> > "users" group modify permission on a folder on C:\Program Files\
> >
> > I checked the web but could not seem to find one. Can anyone offer some
> > suggestions?
>
> I personally think a good option would be to script 'cacls.exe'. The
> syntax to ask 'cacls.exe' to do it for you would be:
>
> cacls.exe "c:\program files" /T /E /G "Users:C"
>
> Are you wanting to do this to a bunch of computers? If so, please advise
> the source of your list. Do you want to get it from Active Directory, a text
> file or walk an IP range looking for computers?
>
>
>
My System SpecsSystem Spec
Old 10-29-2008   #4 (permalink)
James Whitlow


 
 

Re: Script to give user modify permission

"wli2k2" <wli2k2@xxxxxx> wrote in message
news:0C4DFA03-15C0-4945-A61F-BB7A75466A2C@xxxxxx
Quote:

> Basically, I am using SMS to deploy a software to 30 PCs. This software
> installs on C:\Program Files\software folder.
>
> In order for users to use this software, I need to give the local "users"
> group (ex. PCNAME\Users) "modify" permission.
>
> So the syntax would be like this (?):
>
> cacls.exe "c:\program files\software" /T /E /G "Users:C"
I think that syntax should work. The "Users:C" does not actually have to
be wrapped in quotes, but it is a good practice since "Power Users" would
need to be wrapped. I think you can have SMS issue the command. This should
run it with enough privileges to edit the ACL. You might be able to
incorporate it into your software install job. I have very limited knowledge
of SMS, so I am not sure how to do this.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to give file sharing permission to a specific user over lan?? Network & Sharing
modify a account with a vbs script Vista mail
How do you give permission to view folder contents for users on a networked computer Vista networking & sharing
Modify NTFS Permission with script like Xcalcs.vbs ...... Vista networking & sharing
Modify Multiple files' NTFS permission Vista General


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