N
NDog
Using windows xp, I have followed the advice on
http://www.ss64.com/nt/subinacl.html, and have downloaded the latest
subinacl.exe
List permissions to log file:
subinacl /noverbose /nostatistic /outputlog=my.log /subdirectories
"\\games00\c$\windows\system32\grouppolicy" /display
Restore Permissions:
subinacl /nostatistic /playfile my.log
I have this file now (my.log)
================================================
+File \\games00\c$\windows\system32\GroupPolicy
================================================
/control=0x1400
/owner =games00\administrator
/primary group =games00\none
/audit ace count =0
/perm. ace count =2
/pace =games00\administrator Type=0x1 Flags=0x3 AccessMask=0x20089
/pace =games00\vadal Type=0x0 Flags=0x3 AccessMask=0x1200a9
I wish to make a script that can automatically import these logs across
my network, and apply the security settings to each folder on each
computer,
what I need to happen, is when it loops, it needs to take the "games00"
and replace them with games02, or games10 or whatever i feed into the
loop, then it needs to apply the ownership and settings to each folder
This is waaay over my head, I still cant fully comprehend the for /f
command or subinacl syntax, but if you can help me either manipulate
this log file to export across different folders, or just make more
effecient use of the subinacl program, that would be much appreciated.
I dont need help with writing loops, just the correct subinacl syntax
to make these settings apply, or else a way to manipulate the my.log
file with an input variable.
Thanks!!!
http://www.ss64.com/nt/subinacl.html, and have downloaded the latest
subinacl.exe
List permissions to log file:
subinacl /noverbose /nostatistic /outputlog=my.log /subdirectories
"\\games00\c$\windows\system32\grouppolicy" /display
Restore Permissions:
subinacl /nostatistic /playfile my.log
I have this file now (my.log)
================================================
+File \\games00\c$\windows\system32\GroupPolicy
================================================
/control=0x1400
/owner =games00\administrator
/primary group =games00\none
/audit ace count =0
/perm. ace count =2
/pace =games00\administrator Type=0x1 Flags=0x3 AccessMask=0x20089
/pace =games00\vadal Type=0x0 Flags=0x3 AccessMask=0x1200a9
I wish to make a script that can automatically import these logs across
my network, and apply the security settings to each folder on each
computer,
what I need to happen, is when it loops, it needs to take the "games00"
and replace them with games02, or games10 or whatever i feed into the
loop, then it needs to apply the ownership and settings to each folder
This is waaay over my head, I still cant fully comprehend the for /f
command or subinacl syntax, but if you can help me either manipulate
this log file to export across different folders, or just make more
effecient use of the subinacl program, that would be much appreciated.
I dont need help with writing loops, just the correct subinacl syntax
to make these settings apply, or else a way to manipulate the my.log
file with an input variable.
Thanks!!!