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 …

Filtering OSPF Routes Part 1

Filtering routes is a little more complicated when we are talking about OSPF. In EIGRP it was simple. Since EIGRP is an advanced distance vector routing protocol, each router doesn’t have a perfect picture of the routing domain, it just has an idea of what’s behind our neighbor. OSPF is of course different. Each OSPF area …

Microsoft AD DNS – How to force Google Safe Search

Forcing safe-search for Google is very simple, and pretty hard to turn off. Couple it together with filtering DNS queries and you’ve got yourself a pretty robust content filter. First I’m going to show you the powershell way (run powershell as admin), then I will show you the GUI way.   add-dnsserverprimaryzone -ReplicationScope Forest -Name …