Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to change fodler ownership based on the fodler name?

$
0
0

Hi,

 

would it be possible to change ownership of a shared folder based on the part of its name? 

 

for examle - if I have folders 

\\share\test\Folder_XY_something_something

\\share\test\Folder_MN_something_something

\\share\test\Folder_AB_something_something

and i would liketo change ownership of all foders with

- "_XY_" in name to user A

- "_MN_" in name to user B

- "_AB_" in name to user C

..how can i do it instead of changing each folder manualy?

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles