Skip to content

Instantly share code, notes, and snippets.

@sn180py
sn180py / AuditFileShareAzure.ps1
Created November 26, 2018 05:33
Azure File Share Audit Script
#AuditFileshare
Param(
[object]$WebhookData
)
#defining global Variables
#items after $script: are the variable names
#Items after $RequesterHeader are the Names for theMS Flow items
$script:Listname = "AuditFileShare"
@sn180py
sn180py / auditfshw.ps1
Created November 26, 2018 03:54
Audit Fileshare from Hybrid Worker
Param(
[string]$ServerPath,
[string]$AuditShare,
[string]$OutputFolder
)
$ResultPath = "c:\sharepointfiles"
$Filename = $OutputFolder
$TargetShare = "$Serverpath\$AuditShare"