Software.  I need to make it full control

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

If you are trying to script the change, use the attrib command

http://support.microsoft.com/kb/326549

http://technet.microsoft.com/en-us/library/bb490868.aspx

 

Answered 10/16/2012 by: SMal.tmcc
Red Belt

  • attrib -r -s "c:\path to sofware\*.*" /S /D
Please log in to comment

Answers

1

Right-click on folder, click on properties, go to the security tab, give the desired account full control.

Answered 10/16/2012 by: Ben M
Ninth Degree Black Belt

Please log in to comment
0

if you are creating folder through a msi you can give permission directly there

or else you can write vbscript

 

On Error Resume Next

Dim wshShell,strProgram, strWin,strParam
 
Set wshShell = CreateObject("WScript.Shell")
strProgram = wshShell.ExpandEnvironmentStrings("%systemdrive%")
strProgrammes = wshShell.ExpandEnvironmentStrings("%ProgramFiles%")

StrProgram = chr(34) & StrProgram & "\Siemens" & chr(34)

strParam = " /t /e /g everyone:F"

strParam1 = " /t /e /g users:F"
StrProgram1 = "cacls " & strProgrammes & strParam

StrProgram2 = "cacls " & strProgrammes & strParam1


wshShell.run StrProgram1
wshShell.run StrProgram2

 

set wshShell = Nothing

Answered 10/17/2012 by: anshul
Orange Belt

Please log in to comment
0

I use either the cacls command or the icacls command.

 

Answered 10/17/2012 by: chucksteel
Red Belt

Please log in to comment
0

Use SetACL through custom Action Table with

If you are sure you need to give them full permissions (i.e. allow the user to delete you can change the below change value to full.

SetACL.exe -on "C:\my dir" -ot file -actn ace
           -ace "n:domain1\user1;p:change"

http://setacl.sourceforge.net

Answered 10/17/2012 by: oreillyr
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity