diff --git a/ps-aclreport.ps1 b/ps-aclreport.ps1 index e69de29..dc9eea3 100644 --- a/ps-aclreport.ps1 +++ b/ps-aclreport.ps1 @@ -0,0 +1,16 @@ +Import-Module ACLReportTools +$WorkDir="%ProgramData%\ps-aclreport" + +function createBaselineReport($Computer, $Share){ + $ShareName="${Computer}-${Share}" + $Date=(Get-Date).ToString("s") + $BaselineName="Baseline_${ShareName}_${Date}" + + New-ACLShareReport -ComputerName $Computer -Include $Share -IncludeInherited | Export-ACLReport -Path "${Workdir}\${BaselineName}.acl" -Force +} + +function pruneBaselineReports(){ + +} + +createBaselineReport "nas.proferis.local" "techniczny" \ No newline at end of file