Azure – User Defined Routing for one subnet with PFsense

My goal: Setup a pfsense in azure so I can route all my traffic through that. I didn’t want two subnets for this since I already had my VMs deployed. I also wanted to get over the “only 1 ikev1 tunnel” in Azure. I was setting up site to site VPNs with Meraki MX64s which …

Powershell GUI – Quickly Message RDSH Collection Users!

The script: import-module RemoteDesktop Get-RDUserSession -ConnectionBroker connectionbroker.domain.local | select username, hostserver, unifiedsessionid | Out-GridView -title “Select users to message” -passthru | Send-RDUserMessage -MessageTitle “Message from Tech Support” -MessageBody “Server will be rebooting shortly please save your work.” The result: After selecting “ok” this appears on the RDSH server. Why does it work? Well send-rdusermessage really …

Azure to Sophos UTM Site to Site VPN IPSEC Settings ( IKEv1 Policy Based)

The Sophos UTM Azure Policy: The sophos UTM Azure Remote Gateway: notes: the pre-shared key should match on both sides, the gateway object should be the public IP assigned to your gateway.   When creating your Azure Virtual network gateway, you must choose policy-based VPN, NOT route-based. Policy based is IKEv1, while route based is …

Powershell GUI – Logging off multiple users in a RDSH Collection!

Problem: I wanted to log off multiple users from an RDSH collection. First I tried the local task manager from the server, that only allowed one selection in server 2012 r2. Then I tried the remote desktop collection in server manager, that only allowed me to log off one user as well. I wanted lower …

How to quickly create Active Directory OUs In Powershell

$domain = get-addomain | select -expand distinguishedname $facilities = “facilityname” $OUS = “Groups”,”Kiosks”,”Laptops”,”Users”,”Workstations” foreach ($facility in $facilities) { New-ADOrganizationalUnit “$facility” foreach ($OU in $OUS) { NEW-ADOrganizationalUnit “$OU” –path “OU=$facility,$domain” } } A very simple script I made to quickly create some OUs with sub-OUs inside. Basically all I need to add is facility names and …