added some functions
This commit is contained in:
parent
7e1a94f55b
commit
4b889563b4
17
GetProjectUsers.ps1
Normal file
17
GetProjectUsers.ps1
Normal 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
3
GetRoles.ps1
Normal file
@ -0,0 +1,3 @@
|
||||
. .\Variables.ps1
|
||||
|
||||
Get-ADGroup -SearchBase $Roles
|
Loading…
Reference in New Issue
Block a user