Wireshark filters

not tcp.port==3389

ip.addr==10.0.0.1

 

Advertisements

Creating Office 365 Dynamic group for Users only

Connect to Exchange online using PowerShell
https://technet.microsoft.com/en-us/library/jj984289(v=exchg.160).aspx

To exclude shared and resource mailboxes use the following,

New-DynamicDistributionGroup -Name “All Staff” -RecipientFilter {(RecipientType -eq ‘UserMailbox’) -and (-not(RecipientTypeDetailsValue -eq ‘SharedMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘RoomMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘EquipmentMailbox’))}

or update an existing one

Get-DynamicDistributionGroup -Name “All Staff” |┬áSet-DynamicDistributionGroup -RecipientFilter {(RecipientType -eq ‘UserMailbox’) -and (-not(RecipientTypeDetailsValue -eq ‘SharedMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘RoomMailbox’)) -and (-not(RecipientTypeDetailsValue -eq ‘EquipmentMailbox’))}

To view membership of a group

$g = Get-DynamicDistributionGroup “All Staff”
Get-Recipient -RecipientPreviewFilter $g.RecipientFilter

NLB Unicast cluster node unable to route

Environment was Hyper-V 2012 R2 and members of an NLB cluster can communicate with each other but have no external access.  Problem seems to be related to the ARP requests for the gateway and how it is formed.

MAC Address Spoofing was already enabled on the VM advanced network properties.

The trick is to add a static ARP entry for the default gateway similar as follows,

netsh interface ipv4 add neighbors “Local Area Connection” 192.168.0.1 00-aa-01-d2-3a-cc