Go Premium for a chance to win a PS4. Enter to Win
$out = "c:\output.txt" #put to the path\filename of where you want your output.
$grp = get-distributiongroup "groupname" #Put your group name between the quotes
#capture the group displayname for the header.
$grpName = $grp.DisplayName
#Put a header in the output
$inp = "Accept Messages only from the following for $grpName"
out-file $out -inputobject $inp
#list out all of the recipients who can send to the group
$list = $grp.AcceptMessagesOnlyFrom
foreach ($user in $list)
$DN = $user.DistinguishedName
$rec = get-recipient $DN
$displayName = $rec.DisplayName
out-file $out -inputobject $displayName -append
Open in new window
Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.