For a migration toolkit I wrote, I used a regex with an assertion to split on
unescaped commas to break down the distinguished name. I don't know your naming
scheme but that's pretty easy to do robustly...
On Nov 2, 2016, at 15:46, Dave Lum >
wrote:
I
One option might be to use “-split”:
PS U:\> $a = "OU=MyHouse,OU=World,DC=domain,DC=net"
PS U:\> ($a -split ",")[0]
OU=MyHouse
PS U:\> (($a -split ",")[0] -split "=")[1]
MyHouse
Edward
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On
Behalf Of Dave Lum
Sent:
I want to use PowerShell to get the immediate OU a user is in an drop it into
said users’ description. I can do Set-ADUSer easily enough, I just want to be
able to through only the direct OU and not the entire DN into the description.
So, instead of 'OU=MyHouse,OU=World,DC=domain,DC=net' I want
This might pertain more to my Canadian colleagues.
Have any of you had or currently do business with iTel Networks?
I got a call from them, and they want to become our ISP.
Thanks for any info you can provide.
*Mark Reimer*
Servers and Network Administrator
Prairie College
4 matches
Mail list logo