first test
This commit is contained in:
parent
b1421c9474
commit
e9562f8f5a
|
|
@ -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"
|
||||||
Loading…
Reference in New Issue