was wondering if you might be able to help with a small problem I am trying to solve.
I have two systems and I need to copy the directory share settings from one to another.
The ShareUtils module seems to fit the bill but I am missing something.
Getting started, I was able to get the remote share definition by doing:
$a = get-share -computername netdev -name ABS
$a.SecurityDescriptor returns the values I need to apply to the new host
Thing is, I am not sure how to apply the value from $a.SecurityDescriptor to the new share definition.
Would I be able to leverage this through Set-SharePermission?
Any help you can provide would be greatly appreciated.
I have two systems and I need to copy the directory share settings from one to another.
The ShareUtils module seems to fit the bill but I am missing something.
Getting started, I was able to get the remote share definition by doing:
$a = get-share -computername netdev -name ABS
$a.SecurityDescriptor returns the values I need to apply to the new host
Thing is, I am not sure how to apply the value from $a.SecurityDescriptor to the new share definition.
Would I be able to leverage this through Set-SharePermission?
Any help you can provide would be greatly appreciated.