first test

This commit is contained in:
Miłosz Stocki 2019-04-09 10:09:07 +02:00
parent b1421c9474
commit e9562f8f5a
Signed by: osiu97
GPG Key ID: E3D1D83FA04F51D6
1 changed files with 16 additions and 0 deletions

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"