diff --git a/ps-aclreport.ps1 b/ps-aclreport.ps1 index dc9eea3..5f20144 100644 --- a/ps-aclreport.ps1 +++ b/ps-aclreport.ps1 @@ -1,11 +1,10 @@ Import-Module ACLReportTools -$WorkDir="%ProgramData%\ps-aclreport" +$WorkDir="$env:LOCALAPPDATA\ps-aclreport" function createBaselineReport($Computer, $Share){ $ShareName="${Computer}-${Share}" - $Date=(Get-Date).ToString("s") + $Date=(Get-Date).ToString("yyyyMMddHHmm") $BaselineName="Baseline_${ShareName}_${Date}" - New-ACLShareReport -ComputerName $Computer -Include $Share -IncludeInherited | Export-ACLReport -Path "${Workdir}\${BaselineName}.acl" -Force }