Microsoft Virtualization Discussions

powershell equivalent to: "vserver cifs users-and-groups update-names"

DidierW
2,190 Views

Hi,

Is there a powershell toolkit equivalent to this command:

"vserver cifs users-and-groups update-names"

Thanks a lot for any help!

Didier

2 REPLIES 2

aladd
2,070 Views

Hello @DidierW ,

 

Not sure if these are what you're looking for, it may depend on exactly what you are looking to accomplish in the environment.

 

add-NcCifsLocalGroupMember - Add local users or Active Directory users or groups to a local group.

Set-NcCifsLocalUser - Modify a CIFS local user

Set-NcCifsLocalGroup - Modify a CIFS local group

 

Hope this helps!

DidierW
1,905 Views

Hi,

Sorry it took me some while to respond.

Thank you for replying!

Actually, I don't need to add/remove users/groups in local groups.

I want to refresh the names of Active Directory users and groups which are regularly out of sync on ACLs.

f.ex. someone changed Group names in ActiveDirectory but on the Netapp CIFS volume, their ACL still contains old names. So I need to run the command via ssh "vserver cifs users-and-groups update-names" to refresh the ontap cache DB, it would be nice if you could do the same via Powershell.

 

Kind regards,

Didier

Public