From de6b8d5643ffb4c4895322fd0727310cddea3283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Stocki?= Date: Tue, 9 Apr 2019 11:12:23 +0200 Subject: [PATCH] fixed date --- ps-aclreport.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 }