Skip to content

Commit c57e6d4

Browse files
authored
Update New-CMAdministrativeUserPermission.md
There was a script error in the example.
1 parent 0f39b11 commit c57e6d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sccm-ps/ConfigurationManager/New-CMAdministrativeUserPermission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ $role = Get-CMSecurityRole -Name $roleName
6969
$scope = Get-CMSecurityScope -Name $scopeName
7070
$collection = Get-CMCollection -Name $collectionName
7171
72-
$perms = $role | New-CMAdministrativeUserPermission -RoleName $role.RoleName -SecurityScopeNames $scope.CategoryName -CollectionNames $collection.Name
72+
$perms = New-CMAdministrativeUserPermission -RoleName $role.RoleName -SecurityScopeNames $scope.CategoryName -CollectionNames $collection.Name
7373
7474
$User = New-CMAdministrativeUser -Name $accountName -Permission $perms
7575
$User.Permissions

0 commit comments

Comments
 (0)