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 520190e commit c8bf5d0
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 c8bf5d0

Please sign in to comment.