$savepath = “c:\DFSreporting”
Remove-Item $savepath -recurse
DfsrAdmin Health New /RgName:'<replication group name>’ /MemName:<member name> /RefMemName:<where it replicates> /RepName:$savepath\<filename to save the report> /FsCount:true
W for Windows :-)
$savepath = “c:\DFSreporting”
Remove-Item $savepath -recurse
DfsrAdmin Health New /RgName:'<replication group name>’ /MemName:<member name> /RefMemName:<where it replicates> /RepName:$savepath\<filename to save the report> /FsCount:true
I wanted to add all the users from an OU direct in a group but the problem was that the group had already members.I needed to control wether the user was already member of the group.That is my implementation.
Continue reading “Add OU users to a group (and skip when the user is already member)”