How to modify this powershell output ?


hi,

 

the statement below gives me list of emailaddresses (each email on different row), want them on 1 row ";" between, how can ?

get-qaduser -memberof "ag.protime_proteam","xenapp users" | select-object userprincipalname

 

thanks lot !

$upn = (get-qaduser -memberof "ag.protime_proteam","xenapp users" | %{$_.userprincipalname}) -join ";"


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...