Powershell Subscribers Names - Devices / Name - address
Hello, Thanks to Pete and Jonathan... 1. get-NotificationRecipient | Select name, Devices 2. Get-NotificationRecipient | foreach-object {$_.devices | where {$_.protocol -eq "smtp"}} | select name,address The first one is giving me the Subscribers names, then i am running the second one to get the email associated with the device... anyway to get only one line? Subscribers name, Subscrbers name (devices), Emails Also Get-NotificationSubscription | foreach {$_.DisplayName}| foreach {$_.ToRecipients} | foreach {$_.Name} | Select DisplayName,ToRecipients,Name | export-csv c:\ListSubsc ribers.csv This command is gining me a blank csv file!!! I was looking for Subscription Name, Subscribers, Subscribers name,...!!! Thanks, Dom System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
July 14th, 2011 1:12am

Hi Dom, has this been solved already? The thread has been quiet for a while.Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
Free Windows Admin Tool Kit Click here and download it now
September 6th, 2011 1:53pm

Hi Bob, Not in one command line only I still have to run both... Thanks, DomSystem Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager
September 8th, 2011 9:23pm

you asked one line :D Get-NotificationSubscription |%{$c=$_.ToRecipients; $b=@($c|%{$_.Name}); $d=@($c|%{$_.Devices}|%{$_.address});"'{0}' '{1}' '{2}'" -f $_.DisplayName,[string]::join(':',$b),[string]::join(':',$d) } output on one line: 'Subscription' 'colon-delimeted-Subscribers' 'colon-delimeted-Addresses'
Free Windows Admin Tool Kit Click here and download it now
September 14th, 2011 4:08am

Hello, could you let us know if this question is answered or if you have found a solution? -------------------------------------------------------------------------------- Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Bob Cornelissen - BICTT (My BICTT Blog) - Microsoft Community Contributor 2011 Recipient
September 27th, 2011 1:51pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics