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 …

Powershell – Quickly Create VMs with Differencing Disks, and then edit them!

I'm playing with a new storage backend so I wanted to create a whole bunch of VMs, then edit them, then stop them, then start them. Here's how I did it. Here's the end result. Now here's how I did it. $value = 1..10 $vmstore = "C:\VMDATA\VM POOL\" $vmparent = "C:\VMDATA\VM POOL\Server 2012R2 Parent.vhdx" foreach ($number …

Filtering OSPF Routes Part 2

Previously in part 1 we discussed route-filtering using the "filter-list" command in OSPF. That was limited to our ABR and ASBRs. With distribute-lists we are able to filter OSPF routes from making to the routing information base/routing table (RIB). If you recall our topology from part 1, well I've just added R4 to that. If …