first test

This commit is contained in:
2019-04-09 10:09:07 +02:00
parent b1421c9474
commit e9562f8f5a
+16
View File
@@ -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"