small formatting issues

This commit is contained in:
Przemyslaw Klys
2020-05-13 21:04:32 +02:00
parent c1f293e6f1
commit cad485cd20
+7 -7
View File
@@ -1,14 +1,14 @@
function Add-GPOPermission {
[cmdletBinding()]
param(
[validateset('WellKnownAdministrative','Administrative', 'AuthenticatedUsers', 'Default')][string] $Type = 'Default',
[validateset('WellKnownAdministrative', 'Administrative', 'AuthenticatedUsers', 'Default')][string] $Type = 'Default',
[Microsoft.GroupPolicy.GPPermissionType] $IncludePermissionType,
[alias('Principal')][Array] $Trustee,
[alias('PrincipalType')][validateset('DistinguishedName', 'Name', 'Sid')][string] $TrusteeType = 'DistinguishedName'
)
if ($Type -eq 'Default'){
if ($Type -eq 'Default') {
@{
Action = 'Add'
Action = 'Add'
Type = 'Standard'
Trustee = $Trustee
IncludePermissionType = $IncludePermissionType
@@ -16,14 +16,14 @@
}
} elseif ($Type -eq 'AuthenticatedUsers') {
@{
Action = 'Add'
Type = 'AuthenticatedUsers'
Action = 'Add'
Type = 'AuthenticatedUsers'
IncludePermissionType = $IncludePermissionType
}
} elseif ($Type -eq 'Administrative') {
@{
Action = 'Add'
Type = 'Administrative'
Action = 'Add'
Type = 'Administrative'
IncludePermissionType = $IncludePermissionType
}
}