Hello there,
i am looking for the syntax to change owner in a security group with powershell
thanks!
Technology Tips and News
Hello there,
i am looking for the syntax to change owner in a security group with powershell
thanks!
I think Managedby and Owner (from security advanced) is not the same....
yes i sad that is the command, just i need help with the syntax..i can not found any example with
"security owner change"
This should work:
$group = [LDAP]...
$acl = Get-Acl $group
$acl.SetOwner([Security.Principal.NTaccount] "Domain\Login" )
Set-Acl -Path $group -AclObject $acl
Hi,
Set-ADGroup cmdlet with -ManagedBy parameter.
This should work:
$group = [LDAP]...
$acl = Get-Acl $group
$acl.SetOwner([Security.Principal.NTaccount] "Domain\Login" )
Set-Acl -Path $group -AclObject $acl
This should work:
$group = [LDAP]...
$acl = Get-Acl $group
$acl.SetOwner([Security.Principal.NTaccount] "Domain\Login" )
Set-Acl -Path $group -AclObject $acl
Oh thhanks, this works, but
works for user account domains (contoso\useraccount)
if i want to change owner to a group administratos (contoso\administrators)
i hace a error