added some functions

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-14 11:44:34 +02:00
parent 7e1a94f55b
commit 4b889563b4
2 changed files with 20 additions and 0 deletions

17
GetProjectUsers.ps1 Normal file
View File

@ -0,0 +1,17 @@
# Parameter help description
[CmdletBinding()]
param (
[string]
$Name
)
if($PSBoundParameters.ContainsKey('Name')){
. .\Variables.ps1
$Read='GR-'+$Name+'-RO,'
$Write='GR-'+$Name+'-RW,'
Write-Host $Read+$Roles
Write-Host $Write+$Roles
Return $null
}
throw "No such Project was found"

3
GetRoles.ps1 Normal file
View File

@ -0,0 +1,3 @@
. .\Variables.ps1
Get-ADGroup -SearchBase $Roles