Skip to content

Commit

Permalink
xGroup: tweak group rename
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelicWizard committed May 23, 2021
1 parent 9c3b2a9 commit 6a6f929
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -830,9 +830,9 @@ function Set-TargetResourceOnFullSKU

if ($needsRename)
{
$dirEntry = [System.DirectoryServices.DirectoryEntry]($group.GetUnderlyingObject())
$dirEntry.Rename($newName);
$dirEntry.CommitChanges();
$dirEntry = $group.GetUnderlyingObject()
$dirEntry.Rename($newName)
$dirEntry.CommitChanges()
}

# Send an operation success verbose message.
Expand Down

0 comments on commit 6a6f929

Please sign in to comment.