I need to make some folders and files to have full access, how do I change them from read only
Software. I need to make it full control
Answers (5)
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
Comments:
-
attrib -r -s "c:\path to sofware\*.*" /S /D - SMal.tmcc 12 years ago
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
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"