display memberof with separate parts
I created a powershell script below about Get-ADUser MemberOf to display VPN Security Groups and the Other Security Groups groups and I would like to eliminate the redundancy on this Code below first part where it only shows the VPN Security Group of a user Write-Output "" Write-Output "memberof" Write-Output "——————-" $User4 = Get-ADUser $sam… Read More display memberof with separate parts