fixed date
This commit is contained in:
+2
-3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user