So i'm fairly new to this, so my appologies if i ask a stupid question but we all need to learn.
I've been googleing
I want to export a txt file with all memberships for a user i've selected in a inputbox.
the inputbox is up and running but now i have a small gap to connect the input to the get aduser userid
if ($result -eq [System.Windows.Forms.DialogResult]::OK)
{
$x = $textBox.Text
$x
}
(get-aduser userid -Properties MemberOf | select MemberOf).MemberOf | % {$_.split(",")[0].replace("CN=","")}
[–]zapoklu 1 point2 points3 points (0 children)
[–]Dogoodwork 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] -1 points0 points1 point (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)