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

Special Regex

$
0
0

Hello,

I Need help with a complicated regex.

 

What I have is a share on a Server like:

[string]Servername\BO001\02_Public\01_Transfer ...

What I want to create is a Security Group in AD that should look like:

Servername-BO001-02-01-RO
Servername-BO001-02-01-RW

I dont Need the creation of Security Groups in Active Directory but the regex to transform the string.

thanks for any help.

Thomas

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles