From 1709b2a79d372e17f4222f7290bab6227fcb3ae5 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 14 Jul 2024 14:03:35 +0200 Subject: [PATCH] added acl getter --- GetACLs.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 GetACLs.ps1 diff --git a/GetACLs.ps1 b/GetACLs.ps1 new file mode 100644 index 0000000..7b7d98e --- /dev/null +++ b/GetACLs.ps1 @@ -0,0 +1,14 @@ +[CmdletBinding()] +param ( + [string] + $Server +) + +$Projects +if($PSBoundParameters.ContainsKey("Server")){ + $Projects = . .\GetProjects.ps1 -Server $Server +} else { + $Projects = . .\GetProjects.ps1 +} + +$Projects | Get-ADGroupMember | Where-Object Name -Match "ACL.*" \ No newline at end of file