Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Question regarding PowerShell shareutils

$
0
0
 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.

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>