From e9562f8f5ad040323993114f1e4c0b3587148c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Stocki?= Date: Tue, 9 Apr 2019 10:09:07 +0200 Subject: [PATCH] first test --- ps-aclreport.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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