mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-31 12:47:59 +00:00
small formatting issues
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
function Add-GPOPermission {
|
function Add-GPOPermission {
|
||||||
[cmdletBinding()]
|
[cmdletBinding()]
|
||||||
param(
|
param(
|
||||||
[validateset('WellKnownAdministrative','Administrative', 'AuthenticatedUsers', 'Default')][string] $Type = 'Default',
|
[validateset('WellKnownAdministrative', 'Administrative', 'AuthenticatedUsers', 'Default')][string] $Type = 'Default',
|
||||||
[Microsoft.GroupPolicy.GPPermissionType] $IncludePermissionType,
|
[Microsoft.GroupPolicy.GPPermissionType] $IncludePermissionType,
|
||||||
[alias('Principal')][Array] $Trustee,
|
[alias('Principal')][Array] $Trustee,
|
||||||
[alias('PrincipalType')][validateset('DistinguishedName', 'Name', 'Sid')][string] $TrusteeType = 'DistinguishedName'
|
[alias('PrincipalType')][validateset('DistinguishedName', 'Name', 'Sid')][string] $TrusteeType = 'DistinguishedName'
|
||||||
)
|
)
|
||||||
if ($Type -eq 'Default'){
|
if ($Type -eq 'Default') {
|
||||||
@{
|
@{
|
||||||
Action = 'Add'
|
Action = 'Add'
|
||||||
Type = 'Standard'
|
Type = 'Standard'
|
||||||
Trustee = $Trustee
|
Trustee = $Trustee
|
||||||
IncludePermissionType = $IncludePermissionType
|
IncludePermissionType = $IncludePermissionType
|
||||||
@@ -16,14 +16,14 @@
|
|||||||
}
|
}
|
||||||
} elseif ($Type -eq 'AuthenticatedUsers') {
|
} elseif ($Type -eq 'AuthenticatedUsers') {
|
||||||
@{
|
@{
|
||||||
Action = 'Add'
|
Action = 'Add'
|
||||||
Type = 'AuthenticatedUsers'
|
Type = 'AuthenticatedUsers'
|
||||||
IncludePermissionType = $IncludePermissionType
|
IncludePermissionType = $IncludePermissionType
|
||||||
}
|
}
|
||||||
} elseif ($Type -eq 'Administrative') {
|
} elseif ($Type -eq 'Administrative') {
|
||||||
@{
|
@{
|
||||||
Action = 'Add'
|
Action = 'Add'
|
||||||
Type = 'Administrative'
|
Type = 'Administrative'
|
||||||
IncludePermissionType = $IncludePermissionType
|
IncludePermissionType = $IncludePermissionType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user